Login control problem

G

Guest

I have a secured folder that is has the following webconfig file
.......
<authorization>
<deny users="?" />
<allow roles="Admin" />
<allow roles="User" />
</authorization>
........

Whenever I add a user, I use a script to add a user to "User" role. ie

Roles.AddUserToRole(UserNameTextBox.Text, "User");

I am getting to work on my computer but not on the host. That is, I am now
able to to browse the secured folder on my computer but not on the host. I a,
using the Login Control.
What could be the problem?
 
G

Guest

Hi,
Please do check your anoymous settings in the IIS in host computer.Unless
you decide to reject all requests that do not meet the criteria for the
enabled method of IIS authentication, you must enable the IIS Anonymous
Access setting.

Note If you do not enable the IIS Anonymous Access setting, requests not
meeting the criteria for IIS authentication will be rejected and never reach
the ASP.NET application.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,825
Latest member
VernonQuy6

Latest Threads

Top