RE: Web Administration Tool Crashes when creating user
- From: hongyes@xxxxxxxxxxxxxxxxxxxx ("Hongye Sun [MSFT]")
- Date: Mon, 16 Feb 2009 06:15:20 GMT
Hi Jerry,
Thanks for your post. I am Hongye Sun [MSFT] and it is my pleasure to work
with you on this issue.
From your question, I see that you have configured connection string"Membership" and membership provider "AspNetSqlMembershipProvider", however
when you attempting to create a user, open SQL connection exception is
thrown at code: ASP.security_users_adduser_aspx.PopulateCheckboxes().
In ASP.security_users_adduser_aspx.PopulateCheckboxes() method, which is
located at
C:\Windows\Microsoft.NET\Framework\v2.0.50727\ASP.NETWebAdminFiles\Security\
Users\addUser.aspx. It will check if the Role Manager has been enabled. If
yes, it will get all roles in the system, which will open a SqlRoleProvider
connection. However, in your code, there is no SqlRoleProvider configured.
That is possible the cause of the the problem.
In order to check if the Role Manger has been enabled, please check the
following code in web.config file:
------------------------------------------
<system.web>
<roleManager enabled="true" />
</system.web>
------------------------------------------
To fix this issue, just set enabled to false in code above.
Website Administration Tool is development tool in Visual Studio. When you
open it from Visual Studio, there will be an ASP.NET development server
tray shown. The development server is run as your current user's account.
That means you have to grant current development user with read permission
on membership or role database.
In addition, here is walkthrough to configure Website Administration Tool
to connect to database:
http://weblogs.asp.net/scottgu/archive/2005/08/25/423703.aspx
It is reusing the default connection string name: LocalSqlServer, which is
used by default Membership or Role manager. If you change the connection
string name from "Membership" to "LocalSqlServer", you do not need to
configure any Membership and Role providers in web.config. ASP.NET will use
the default providers to connect to your database. In addition, I see that
you have not cleared the default settings of connection strings and role
providers,.Website Administration Tool will try to open the default
connection string when loading security tab, that is the possible cause of
the slow loading.
BTW: I was unable to open jrl.webhop.net site. So please point out me if I
missed anything here. Thanks.
I see that you have many questions on this issue. Please let me know if my
reply answers all of them. I will be very glad to help if you have further
questions. Have a nice day!
Regards,
Hongye Sun (hongyes@xxxxxxxxxxxxxxxxxxxx, remove 'online.')
Microsoft Online Community Support
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@xxxxxxxxxxxxxx
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.
Note: MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within?2 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions. Issues of this
nature are best handled working with a dedicated Microsoft Support Engineer
by contacting Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/en-us/subscriptions/aa948874.aspx
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
.
- Follow-Ups:
- References:
- Prev by Date: RE: Visual Studio 2005 Package Load Failure
- Next by Date: Re: Web Administration Tool Crashes when creating user
- Previous by thread: Web Administration Tool Crashes when creating user
- Next by thread: Re: Web Administration Tool Crashes when creating user
- Index(es):
Relevant Pages
|
Loading