Note that there are some explanatory texts on larger screens.

plurals
  1. POMVC 1 and IIS 7 error code 4011
    primarykey
    data
    text
    <p>I've got an MVC 1 application running on IIS 7.5. After some operations are complete, I've got a RedirectToRoute call using System.Web.Routing.RouteValueDictionary as the second parameter. Basically it calls for "Details" of the particular object by ID.</p> <p>When this code is encountered on my production server running IIS 7.5, it takes me back to the login page and has a ReturnUrl value in the URL at the top. Once I log in again, it takes me to the page that it was supposed to take me directly to with RedirectToRoute. </p> <p>It does not do this on localhost. The details in the event log are:</p> <blockquote> <p>Event code: 4011<br> Event message: An unhandled exception has occurred <br> ... <br> Application domain: -domain- <br> Trust level: Full <br> Application path: c:\inetpub\wwwroot\ <br> ... <br> Request URL: <a href="http://mysite.com/405/Acquisition" rel="nofollow">http://mysite.com/405/Acquisition</a> <br> Request path: /properties/405/Acquisition <br> User host address: -my external ip- <br> User: -logged in user- <br> Is authenticated: True <br> Authentication Type: Forms <br> Thread account name: NT AUTHORITY\NETWORK SERVICE</p> </blockquote> <p>Now of course that path does not exist physically on the server, hence the use of MVC. So I'm guessing its some sort of permissions thing with IIS7? Especially because it goes to the correct page (and displays the confirmation message) when I log in again. Isn't that what Event Code 4011 is?</p> <p>Any help is appreciated.</p> <p><strong>EDIT:</strong></p> <p>Per Phill's question, here is that piece of the web.config:</p> <pre><code>&lt;modules runAllManagedModulesForAllRequests="true"&gt; &lt;remove name="ScriptModule" /&gt; &lt;remove name="UrlRoutingModule" /&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; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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