Wcf 是否可以配置自定义数据服务<;T>;允许冒充?
在“标准”WCF服务上,我只需使用以下方法标记操作方法:Wcf 是否可以配置自定义数据服务<;T>;允许冒充?,wcf,wcf-data-services,odata,impersonation,Wcf,Wcf Data Services,Odata,Impersonation,在“标准”WCF服务上,我只需使用以下方法标记操作方法: [OperationBehavior(Impersonation = ImpersonationOption.Allowed)] 但对于我的数据服务,只要打开DataServiceHost,我就会收到一个InvalidOperationException: The service operation 'ProcessRequestForMessage' that belongs to the contract with the 'IRe
[OperationBehavior(Impersonation = ImpersonationOption.Allowed)]
但对于我的数据服务,只要打开DataServiceHost,我就会收到一个InvalidOperationException:
The service operation 'ProcessRequestForMessage' that belongs to the contract with the 'IRequestHandler' name and the 'http://tempuri.org/' namespace does not allow impersonation.
如何标记“ProcessRequestFormMessage”以允许模拟 配置以下行为:
<behavior>
<serviceCredentials useIdentityConfiguration="true" />
<serviceAuthorization principalPermissionMode="Always" impersonateOnSerializingReply="true" />
</behavior>
另请参见这是否仅为4.5?我们使用的是4.0