Solved

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

Posted on 2008-06-14
3
324 Views
Last Modified: 2013-11-26
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
0
Comment
Question by:muneerz
  • 2
3 Comments
 

Accepted Solution

by:
muneerz earned 0 total points
ID: 21805437
Dear Modus,

I got the solution for the above question, thanks a lot for your kind help.

0
 

Author Comment

by:muneerz
ID: 21805449
I got the solution for the above question from other resource.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question