Login Prompt by windows for asp.net site

I have a asp.net website,when we deployed it to production server,everytime any of the user is trying to access the website there is a Username/Password Prompted by windows(which it should not be doing)...i dont understand why is it doin..and all of sudden it started prompting it...can any one of you guide me as to why all of a sudden it started prompting for this login and password.
Who is Participating?
DinethConnect With a Mentor Commented:
You can enable Anonymous in IIS (In the IIS Manager ,go the web stie properties,->Directory Secutiry->Edit -> Enable Anonymous Authentication.
If you want to read more about ASP.net authentication, you can read the following article.

You have to check the permissions settings for the virtual directory of the website using the IIS manager.  It is possible that the virtual directory is set to require windows authentication.  You should turn that off and grant authority to everyone to execute scripts.
aspnetdevAuthor Commented:
i have following in my web.config file
<authentication mode="Windows" />
    <deny users="?" />
but my virtual directory has anonymous access and Windows authentication checked....will web.config over write virtual direcotry setting or will Virtual Dir setting overwrite the web.config file.For any of the answer msdn url stating that will really help me.
You should leave the web.config file as it is.  However, in the Virtual Dir setting, remove the Windows Authentication checkmark.  I know that if you remove that in IIS, that it won't matter what you have in the web.config file... though, I haven't tried denying any users in the web.config... maybe if you do, then you might have to have windows authentication enabled.
All Courses

From novice to tech pro — start learning today.