Note that there are some explanatory texts on larger screens.

plurals
  1. POURL Routing / MapRequestHandler error for HTML page in IIS
    text
    copied!<p>In my localhost, I cannot setup working environment. I copied web.config from staging where everything is ok. I get error 404 for html page.</p> <pre><code>Module IIS Web Core Notification MapRequestHandler Handler StaticFile Error Code 0x80070002 </code></pre> <p>I added following in web.config from <a href="http://msdn.microsoft.com/en-us/magazine/dd347546.aspx" rel="nofollow">this</a> article which is not present in Staging and still works but I added in my localhost with no success :</p> <pre><code>&lt;modules runAllManagedModulesForAllRequests="true"&gt; &lt;remove name="ScriptModule" /&gt; &lt;add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /&gt; &lt;add name="UrlRoutingModule" type="System.Web.Routing.UrlRoutingModule, System.Web.Routing, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /&gt; &lt;/modules&gt; &lt;handlers accessPolicy="Read, Execute, Script"&gt; &lt;add name="UrlRoutingHandler" preCondition="integratedMode" verb="*" path="UrlRouting.axd" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /&gt; &lt;/handlers&gt; </code></pre> <p>Site has CMS and html pages are stored in DB, no physical HTML page exists. But I thought following should do job for redirecting:</p> <pre><code>&lt;httpErrors&gt; &lt;remove statusCode="404" subStatusCode="-1" /&gt; &lt;error statusCode="404" prefixLanguageFilePath="" path="/_redirect.aspx" responseMode="ExecuteURL" /&gt; &lt;/httpErrors&gt; </code></pre> <p>What else can I do here to run my html page? Any help is much appriciated!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload