English 中文(简体)
行动案文。 现状无效,所有其他情况也一样
原标题:OperationContext.Current is null and all other contexts too

我有以下定义:

[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
[ServiceBehavior(IncludeExceptionDetailInFaults = true, InstanceContextMode = InstanceContextMode.PerCall)]
public partial class FrontEndService : IFrontEndService

但是,大多数时间(但并不总是)<条码> 。 HttpContext.Current and OperationContext.Current is also no.

我失踪了什么? 我想做的是将一些数据储存在<代码>。 HttpContext.Current.Items 或为请求的长度而存在的类似收集。

最佳回答

这项服务刚刚从另一个深处,而不是通过吉大港山区,因此所有情况都是无效的。

问题回答

暂无回答




相关问题
WCF DataMember Serializing questions

Ok, so I was part way through the long winded process of creating DTOs for sending my model over the wire and I don t feel like I m going down the right route. My issue is that most of the entities ...

Access WCF service on same server

I have a .NET website with a WCF service. How do I access the current operations context of my service? One possible work around is to just make a call to the service within the app...but that seems ...

WCF binding error

So I got into work early today and got the latest from source control. When I try to launch our ASP.NET application, I get this exception: "The binding at system.serviceModel/bindings/wsHttpBinding ...

The service operation requires a transaction to be flowed

I am facing strange issue with our WCF service. The same code was working fine until recently we added more OperationContracts(Web Methods). We have common 3 tier architecture. DAL (WCF) BLL Web ...