JensOlsen112
JensOlsen112

Reputation: 1299

IIS authentication error

I'm trying to simply run a local website which has sime basic HTML files using IIS. Through the IIS Manager I have created a new website and have set the physical path to the directory with the HTML files. However when I input the physical path I get the following warning:

The server is configured to use pass-through authentication with a built-in account to access the specified physical path. However, IIS Manager cannot verify whether the built-in account has access. Make sure that the application pool identity has Read access to the physical path. If this server is joined to a domain, and the application pool identity is NetworkService or LocalSystem, verify that \$ has Read access to the physical path. Then test these settings again.

Now, when I navigate to the site through localhost I get the following Unauthorized error:

You do not have permission to view this directory or page because of the access control list (ACL) configuration or encryption settings for this resource on the Web server.

What's going on here? When I right click my folder I seem to have given access to everyone. I haven't made any specific IIS changes so what could be the issue here?

EDIT: MAN I cannot believe this. My case is so simple (I just wanna display some HTML files on localhost) which should require ZERO configuration at all. Yet IIS fails to meet the demand.

EDIT: I think everyone should have permission to my folder. Here's a picture of the permissions screen for the folder: enter image description here

Upvotes: 1

Views: 9939

Answers (1)

Michael McPherson
Michael McPherson

Reputation: 498

Working with a set of server protocols is different than adding files to a share. In this case, you're going to want to open IIS and navigate to the website you added it as.

There, you'll see a variety of icons, some under the heading of ASP.NET, some under IIS. The first heading you'll see under IIS is Authentication. That's the one you want. If this is strictly internal/for learning, go ahead and enable Anonymous Authentication. It's not safe, but it'll get you in the right place to start googling around.

Upvotes: 1

Related Questions