Wednesday 7 November 2007

ErrorInstalling IIS after .Net 2.0

The error message below will be displayed when IIS is installed on a Windows XP machine that has .Net 2.0 already installed.

NullReferenceException: Object reference not set to an instance of an object.] System.Web.Hosting.ISAPIWorkerRequestInProc.GetServerVariable(String name) +1126 System.Web.Hosting.ISAPIWorkerRequest.ReadRequestHeaders() +121 System.Web.Hosting.ISAPIWorkerRequest.GetKnownRequestHeader(Int32 index) +126 System.Web.Hosting.ISAPIWorkerRequestInProc.GetKnownRequestHeader(Int32 index) +104 System.Web.HttpRequest.FillInHeadersCollection() +30 System.Web.HttpRequest.get_Headers() +55 System.Web.Security.CookielessHelperClass.GetCookielessValuesFromHeader() +16 System.Web.Security.CookielessHelperClass.Init() +23 System.Web.Security.CookielessHelperClass.RedirectWithDetectionIfRequired(String redirectPath, HttpCookieMode cookieMode) +13 System.Web.Security.FormsAuthenticationModule.OnEnter(Object source, EventArgs eventArgs) +226 System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64

The fix is to run C:\windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i in your command prompt.

Thanks aoporto for this fix..http://support.infogenium.com/forums/26/ShowPost.aspx

No comments: