I trap errors using Application_Error in global.asax. I set customerrors mode="On" for testing purposes.
When I hit a page that does not exist
http://localhost/appPath/test/testlog.aspx
I get the following exception:
When I remove from web.config the handler for Spring.Web.Support.PageHandlerFactory I get the following exception:Code:FileNotFoundException Message: Unable to instantiate page [/test/testlog.aspx]: The file '/test/testlog.aspx' does not exist. Source: Spring.Web StackTrace at Spring.Objects.Factory.Support.WebObjectUtils.CreatePageInstance(String pageUrl) in c:\projects\daily\Spring.Net\src\Spring\Spring.Web\Objects\Factory\Support\WebObjectUtils.cs:line 129 at Spring.Web.Support.PageHandlerWrapper.CreatePageInstance() in c:\projects\daily\Spring.Net\src\Spring\Spring.Web\Web\Support\PageHandlerFactory.cs:line 248 at Spring.Web.Support.PageHandlerWrapper.GetHandler(HttpContext context) in c:\projects\daily\Spring.Net\src\Spring\Spring.Web\Web\Support\PageHandlerFactory.cs:line 226 at Spring.Web.Support.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String url, String physicalPath) in c:\projects\daily\Spring.Net\src\Spring\Spring.Web\Web\Support\PageHandlerFactory.cs:line 137 at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig)
Code:HttpException Message: The file '/appPath/test/testlog.aspx' does not exist. Source: System.Web StackTrace at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert) at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) at System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) at System.Web.HttpApplication.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)


Reply With Quote