user1452030
user1452030

Reputation: 1031

Basic authentication on IIS 7.5

I'm trying to run a simple ASP.NET application with basic authentication on an IIS server. Interestingly, the authentication works fine on almost all servers except my production server. When I deploy the application on that machine, it keeps prompting me over and over for the credentials. Unfortunately, it is a lab machine that I don't have access to and I'm not able to view the logs either.

It's an IIS 7.5 server running on a Windows 2008 VM server I guess, and the content folder (where the default app is pointing to) is on shared with us (we have write access to that folder and that's how we are deploying our applications).

Outside authentication settings on the server, what other things could be causing the issue? Please advise.

Upvotes: 0

Views: 1361

Answers (1)

Magnus Johansson
Magnus Johansson

Reputation: 28325

Most probably this is a access permission to resources used by the web application. The reason you see this repeatedly login prompt is that the account doesn't have the needed permissions.

First you have to determine if you are using impersonation or not. If you do impersonate, the authenticated accounts need the necessary permissions. If you don't impersonate, the application pool account needs the necessary permissions.

So what's the needed permissions?

Well, that could be a lot of things, and we don't know the details of your application.
Do you connect to a database?
Then you have to make sure that current account context has the right permissions to connect to the DB.

Do you read images/files from disk?
Then you have to make sure that current account context has the right permissions to access those resources.

If it is file resources that you are accessing, I would recommend you to use Fiddler and determine which path(s) you'll need to address. It will tell you by those 404 errors.

EDIT: Make sure that your app pool account has the needed permissions for this DLL you mention. Where does it fetch this list from? Is it static in the DLL? Where's this DLL located? Please also check the event logs on the server for any related errors at the time you try to logon.

Upvotes: 1

Related Questions