Author: azjata | Posted on: 11/26/2009 5:16:12 AM | Views : 314

Hello, I have a following problem.
I am using SqlMembershipProvider on SQL Server 2005 for authentication, basically logging in registering and the rest of functionality works fine. But when I am trying to use the webservice (which is in the same project) from ajax, I am getting error

Message: Sys.Net.WebServiceFailedException: The server method 'getUser' failed with the following error: System.NullReferenceException-- Object reference not set to an instance of an object.

I am using script manager through which i call the webservice in ajax, i also tried to do it in classical way with http post, but without any changes, I checked and the proxy for the webservice is created (I checked it with webservice/js ). And now i have run out of ideas...

here is the code where I am getting error...

This is webservice
using System; using System.Collections; using System.Linq; using Syst ...

Go to the complete details ...