问题描述
||
SharePoint门户处于声明模式,该服务托管在/ _vti_bin中。
根据http://msdn.microsoft.com/zh-CN/library/ff521586.aspx,我正在使用MultipleBaseAddressBasicHttpBindingServiceHostFactory。
添加对服务的引用会产生一个绑定,该绑定应使用NTLM,因此应正确配置该服务。在同一台计算机上运行的服务客户端(现在)实例化一个新的BasicHttpBinding,将ClientCredentialType设置为Ntlm,AllowNtlm设置为true,甚至(在某些测试中)将Credentials.Windows.ClientCredential设置为DefaultNetworkCredentials或特定的NetworkCredentials。
无论我做什么,Thread.CurrentPrinciple在服务端始终是匿名的,而ServiceSecurityContext.Current.WindowsIdentity同样是空的。
我在这里做错了什么?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)