HttpContext.Current.Session is null (Inside WebService)


[WebMethod(EnableSession = true)]
public void SomeMethod()
{
    ... code here
}
[WebMethod(EnableSession = true)]
public void SomeMethod()
{
    ... code here
}
  1. <code>
  2. [WebMethod(EnableSession = true)]
  3. public void SomeMethod()
  4. {
  5. ... code here
  6. }
  7. </code>
<code>
[WebMethod(EnableSession = true)]
public void SomeMethod()
{
    ... code here
}
</code>

Popular posts from this blog

Could not load file or assembly 'Microsoft.ReportViewer.Common, Version=xx.0.0.0, Culture=neutral, PublicKeyToken='xxx' or one of its dependencies.

C# Crop white space from around the image

The specified version string contains wildcards, which are not compatible with determinism.