[Webinar] Learn how to a build a cloud-first strategyRegister Now


Cannot access test website on a new server.

Posted on 2011-10-31
Medium Priority
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:  http://www.pabscon.com/SuperTest.  I get 401 - Unauthorized:  Access is denied due to invalid credentials.

If I use the URL www.pabscon.com, 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
  • 3

Expert Comment

ID: 37060130
make sure the website has anonymous access available.

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

Author Comment

ID: 37060151
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".

Accepted Solution

Warren_P earned 0 total points
ID: 37125965
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 asp.net 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

Author Closing Comment

ID: 37151714
Solution provided by Microsoft Developer Services.

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…

867 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