views:

2473

answers:

3

I have a web site running via IIS7 on Vista. The site is running on port 88, so http://localhost:88 should render the default /Home/Index view.

This works correctly, as do all other views.

However, one problem is resident. My script paths point to /Scripts/[FILE] and my CSS paths point to /Content/[FILE]. My assumption was that the /Content or /Scripts folder would always be at the root of the site as I have no intention to run this site in a virtual directory setting. Whenever the pages render, they have NO CSS or script! So everything looks wonky and the scripting obviously doesn't work, hence a lot of the views don't work either.

This is a very odd problem, one that I'm sure is a result of my lack of knowledge hosting things under IIS7. I'd appreciate any help anyone could offer. Thanks a lot!

+3  A: 

The problem was in the way I created the application. According to the forum thread located here, I needed to select the "Classic .NET AppPool" to fix my problem. Gotta love progress!

brady gaster
+1  A: 

Turns out this isn't a fix on Windows 2008. Should anyone have any ideas on how to resolve this matter it'd be appreciated.

Detailed problem:

Windows 2K8 Server, IIS7. Have pipeline turned on and static file support installed. MVC works, but CSS doesn't render.

What the heck?

brady gaster
+5  A: 
brady gaster
i meant 2k8, btw. cheers.
brady gaster
Thanks for this. Worked for me when I ran into the issue too.
BioBuckyBall