danhoe
01-27-2010, 05:05 PM
Hi,
I have created a web application named "app2". When I tried to access the aplication using http://www.myweb.com/app2/default.aspx, it should redirect me to the login page.
But, insted it prompts out asking for ID and Password (like windows Authentication).
"The server myweb.com at myweb.com requires a username and password.
Warning: This server is requesting that your username and password be sent in an insecure manner (basic authentication without a secure connection)."
When I click on Cancel, it shows error "Access is denied".
Access is denied.
Description: An error occurred while accessing the resources required to serve this request. The server may not be configured for access to the requested URL.
Error message 401.2.: You do not have permission to view this directory or page using the credentials you supplied. Contact the Web server's administrator for help.
I had checked through the KB & also ASP.Net forum. I had checked that the permission setting is allow for read/write for anonymous users.
I am using authentication mode = "Form". Webconfig file as below:
<authentication mode="Forms">
<forms name="MyWebAuth" path="/" loginUrl="Login.aspx" protection="All" timeout="30">
<credential infor goes here...> </forms>
</authentication>
<authorization>
<deny users="?"/>
</authorization>
Please advice. Is that any setting that I am not doing right?
I have created a web application named "app2". When I tried to access the aplication using http://www.myweb.com/app2/default.aspx, it should redirect me to the login page.
But, insted it prompts out asking for ID and Password (like windows Authentication).
"The server myweb.com at myweb.com requires a username and password.
Warning: This server is requesting that your username and password be sent in an insecure manner (basic authentication without a secure connection)."
When I click on Cancel, it shows error "Access is denied".
Access is denied.
Description: An error occurred while accessing the resources required to serve this request. The server may not be configured for access to the requested URL.
Error message 401.2.: You do not have permission to view this directory or page using the credentials you supplied. Contact the Web server's administrator for help.
I had checked through the KB & also ASP.Net forum. I had checked that the permission setting is allow for read/write for anonymous users.
I am using authentication mode = "Form". Webconfig file as below:
<authentication mode="Forms">
<forms name="MyWebAuth" path="/" loginUrl="Login.aspx" protection="All" timeout="30">
<credential infor goes here...> </forms>
</authentication>
<authorization>
<deny users="?"/>
</authorization>
Please advice. Is that any setting that I am not doing right?