Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting IIS Network Password prompt when accessing ASP pages

Status
Not open for further replies.

happyb

Programmer
Oct 25, 2000
29
AU
Hi,

I am running IIS4 on Windows NT.

I am getting a Network Password prompt when I am trying to access ANY asp page. I assumed that the directory that initalises/associates asp was restricted, so I opened the folders that hold the asp.dll file: 'system32' and 'system32/inetserv' to read and execute for everyone. Still this did not work. Am I looking in the wrong directory?

Also, I am running CDONTS to access email, when I get the page loading. Is this a default ASP file in IIS4?, or do I have to download an installable ASP script from MSDN?

Thanks for your time, I am kinda a newbie at ASP

Much Appreciated,

Happy :)
 
in which directory are you hosting your application?
it should be under c:\inetpub\ if don't declare any virtual directory.

lets say it you developed your application in c:\inetpub\
go to start --> run --> type mmc -->go to Internet Information Service --> default web site --> test
Right click --> properties --> directory security -->click in the anonymus access and authentification control on the edit button --> check anonymus access, uncheck all others

It should work now!
Regards,
Durug
 
Thanks for the tip, this is what I did...

I actually have the web files under c:\inetpub
so it's c:\inetpub\test

I made a directory in that test directory called 'scripts' and I placed the asp file in there, and check the properties for that folder in IIS, and then I made that folder to allow anonymous access. I didn't want to leave the main folder open...ftp security.

When I try to access the file now, through the anonymous scripts dir, I don't get a password, but I do get an error like the one if you fail the password prompt...

401.3 Unauthorized: Unauthorized due to ACL on resource

Any Ideas?

Happy
 
Because you put the directory under c:\inetpub, did you make a virtual directory which will point to your directory?
(c:\inetpub\test)
 
No, I just made a new site, with and IP address and used the c:\inetpub\test as the home directory
 
Ensure ther is sufficient access in NT explorer to the file or directory for the anonymous browser signon (set up in the IIS manager for the website). Also ensure that the security options in IIS manager are set for either anonymous access or BOTH the other security options if you want to restrict access.
Hope that helps - good luck
I don't have other ideas :(
 
I have checked all that already, but will check again.

I really appreciate the effort to help.

Thanks,

Happy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top