Ask a questionAsk a question
 

AnswerCSS ignored when debugging

  • Monday, March 16, 2009 10:56 PMwillvv Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    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

All Replies

  • Tuesday, March 17, 2009 12:36 AMSteve MarxMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    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".
  • Tuesday, March 17, 2009 3:05 AMJim NakashimaMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    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")
  • Wednesday, October 07, 2009 2:57 PMMax_Headroom Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    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. 


    1. Under Internet Information Services, expand World Wide Web Services
    2. Under Application Development Features, click ASP.NET.
    3. 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