Web service med ekstern dll
Hey folkens..Jeg har en webservice som bruger en dll der hedder MySQLDriverCS.dll.. Hvad fanden er der galt.. HELP!
--------------- Script ------------------
<%@WebService Language="c#" Class="myService.serviceClass" %>
using System;
using System.Web.Services;
using MySQLDriverCS;
namespace myService
{
public class serviceClass : System.Web.Services.WebService
{
[WebMethod]
public string save(string sql)
{
try
{
MySQLConnection myConn = new MySQLConnection(new MySQLConnectionString("host","base","user","pass").AsString);
MySQLCommand sqlCom = new MySQLCommand(sql, myConn);
try
{
myConn.Open();
sqlCom.ExecuteNonQuery();
myConn.Close();
return "True";
}
catch (MySQLException e)
{
return e.ToString();
}
}
catch( MySQLException e)
{
return e.ToString();
}
}
}
}
--------------- Script slut -----------------
/GH