Solved

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

Posted on 2008-06-14
3
313 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Object Oriented Best Practice 5 34
eclipse formatting 6 41
C# code editing and collaboration 3 47
Get String split 5 33
A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.

757 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now