Windows Azure Platform Developer Center >
Microsoft Visual Studio 2010 Beta 2 Forums
>
Windows Azure
>
CSS ignored when debugging
CSS ignored when debugging
- Hi
I just changed my developing environment to Windows 2008 Server, everything worked fine but when I start debugging my Azure project, the pages appear without style.
I have only one css referenced in the master page, but the file is ignored when debugging.
I know the file is valid, even if I right click the Default.aspx and click "view in browser", the Casini web server is invoked and the styles appear just right, the problem appears only when debugging with the Azure VS tools.
Any idea?
Thanks
Answers
- Will, my first guess would be that your CSS is not getting copied as part of the build output. Double check the properties for that file (in Visual Studio) and make sure the "build action" is set to "content".
- Marked As Answer byYi-Lun LuoMSFT, ModeratorMonday, March 23, 2009 11:33 AM
- To add to Steve's answer, you can get more info on how to get your files to package correctly here: http://blogs.msdn.com/jnak/archive/2009/01/28/adding-files-to-your-windows-azure-service-package.aspx
Jim Nakashima, Microsoft. (This post is provided "as-is")- Marked As Answer byYi-Lun LuoMSFT, ModeratorMonday, March 23, 2009 11:33 AM
All Replies
- Will, my first guess would be that your CSS is not getting copied as part of the build output. Double check the properties for that file (in Visual Studio) and make sure the "build action" is set to "content".
- Marked As Answer byYi-Lun LuoMSFT, ModeratorMonday, March 23, 2009 11:33 AM
- To add to Steve's answer, you can get more info on how to get your files to package correctly here: http://blogs.msdn.com/jnak/archive/2009/01/28/adding-files-to-your-windows-azure-service-package.aspx
Jim Nakashima, Microsoft. (This post is provided "as-is")- Marked As Answer byYi-Lun LuoMSFT, ModeratorMonday, March 23, 2009 11:33 AM
- Hi,I know this appeared a long time ago and has been "answered" but i have had the same issue, tried all the solutions below and still had no luck. For me the problem was due to fact that i hadn't enabled IIS 7.0 with ASP.NET and WCF HTTP Activation correctly.
- Under Internet Information Services, expand World Wide Web Services.
- Under Application Development Features, click ASP.NET.
- Under Common HTTP Features, click Static Content. (I hadn't done this and it fixed the problem)
Hope this helps anyone who might encounter the same problem - Under Internet Information Services, expand World Wide Web Services.


