【发布时间】:2012-09-30 12:26:50
【问题描述】:
我正在使用 WCF 服务,它有两个端点 WsHttpBinding 和 NetTcpBinding,并且该服务正在使用表单身份验证。服务托管在 IIS 7 上。
这与 WsHttpBinding 完美配合,但对 NetTcpBinding 无效。
以下语句失败:
FormsAuthentication.SetAuthCookie("COOKIENAME", false);
例外是:
Object reference not set to an instance of an object.
请分享您对此的想法。
【问题讨论】:
标签: wcf exception wcf-binding nettcpbinding form-authentication