开发者

Problem integrating members from an Umbraco site into Sitecore using the UmbracoMembershipProvider

The rundown is we currently have a site based on Umbraco v4.6.1 with its list of members and would like to integrate those members into our Sitecore v6.5 instance under its own domain using the standard UmbracoMembershipProvider.

To do that, we've added the appropriate connection string as well as these entries in the web.config:

<membership defaultProvider="sitecore" hashAlgorithmType="SHA1">
  <providers>
    <clear />
    <add name="sitecore" type="Sitecore.Security.SitecoreMembershipProvider, Sitecore.Kernel" realProviderName="switcher" providerWildcard="%" raiseEvents="true" />
    <add name="sql" type="System.Web.Security.SqlMembershipProvider" connectionStringName="core" applicationName="sitecore" minRequiredPasswordLength="1" minRequiredNonalphanumericCharacters="0" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="256" />
    <add name="switcher" type="Sitecore.Security.SwitchingMembershipProvider, Sitecore.Kernel" applicationName="sitecore" mappings="switchingProviders/membership" />
    <add name="UmbracoMembershipProvider" type="umbraco.providers.members.UmbracoMembershipProvider" enablePasswordRetrieval="false" enablePasswordReset="false" requiresQuestionAndAnswer="false" defaultMemberTypeAlias="Another Type" passwordFormat="Hashed" />
  </providers>
</membership>

and

<switchingProviders>
  <membership>
    <provider providerName="UmbracoMembershipProvider" storeFullNames="false" wildcard="%" domains="umbraco" />
    <provider providerName="sql" storeFullNames="true" wildcard="%" domains="*" />
  </membership>
  <roleManager>
    <provider providerName="sql" storeFullNames="true" wildcard="%" domains="*" />
  </roleManager>
  <profile>
    <provider providerName="sql" storeFullNames="true" wildcard="%" domains="*" />
  </profile>
</switchingProviders>

Then, we referenced the following required dll's from Umbraco:

  • businesslogic.dll
  • cms.dll
  • interfaces.dll
  • Microsoft.ApplicationBlocks.Data.dll
  • umbraco.DataLayer.dll
  • umbraco.providers.dll

Now when we try to run Sitecore, it throws a StackOverflowException from mscorlib.dll.

Does anyone have any idea of what could be happening here?

EDIT: The StackOverflowException is thrown from IIS (w3wp.exe). The 2 events logged is:

Faulting application name: w3wp.exe, version: 7.5.7601.17514, time stamp: 0x4ce7afa2
Faulting module name: clr.dll, version: 4.0.30319.237, time stamp: 0x4dd2333e
Exception code: 0xc00000fd
Fault offset: 0x000000000064ca10
Faulting process id: 0x1f1c
Faulting application start time: 0x01cc73fe843e74e0
Faulting application path: c:开发者_JS百科\windows\system32\inetsrv\w3wp.exe
Faulting module path: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
Report Id: da1c3356-dff1-11e0-bab2-2c27d72da698

and

Faulting application name: w3wp.exe, version: 7.5.7601.17514, time stamp: 0x4ce7afa2
Faulting module name: mscorlib.ni.dll, version: 4.0.30319.237, time stamp: 0x4dd2341f
Exception code: 0xc00000fd
Fault offset: 0x000000000039b7ef
Faulting process id: 0x1874
Faulting application start time: 0x01cc73fe9ec4bb9f
Faulting application path: c:\windows\system32\inetsrv\w3wp.exe
Faulting module path: C:\Windows\assembly\NativeImages_v4.0.30319_64\mscorlib\8f7f691aa155c11216387cf3420d9d1b\mscorlib.ni.dll
Report Id: df3e3c39-dff1-11e0-bab2-2c27d72da698


I realise this question is a little old, but you may want to try and add a setting to your element called umbracoDbDSN - this is the primary entry point into the Umbraco SQL store, and it's what the UmbracoMembershipProvider uses - not the connectionStrings section (which, yes, is a known issue, and is a work-in-progress in future Umbraco development roadmaps).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜