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) -
ここで注意が必要なのは、2つのゾーンを持つWebアプリケーションがあることです。
- デフォルト(Cliams-Windows認証)
- インターネット(クレーム-Windowsおよびフォームの認証)
デフォルトゾーンのBCDリストは正常に機能していますが、インターネットゾーンのサイトにあるリストはエラーの上で再実行されます。BCDでは、適切な権限を設定しました。どちらの場合もWindowsアカウントを使用します。
どこに問題があるのでしょうか?よろしくお願いします、クリス。
〜解決済み:IISのサイトでMembershipProviderの構成が間違っていました。