I just setup an out of the box "W2K8 R2 Web" server and installed IIS 7 out of the box. Then I installed the .NET4 framework and ran "aspnet_regiis -i" command.
I created a site using .NET 4.0 Integrated app pool.
I created an MVC application using the default MVC project template, without modifying I compiled the project and deploy the files using (Publish) to the virtual directory.
I can pull the site up, but the styles are missing from the page and for some reason it routing to the /Account/LogOn?ReturnUrl=/
For a new site you need to check the authentication for the Anonymous Authentication.
Right Click "Anonymous Authentication" select "Edit..."
Make sure the "Application pool identity" is selected. It defaults to IUSR for some reason. this should fix your problem.
If not try the attribute without the path attribute, it'll allow everything in the directory of web.config and any sub directories.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With