Try our conversational search powered by Generative AI!

An error when upgrade site from cms5 r2 sp2 to cms6

Vote:
 

Server Error in '/' Application.


Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
   EPiServer.Templates.Global.Application_Start(Object sender, EventArgs e) in C:\SAP\Upgrading\External Web\Source\Global.asax.cs:31

[HttpException (0x80004005): Object reference not set to an instance of an object.]
   System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +4185553
   System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +205
   System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +336
   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +350
   System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +382

[HttpException (0x80004005): Object reference not set to an instance of an object.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +11335894
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +88
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +4355316

 


Version Information: Microsoft .NET Framework Version:2.0.50727.5456; ASP.NET Version:2.0.50727.5456

 

[NullReferenceException: Object reference not set to an instance of an object.]
   EPiServer.Templates.Global.Application_Start(Object sender, EventArgs e) in C:\SAP\Upgrading\External Web\Source\Global.asax.cs:31
is

EPiServer.Global.UrlRewriteProvider.ConvertedToInternal += parliamentaryRewriteUrl;



 

 

#59719
Jun 25, 2012 10:21
Vote:
 

This can happen when the user running the app pool does not have modify access to your episerver.framework.config file. Try giving this user (probably Network uUser or IUSR) modify access to both episerver.framework (and web.config). And run your application again. Alternativliy you can modify your episerver.framework.config file manually: Add correct mappings inside the sections siteHosts and automaticSiteMapping, corresponding for your site instance in IIS.

#65805
Feb 11, 2013 10:30
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.