0

Hi,

I am using VS 2008 express edition. I want to use asp.net configuration tool .But when i execute the tool it is not working. It display this message in browser 'An error was encountered. Please return to the previous page and try again. '. even though i refresh the page it is not working. Please help me to solve this problem.

3
Contributors
4
Replies
5
Views
6 Years
Discussion Span
Last Post by ITchimes
0

Do you want to add users,or roles ???because there is an alternative way to go about it using the User/Role Managemnt API..If you need help with this just post any further questions,For intstance the code below shows you all the users ,similiar to the users you would see on the asp.net configuration Tool.

if (!Page.IsPostBack)
       {
          GridView1.DataSource = Membership.GetAllUsers();
          GridView1.DataBind();
              
       }
0

Thank you Samacoba. I tried your code but it throws an exception ' Roles are not enabled'. Actually i want to execute the configuration tool anyhow .

0

chances are, on your web.Config the Roles are not Enabled ,Add the Following lines on the Web Config.These lines go under the System.Web tag on the web Config.
Adminitrator and Role One are examples of possible roles.

To be honest the error you have has never occured for me.

<roleManager enabled="true"/>
		<authentication mode="Forms"/>
		<authorization>
			<allow roles="Administrator"/>
			<allow roles="Role One"/>
			<allow users="?"/>
		</authorization>
0

Just reinstall visual studio 2008 because when you install your disk may leave these files.this is installation problem.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.