当我尝试在 SharePoint 2010 中访问 BCD 列表时出现此错误:
Error while executing web part: Microsoft.BusinessData.Infrastructure.BdcException: The shim execution failed unexpectedly - The type initializer for 'WK.JednostkaPolicjiService' threw an exception.. ---> System.TypeInitializationException: The type initializer for 'WK.JednostkaPolicjiService' threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at WK.JednostkaPolicjiService..cctor() -
-- End of inner exception stack trace ---
at Microsoft.SharePoint.BusinessData.SystemSpecific.DotNetAssembly.DotNetAssemblyConnectionManager.GetEntityObject(IEntity entity)
at Microsoft.SharePoint.BusinessData.SystemSpecific.DotNetAssembly.DotNetAssemblySystemUtility.ExecuteStatic(IMethodInstance methodInstance, ILobSystemInstance lobSystemInstance, Object[] args, IExecutionContext context)
at Microsoft.SharePoint.BusinessData.Runtime.DataClassRuntime.ExecuteInternalWithAuthNFailureRetry(ISystemUtility systemUtility, IMethodInstance methodInstanceToExecute, IMethod methodToExecute, ILobSystemInstance lobSystemInstance, ILobSystem lobSystem, IParameterCollection nonReturnParameters, Object[] overrideArgs)
at Microsoft.SharePoint.BusinessData.Runtime.DataClassRuntime.ExecuteInternal(IDataClass thisDataClass, ILobSystemInstance lobSystemInstance, ILobSystem lobSystem, IMethodInstance methodInstanceToExecute, IMethod methodToExecute, IParameterCollection nonReturnParameters, Object[]& overrideArgs) -
这里棘手的部分是我有一个带有两个区域的 WebApplication:
- 默认(Cliams - Windows 身份验证)
- 互联网(声明 - Windows 和窗体身份验证)
默认区域中的 BCD 列表工作正常,但位于 Internet 区域中的站点中的列表重新运行上述错误。在 BCD 中,我设置了适当的权限。我在这两种情况下都使用 Windows 帐户。
问题可能出在哪里?在此先感谢,克里斯。
~已解决:我在 IIS 中的站点中的 MembershipProvider 配置错误。