asp.netsql-server-2008iis-7.5windows-authenticationpublishing-site

Published asp.net WebApp won't connect. 401.1 unauthorized


asp.net app (c#) worked fine in debug mode; published, getting 401.1 error (unauthorized). When I put in the url, a dialog asks for username & password. Put it in 3x, error.

It's an internal app, using Windows authentication only.

Specific Error Message from 401.1 page:

The app has a users table to determine the "role" of that user. I put a method in the master page that queries the table based on authenticated user, and returns the role. This, in turns, determines which buttons are visible on the navigation bar.

Looked in the security log, and found the following 3 entries:

2012-07-20 14:55:11 10.0.1.38 GET / - 80 - 10.0.13.106 Mozilla/5.0+(Windows+NT+6.1;+rv:14.0)+Gecko/20100101+Firefox/14.0.1 401 2 5 15

2012-07-20 14:55:20 10.0.1.38 GET / - 80 DE\cin.bro 10.0.13.106 Mozilla/5.0+(Windows+NT+6.1;+rv:14.0)+Gecko/20100101+Firefox/14.0.1 500 0 0 125

2012-07-20 14:55:20 10.0.1.38 GET /favicon.ico - 80 DE\cin.bro 10.0.13.106 Mozilla/5.0+(Windows+NT+6.1;+rv:14.0)+Gecko/20100101+Firefox/14.0.1 404 0 2 0

Any idea what might be causing the inability to log in? Any clues what I can fix to make it work? I've researched all day and haven't found what might be the problem. Any information is gratefully received. Thanks Cindy


Solution

  • I've successfully solved the issue; I had to allow impersonation, and make an adjustment to the AD group.

    The article in the following link helped a great deal: http://msdn.microsoft.com/en-us/library/bsz5788z.aspx