Right,
Just started out with webservies Im getting:
From
And i dont know what it means, what am i doing wrong?
Just started out with webservies Im getting:
Code:
An unhandled exception of type System.Web.Services.Protocols.SoapException occurred in system.web.services.dll
Additional information: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at NewsThingSite.NewsThing.CloseConnectionToMDB() in C:\Inetpub\wwwroot\NewsThingSite\NewsThing.asmx.vb:line 129
at NewsThingSite.NewsThing.createNewUser(String strName, String strEmail) in C:\Inetpub\wwwroot\NewsThingSite\NewsThing.asmx.vb:line 106
--- End of inner exception stack trace ---
From
Code:
<WebMethod(Description:="Create a new user", EnableSession:=True)> _
Public Function createNewUser() As String
Dim strNewGuid As String
Dim strSQL As String
strNewGuid = System.Guid.NewGuid().ToString
OpenConnectionToMDB()
strSQL = "INSERT INTO user(GUID) VALUES(" + strNewGuid + ")"
Try
oCmd.CommandText = strSQL
oCmd.ExecuteNonQuery()
Catch strE As Exception
Debug.WriteLine(strE)
End Try
CloseConnectionToMDB()
Return strNewGuid
End Function
And i dont know what it means, what am i doing wrong?