【问题标题】:Why ServiceSecurityContext.Current is null?为什么 ServiceSecurityContext.Current 为空?
【发布时间】:2012-12-17 20:40:22
【问题描述】:

我对 WCF REstful 服务不是很熟悉。

我正在尝试测试我的方法 - 从 Db 中删除一些记录 - 以及我调用的对象:

ServiceSecurityContext.Current 在某个时候(为了修改 LastModified 属性),我得到 NullArgumentException,因为 .Current 为 null。

我正在使用 Windows 身份验证。

有什么建议吗?

【问题讨论】:

    标签: .net wcf security wcf-security


    【解决方案1】:

    您正在拨打的电话可能没有启用身份验证。查看绑定和服务行为,看看是否发现了问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-10-30
      • 2015-06-30
      • 2016-07-11
      • 2013-09-21
      • 2012-02-15
      • 1970-01-01
      • 2020-08-22
      • 2018-11-04
      相关资源
      最近更新 更多