Author: rpprince | Posted on: 4/14/2009 9:24:54 AM | Views : 383

In my web service I need to keep track of a value called store number.  I have two methods I use to attempt to do this.  Both have EnableSession=true set.

Method #1 - SetStoreNbr(string StoreNum) - I call this method and pass it the value.  The value is then stored in the Session variable, like this: 

Session["StoreNum"] = StoreNum;

 In method #2 - GetStoreNbr(), I attempt to retrieve the value from the Session variable, like so:
string str = Session["StoreNum"].ToString();
However, when GetStoreNbr() is called, the Session variable is null, resulting in the following error:  

System.Web.Services.Protocols.SoapException: Server was unable to proc ...

Go to the complete details ...