IIS problem, please help?
hi, I have a website that is hosted on iis 6.0 and it's domain name www.mywebsite.com
The virtual directory folder has anonymous access enabled and also integrated windows authentication checked also.
When a user writes www.mywebsite.com in his browser, a prompt for user credentials is displayed but if he writes www.mywebsite.com/login.aspx, it doesn't ask for any user credentials. I want to know how can I fix this. 3 months ago it was working fine. I don't what happened.
Note: recently the site owner registered a new domain www.mywebsite2.com that points to www.mywebsite.com so if a user writes www.mywerbsite2.com, it redirects to www.mywebsite.com.
Could this be the issue or what?
I don't want this prompt to appear when the user writes www.website.com.
Can someone help?
Thanks
Comments
The problem is windows user authentication. This works well for intranets (inside-the-company networks) but it is not suitable for a public website, otherwise you would have to set up windows accounts for all users. So it is best to use the basic password authentication.
It looks liek you use asp .net 2.0. Adding username/password authentication is simple.
This link, http://quickstarts.asp.net/QuickStartv20/aspnet/do... , gives you a few asp .net coding examples for the different authentication schemes (woindows based, forms based, etc). These are all working examples that you can try out on your development PC (XP or Vista) and then deploy the code to your windows 2003 server.