Using Visual Studio 2010, I just created a brand new .net 4.0 "WebSite" (File--> "New Web Site..."), converted it to an Application in IIS 7, set the app pool to a .net 4.0 app pool that works fine with a couple other applications on this machine.
When I hit F5 to debug it, it works fine, but when I browse to http://localhost/WebAppName
none of the CSS renders, and every time I click a link it goes to the login page. The rendered source does include the reference to the CSS file, and I've been able to browse to a test file in the same folder as the css file. When I try to browse directly to the css file itself, it automatically forwards me to the Login page, so I have a feeling it's a permission thing somewhere in IIS.
Anyone have experience with this?