Cannot access test website on a new server.

Posted on 2011-10-31
Last Modified: 2012-05-12
I am attempting to setup a test website on a new webserver (Windows Server 2008 Web Edition R2, IIS 7.5).  I created a folder c:\inetpub\wwwroot\SuperTest and copied into this folder all the files and directories created by Visual Studio 2010 when the website is published.  I am now trying to access this website from another workstation using the following URL:  I get 401 - Unauthorized:  Access is denied due to invalid credentials.

If I use the URL, I get the default IIS 7 image, thus proving that the web server is accessible.

I can access IIS Manager on the web server.  However, I do not know what to do next.

Question by:Warren_P
    LVL 3

    Expert Comment

    make sure the website has anonymous access available.

    if you have a web.config file, make sure your site is an application within IIS7
    LVL 1

    Author Comment

    Using IIS 7, I navigate to SuperTest in the left pane.  I see SuperTest Home in the right pane.  
    On IIS Authentication, I right click and select "Open Feature".  It shows the following:
    Anonymous Authentication - Enabled
    ASP.NET Impersonation - Enabled
    Forms Authentication - Enabled

    I do have a web.config file.  When the website was created, I right-clicked on "Sites" and created a new website that shows as a peer to the "Default Web Site".
    LVL 1

    Accepted Solution

    Solution provided by Microsoft Developer Support.
    1.  On the web server:  Install .NET Framework 4.0 full, which replaces .NET Framework client profile.
    2.  Gave the IUSR account access to the folder containing the website files.
    3.  Removed and added server role such that IIS will serve ASP.NET applications that target .NET Framework 4.0.
    4.  Setup the site alias in the "hosts" file on the accessing workstation.

    .... Warren
    LVL 1

    Author Closing Comment

    Solution provided by Microsoft Developer Services.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    Server 2008 - Server 2012 Migration 11 58
    SMTP Relay Issue 12 71
    Security Certificate error 5 35
    SBS2011 - CSR Certificate 4 42
    What is an ISAPI filter?   •      It's an assembly (.dll file) that can add or change the way IIS works.   •      They can be enabled globally for your web server or on a site-by-site basis.   When the IIS server receives a request, enabling the ISAPI fi…
    Running classic asp applications under Windows Server 2008 R2 (x64) and IIS 7 is not as easy as one may think. It took me a while to figure it out while getting error 8002801d a few times. After you install the OS you will need to install the fol…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    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

    20 Experts available now in Live!

    Get 1:1 Help Now