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:


Line 364:				if (doJSOpt) {
Line 365:					var searchAppEndJS = ".js";
Line 366:					var idxAppJSStart = proxyHtml.IndexOf(searchAppStartJS);
Line 367:					if (idxAppJSStart > 0) {
Line 368:						var idxAppJSEnd = proxyHtml.IndexOf(".js", idxAppJSStart);

Source File: d:\ClusteredWebsite\htdocs\test2.dessy.com\htdocs\App_Code\UrlManagement\RewriteHTTPModule.cs    Line: 366

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   <>c__DisplayClass5.<Rewrite_BeginRequest>b__2() in d:\ClusteredWebsite\htdocs\test2.dessy.com\htdocs\App_Code\UrlManagement\RewriteHTTPModule.cs:366
   Cachable`1.GetObject(HttpContext context, Boolean usecache) in d:\ClusteredWebsite\htdocs\test2.dessy.com\htdocs\App_Code\Cachable.cs:39
   RewriteHTTPModule.Rewrite_BeginRequest(Object sender, EventArgs args) in d:\ClusteredWebsite\htdocs\test2.dessy.com\htdocs\App_Code\UrlManagement\RewriteHTTPModule.cs:409
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +141
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +74
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +92


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4700.0