• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3996
  • Last Modified:

IIS 7.5: Server Error 401 - Unauthorized: Access is denied due to invalid credentials.

I am developing a Web Site application that is running on our company's new virtualized web server.  The server is running W/2008 Server along with IIS 7.5.  The web site is being developed in vs 2010 using vb.

When I look at the web pages on the web server from my development computer using IE, I can connect and view with no problems.   However, when I open IE from a user's workstation using their login, I get this error message:  Server Error 401 - Unauthorized: Access is denied due to invalid credentials.

Here is some information from IIS 7.5 on the web server:

Authentication:
HTTP 401 Challenge = Windows Authentication, Status=Enabled, Response Type=HTTP 401 Challenge
Other = Anonymous Authentication, Status=Enabled

Application Pools:
ASP.NET v4.0, Started, Integrated
ASP.NET v4.0 Classic, Started, Classic
Classic .NET AppPool, Started, Classic
DefaultAppPool, Started, Initegrated

The actual sub code on the 401 error is 2 (401.2)

Thank you for any help.
0
EYoung
Asked:
EYoung
1 Solution
 
sammySeltzerCommented:
2 things:

1, Do you have Html.RenderAction() in your view that called an action method that was marked with the [Authorize] attribute?

2, In IIS, under your website name, what authentication method are you using?

See if Anonymous is *NOT* selected and select it and see what happens.
0
 
EYoungAuthor Commented:
Suggestion # 2 fixed the problem.  Thank you.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now