Link to home
Start Free TrialLog in
Avatar of muneerz
muneerz

asked on

Whenever I try to "create a new user" using this tool, I get this error:

Whenever I try to "create a new user" using this tool, I get this error:

"An error was encountered. Please return to the previous page and try again."
An error was encountered. Please return to the previous page and try again.

The following message may help in diagnosing the problem: Unable to connect to SQL Server database. at System.Web.Administration.WebAdminPage.CallWebAdminHelperMethod(Boolean isMembership, String methodName, Object[] parameters, Type[] paramTypes) at ASP.security_roles_manageallroles_aspx.BindGrid() at ASP.security_roles_manageallroles_aspx.Page_Load() at System.Web.Util.CalliHelper.ArglessFunctionCaller(IntPtr fp, Object o) at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
 

Funnily enough, when I go back to the previous page and try again, I get the same message.
Does anyone know what's going on?

Checked the following websites:
http://forums.asp.net/t/1090491.aspx

My web config file is as follows:

<?xml version="1.0"?>

<configuration>
      <appSettings/>
      <connectionStrings>

            <add name="Con1" connectionString="Data source=MYSQLSERVER; Initial Catalog=MYDATABASE; Integrated Security=true" />


      </connectionStrings>
      <system.web>
                        <compilation debug="true"/>

            <authentication mode="Forms">
                  <forms name ="cookie" loginUrl ="Login.aspx" timeout ="60" defaultUrl ="Default.aspx"></forms>
                  
            </authentication >
            <authorization>
                  <deny users ="?"/>
            </authorization >
                  <membership defaultProvider="Member">

                        <providers>
                              <add name="Member" connectionStringName="Con1" type="System.Web.Security.SqlMembershipProvider"/>
                        </providers>
                  </membership >

            <roleManager enabled ="true">
                  
            </roleManager>
      
      </system.web>
</configuration>

Kindly check and let me know whether i need to add some thing or what
ASKER CERTIFIED SOLUTION
Avatar of muneerz
muneerz

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of muneerz
muneerz

ASKER

I got the solution for the above question from other resource.