monkeymagic2222
Technical User
Hi,
I just wondered if anyone had any ideas why I'm getting the following problem.
I have a web service and a seperate web application that talks to the web service. It all works perfectly on my development machine but as soon as I put the service onto a seperate web server, update the web reference and then run the web app, I get the error:
System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at UserSession.CreateNewUser(String username, Bot bot, Hashtable userHash)
at Service.createUser(String Username)
As far as I can understand, it seems as though the string from the web app isn't passing to the web service which causing the null reference error. It obviously does work as it works on the development machine and I haven't changed any code. Could this be some sort of permissions issue? The web server is running on Windows 2003 and IIS 6 and I'm using Visual Studio 2008.
I should also point out that if I type in the name of the asmx file in a web browser on the web server, I get response from the web service.
Thanks, Simon
I just wondered if anyone had any ideas why I'm getting the following problem.
I have a web service and a seperate web application that talks to the web service. It all works perfectly on my development machine but as soon as I put the service onto a seperate web server, update the web reference and then run the web app, I get the error:
System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at UserSession.CreateNewUser(String username, Bot bot, Hashtable userHash)
at Service.createUser(String Username)
As far as I can understand, it seems as though the string from the web app isn't passing to the web service which causing the null reference error. It obviously does work as it works on the development machine and I haven't changed any code. Could this be some sort of permissions issue? The web server is running on Windows 2003 and IIS 6 and I'm using Visual Studio 2008.
I should also point out that if I type in the name of the asmx file in a web browser on the web server, I get response from the web service.
Thanks, Simon