Can you add members? My guess is that something is overriding the default membership provider and looking for a DB other than the Umbraco one which doesn't exist.
I just tried to copy the whole site local and now I get this error:
Cannot open database "C:\USERS\HARTVIG\DOCUMENTS\VISUAL
STUDIO 2005\WEBSITES\AJAXENABLEDWEBSITE2\APP_DATA\ASPNETDB.MDF"
requested by the login. The login failed. Login failed for user 'XPH-PAS\ASPNET'.
You have these two lines, I think you need to remove the first line so that the correct defaultProvider can be found:
<roleManager enabled="true"/> <!-- added by NH to support membership providers in access layer <roleManager enabled="true" defaultProvider="UmbracoRoleProvider">
Oh, with code highlighting I now the the problem, your rolemanager is commented out. Remove <roleManager enabled="true"/> and enable the rolemanager block under it and you should be fine.
Error when creating a Role
HI
I have a hosted site which runs fine except when I try to add a new Role. Then I get
A network-related or instance-specific error occurred while establishing a connection to SQL Server......
What is so specific about roles?
I run the lastest 4.0.3
Thanks Paul S
Hi Paul,
Can you add members? My guess is that something is overriding the default membership provider and looking for a DB other than the Umbraco one which doesn't exist.
Hi
Yes I can add members and member types - that's what so really strange
I just tried to copy the whole site local and now I get this error:
Cannot open database "C:\USERS\HARTVIG\DOCUMENTS\VISUAL STUDIO 2005\WEBSITES\AJAXENABLEDWEBSITE2\APP_DATA\ASPNETDB.MDF" requested by the login. The login failed.
Login failed for user 'XPH-PAS\ASPNET'.
????
Hi
I believe it's a UmbracoRoleProvider problem. I have seen post indicating a problem with TrusLevel but I already have Full trust.
There has been a change in the UmbracoRoleProvider - it's out-coomented in 4.0.3.
My 4.0.2.1 version works fine.
/Paul S
Can you show what's in your web.config, I suspect there's a misconfiguration on the role provider
Cheers,
/Dirk
This is the part containing the Membership
<!-- Membership Provider -->
<membership defaultProvider="UmbracoMembershipProvider" userIsOnlineTimeWindow="15">
<providers>
<clear />
<add name="UmbracoMembershipProvider" type="umbraco.providers.members.UmbracoMembershipProvider" enablePasswordRetrieval="false" enablePasswordReset="false" requiresQuestionAndAnswer="false" defaultMemberTypeAlias="Another Type" passwordFormat="Hashed" />
<add name="UsersMembershipProvider" type="umbraco.providers.UsersMembershipProvider" enablePasswordRetrieval="false" enablePasswordReset="false" requiresQuestionAndAnswer="false" passwordFormat="Hashed" />
</providers>
</membership>
<roleManager enabled="true"/>
<!-- added by NH to support membership providers in access layer
<roleManager enabled="true" defaultProvider="UmbracoRoleProvider">
<providers>
<clear />
<add name="UmbracoRoleProvider" type="umbraco.providers.members.UmbracoRoleProvider" />
</providers>
</roleManager>-->
<!-- Sitemap provider-->
<siteMap defaultProvider="UmbracoSiteMapProvider" enabled="true">
<providers>
<clear />
<add name="UmbracoSiteMapProvider" type="umbraco.presentation.nodeFactory.UmbracoSiteMapProvider" defaultDescriptionAlias="description" securityTrimmingEnabled="true" />
</providers>
</siteMap>
<trust level="Full" />
</system.web>
/Paul S
You have these two lines, I think you need to remove the first line so that the correct defaultProvider can be found:
<roleManager enabled="true"/>
<!-- added by NH to support membership providers in access layer
<roleManager enabled="true" defaultProvider="UmbracoRoleProvider">
Oh, with code highlighting I now the the problem, your rolemanager is commented out. Remove <roleManager enabled="true"/> and enable the rolemanager block under it and you should be fine.
Thanks Sebastiaan
That did it.
/Paul S
is working on a reply...