I recently upgraded to v9 and am now receiving this error:
[h=1]Server Error in '/hap' Application.[/h] [h=2]Object reference not set to an instance of an object.[/h] 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:
[TABLE=width: 100%]
[TR]
[TD] 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. [/TD]
[/TR]
[/TABLE]
Stack Trace:
[TABLE=width: 100%]
[TR]
[TD]
[NullReferenceException: Object reference not set to an instance of an object.] HAP.Web.Configuration.hapConfig.doUpgrade(Version version) +9258 HAP.Web.Configuration.hapConfig..ctor() +666 HAP.Web.Configuration.hapConfig.get_Current() +135 HAP.Web.Global.Application_Start(Object sender, EventArgs e) +52 [HttpException (0x80004005): Object reference not set to an instance of an object.] System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +4057733 System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +191 System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +352 System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +407 System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +375 [HttpException (0x80004005): Object reference not set to an instance of an object.] System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +11702064 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +141 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +4870277 [/TD]
[/TR]
[/TABLE]
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272