IdentityServer / IdentityServer3.AspNetIdentity

ASP.NET Identity support for Thinktecture IdentityServer3
Apache License 2.0
64 stars 51 forks source link

404 error attempting to host in IIS Express #3

Closed kansberry closed 10 years ago

kansberry commented 10 years ago

I am attempting to create a Visual Studio IISHost project identical to the SelfHost example provided. Within my version, I tell Visual Studio to use IIS Express and set host to "http://localhost:3333". In fiddler, I see a 404 error when code is attempting to access "/core/admin/assets/Content.Bundle.min.css" and "/core/admin/assets/Scripts.Bundle.js".

Any suggestions? I read that "debug" mode may cause this issue, so I attempted to change my web.config to "debug="false"" and run it within VS without debugging. This did not solve the issue.

Thanks, Kevin

brockallen commented 10 years ago

Enable RAMMFAR n web.config.

kansberry commented 10 years ago

Awesome. As you can guess, I am new to OWIN and your suggestion fixed this issue.

kansberry commented 10 years ago

Out of curiosity, which "system.webserver" section is better in the snippets below? It appears both fix the problem, but I read simply setting RAMMFAR to "true" in the web.config can cause performance issues?

<system.webServer>
    <handlers> 
        <add name="Owin" verb="" path="*" type="Microsoft.Owin.Host.SystemWeb.OwinHttpHandler, Microsoft.Owin.Host.SystemWeb"/> 
    </handlers> 
</system.webServer>

OR

<system.webServer>
    <modules runAllManagedModulesForAllRequests="true" />
</system.webServer>

Thanks for any info. Also, if the answer to this question is too complicated, feel free to say so and I will simply close this question.

brockallen commented 10 years ago

This is the correct one:

<system.webServer>
    <modules runAllManagedModulesForAllRequests="true" />
</system.webServer>