I am facing a problem with IIS and ASP.net. I reinstalled the IIS because it wasn't showing the "Default Website" and after that I reinstalled ASP. Now I am facing the error you see below. I should mention that it was working before the IIS reinstallation and the reason I reinstalled it was because I needed to edit the bindings and there was no "Default Website".
Asked
Active
Viewed 3,181 times
3
-
Check if the IIS_IUSRS group still has permission to read that directory. It's possible the group has been regenerated with a new SID. – Rup Apr 30 '13 at 15:07
-
@Rup could you tell me where to check that? – Andrew Apr 30 '13 at 15:24
-
@Rup Under authorization rules, "All users" are listed for "Allow". – Andrew Apr 30 '13 at 15:27
-
Oh - that's probably OK then. It might be worth adding IIS_IUSRS explicitly just in case - I half remember that the app pool users don't count as regular Authenticated Users. – Rup Apr 30 '13 at 15:31
-
@Rup did it, still the same result – Andrew Apr 30 '13 at 15:41
-
:-/ Sorry. There's a few more ideas in this old question: http://stackoverflow.com/a/6685720/243245 – Rup Apr 30 '13 at 16:01
-
@Rup I tried everything. When I try to use a method in a controller, it says that the resource could not be found and it actually tries to open the file. I sounds as if ASP is not really at work, any thoughts? – Andrew Apr 30 '13 at 17:13
-
Tried everything, reinstalled IIS, still nothing. – Andrew May 01 '13 at 08:41
-
You did run aspnet_regiis? – mikey May 01 '13 at 12:48
2 Answers
2
After two days, I finally managed to solve this. What I did to fix it was to make sure that runAllManagedModulesForAllRequests="true"
is present in Web.config
. This fixed the issue.
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>
-
Hi Andrew, I would like to talk to you about something VERY important. Can you send an email to me at sachinkainth[at]hotmail.com please? Thanks. – Sachin Kainth Aug 11 '17 at 11:36
1
I just noticed that you're using MVC. You'll need to ensure your routing is set up right and is actually executing.
-
well, some things from the first link helped me and I fixed it :) Thanks – Andrew May 01 '13 at 17:20