我想为我的Silverlight应用程序使用当前的Windows用户。使用任何其他应用程序,我可以使用WindowsIdentity
,但似乎我需要使用WCF与ServiceSecurityContext.Current
。我的问题是.Current
出现为null
。在WCF/Silverlight中使用ServiceSecurityContext.Current 4
显然这是因为我使用的传输模式。我的问题是,Silverlight不能使用TransportWithMessageCredential
显然没有它想使用Https。
所以我尝试使用TransportWithMessageCredential
和我的服务开始说它期待Https,但接受Http。
我在网上看了一圈,似乎我需要使用wsHttpBinding(不适用于Silverlight)或某种形式的访问策略使用Http(看起来不起作用)。
当然有更简单的方法来做到这一点?
有没有可能这样做aspNetCompatibilityEnabled =“true” – TheWommies 2013-07-30 22:50:57