Answered by:
Browser asing for username/password

Question
-
User1180806401 posted
Hi Guys,
I've and application running over the net and the problem is that everytime is asking me for the server's username/password, by providing the credentials I'm able to access the page, but how can I avoid that?
this what I have in my web config file, i removed the the whole <authentication> tag but still the same thing
<authentication mode="Windows">
<forms loginUrl="~/Public/daLogin.aspx" defaultUrl="~/Public/Default.aspx" name=".ASPXAUTH" path="/" />
</authentication>
<authorization>
<deny users="?" />
<allow users="*" />
</authorization>
<roleManager enabled="true" />thanks
Sunday, May 15, 2016 9:48 PM
Answers
-
User-2057865890 posted
Hi rbadis,
<authentication mode="Windows">Windows Authentication is the default authentication mechanism for ASP.NET applications and is identified as the authentication mode for an application using the authentication configuration element.
You could disable Windows Authentication and enable Anonymous Authentication in IIS Express, or you could consider using Forms Authentication.
<authentication mode="Forms">
Best Regards,
Chris
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Monday, May 16, 2016 9:57 AM
All replies
-
User2053451246 posted
Go into IIS and make sure that Anonymous is enabled in the Authentication section. Also make sure to not have any <roleManager> tags.
Sunday, May 15, 2016 10:03 PM -
User1180806401 posted
The Anonymous authentication is enabled and removed the <rolemanager> tag and still the same problem.
thanks
Sunday, May 15, 2016 11:47 PM -
Monday, May 16, 2016 1:24 AM
-
User-2057865890 posted
Hi rbadis,
<authentication mode="Windows">Windows Authentication is the default authentication mechanism for ASP.NET applications and is identified as the authentication mode for an application using the authentication configuration element.
You could disable Windows Authentication and enable Anonymous Authentication in IIS Express, or you could consider using Forms Authentication.
<authentication mode="Forms">
Best Regards,
Chris
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Monday, May 16, 2016 9:57 AM