I created an MCV 3 app and deployed it to a development server in my organization. It works OK in my development machine. However, I noticed that in the dev server, the application redirects me to Account/LogOn?ReturnUrl=%2f web page even after I’ve logged in correctly. I also see that sometimes some of the assets(CSS, Javascript, images) are not served either.
The error message shown is below. After refreshing the page, the application works just fine. If I don’t accesss the app in a little while, the error comes back.
Any ideas?
Server Error in ‘/’ Application.
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its
dependencies) could have been removed, had its name changed, or is
temporarily unavailable. Please review the following URL and make
sure that it is spelled correctly.Requested URL: /Account/LogOn
The solution was to disable forms authentication in IIS.