Here\'s what I\'m trying to do to use the Session
in my WCF application:
System.Guid guid = System.Guid.NewGuid();
string id = guid.ToString()
You will need to enable ASP.NET Compatibility Mode
web.config
<system.serviceModel>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" />
</system.serviceModel>
Your WCF services need to have the AspNetCompatibilityRequirementsAttribute set to Required or Allowed.
[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Required)]
public class CalculatorService : ICalculatorSession