I installed yaf forum in a sub forum folder ie. \Forum\Default.aspx which is in a top level masterpage ie MasterPageFile="~/MasterPage.master" asp.net 2.0
I have turned on enableurlrewriting
<enableurlrewriting>true</enableurlrewriting>
It all seems to work great
The problem I have is that have enabled some error logging in the global.cs file and constantly keep getting the following error from various pages withing the forum app.
I can never recreate the error myself.
Error Message: The file '/Forum/forum/Default.aspx' does not exist.
the actual path is /Forum/Default.aspx
Has anyone experienced this problem, I am not sure if this is something to do with urlrewriting or not.
Here is a more detailed error.
Error in: /Forum/forum/Default.aspx
Url: /Forum/forum/cn_active.aspx
Page Accessed: /Forum/forum/Default.aspx
Query String: g=active
Ip Address: 78.110.175.18
The Referer:
User Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; en) Opera 8.00
Date: 12/10/2008 4:56:13 p.m.
Error Message: The file '/Forum/forum/Default.aspx' does not exist.
Error Source: System.Web
Error Target Site: Void CheckVirtualFileExists(System.Web.VirtualPath)
Error Stace Trace: 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)
Thanks in advance