我们目前有一个基于Umbraco v4.6.1及其成员列表的网站,并且希望使用标准的UmbracoMembershipProvider将这些成员集成到我们自己域下的Sitecore v6.5实例中。
为此,我们在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>
和
<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>
然后,我们从Umbraco引用了以下必需的dll:
现在,当我们尝试运行Sitecore时,它会从mscorlib.dll抛出一个StackOverflowException。
有没有人知道这里会发生什么?
编辑:从IIS(w3wp.exe)抛出StackOverflowException。记录的2个事件是:
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:\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
和
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
答案 0 :(得分:0)
我意识到这个问题有点陈旧,但你可能想尝试为你的元素添加一个名为umbracoDbDSN的设置 - 这是进入Umbraco SQL商店的主要入口点,这是UmbracoMembershipProvider使用的 - 不是 connectionStrings部分(是的,这是一个已知问题,并且是未来Umbraco开发路线图中的一项工作进展)。