This forum has been moved here:
Helicon Tech Community Forum

ISAPI_Rewrite 3.0 (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 3.0
Subject Topic: rewrite rule, asp.net & file not exists
Author
Message |
bewise
Newbie


Joined: 28 May 2008
Posts: 12
Posted: 06 March 2012 at 1:07am

I am currently running an asp.NET website with ISAPI rewrite 3 installed on a windows server.

I have a redirect rule located in my .htaccess file that is redirection one .aspx page to another, see below:

RewriteRule ^test1.aspx$ default.aspx?page=test1 [L]

When I activate global errors I occasionally receive the following error (see source, message & stacktrace below).

Any ideas why this error is being produced? Yes, test1.aspx does not exists, however should the rewrite have been done prior to getting this error?

ERROR:

Source:
System.Web

Message:
The file '/test1.aspx' does not exist.

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.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)


Back to Top
 
HeliconA
Admin Group


Joined: 02 March 2012
Posts: 4142
Posted: 06 March 2012 at 7:39am

Hello,

You may probably have all requests processed by .NET4 and what is preventing requests from being procesed by ISAPI_Rewrite is 'RewriteBase' directive.
Please, try to comment it out.

Regards
Andrew
Back to Top
 
bewise
Newbie


Joined: 28 May 2008
Posts: 12
Posted: 07 March 2012 at 12:04am

I do not have any RewriteBase directives added in my .htaccess file.

Regards
Back to Top
 
HeliconA
Admin Group


Joined: 02 March 2012
Posts: 4142
Posted: 07 March 2012 at 5:06am

Please, provide both config files to make analysis.
You may create helpdesk ticket to do it.

Regards
Andrew
Back to Top
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version