asp.NET 4 Web Application Project - Master Page Not rendered after publishing to IIS 6

Posted on 2011-05-11
Last Modified: 2012-05-11
I have developed an v4 web application project in Visual Studio 2010 using a master page with 2 content holders.  The main page of the sight has 2 dropdowns in one contentholder and a formview control in the other, which display and edit information from an Access 2007 database.  When rendering the page on the local machine with the local .net development server the page displays and works as expected with the master page layout and the content.  When I publish the sight to our Windows 2003 R2/SP2 IIS 6 server with the .net framework 4 loaded and configured for the sight to use,  the main page will display and function correctly,, but the master page layout is not loaded into the page.  There is no error displayed, and I have tried creating a new aspx with some simple content with the master page and the same scenario, the page displays the master page content correctly on the local asp server but the not on the IIS server when published.  Any ideas how to correct or a suggested workaround?
Question by:allej0ly

    Accepted Solution

    Ok, I have resolved the issue....the styles.css file was not being copies to the IIS server when I published.  I manually copied the file and the master page is now being rendered as expected.  I wonder if this is the exptected behavior when publishing?
    LVL 83

    Expert Comment

    Is the CSS file "Linked" into the master page?

    Author Closing Comment

    I had not markesd the css file to be copied with the project to the target

    Author Comment


    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
    It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now