System.Web.Hosting or IIS gets Object reference not set to an instance of an object  
Author Message
Jerry Metcoff





PostPosted: ASMX Web Services and XML Serialization, System.Web.Hosting or IIS gets Object reference not set to an instance of an object Top

Has anyone seen this error before  It seems to be in IIS/ASP, not my web service:
It just started happening to me with an existing web service on a new PC:
request was: Http://localhost/mydirectory/myservice.asmx wsdl
error was:
[NullReferenceException: Object reference not set to an instance of an object.]
  System.Web.Hosting.ISAPIWorkerRequestInProc.GetServerVariable(String name) +1618
  System.Web.Security.WindowsAuthenticationModule.OnEnter(Object source, EventArgs eventArgs) +593
  System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
  System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64


.NET Development22  
 
 
Azam Abdul Rahim





PostPosted: ASMX Web Services and XML Serialization, System.Web.Hosting or IIS gets Object reference not set to an instance of an object Top

have you been able to solve this problem seems like i'm having the same problem.. but in my case i just want to run a .net 2.0 web site..
 
 
P_O_S





PostPosted: ASMX Web Services and XML Serialization, System.Web.Hosting or IIS gets Object reference not set to an instance of an object Top

Run the following command from DOS:

aspnet_regiis.exe -i


 
 
benlor





PostPosted: ASMX Web Services and XML Serialization, System.Web.Hosting or IIS gets Object reference not set to an instance of an object Top

THANK YOU! That was it. I was having the same problem on a new virtual pc.