State server and Unable to find assembly error

J

jmr

Hi All,

Since I have choosen to use state server for my session variables , I
sometimes get this message

Unable to find assembly 'App_Web_4nsap3_u, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null'.

Note that I did not change any object that are stored in session.

I have to restart ASP .Net state Service to get rid of this error

Any idea of what is happening ?

Thanks
Jean-Michel
 
G

Guest

Yeah - the problem has to do with Serialization/Deserialization of objects.
Unlike InProc session where objects are simply memory references the out of
proc state server serializes/deserializes the objects that you request using
the definition of the object within the binaries.

Basically you're storing the object initially using a particular build then
you are re-building your solution and refreshing your page that attempts to
access those stored variables and to deserialize them but th old binary
doesn't exist.

The reason you only occasionally see this is probably because the dll
involved is a common dll that you only occasionally make changes to (e.g. a
base class, auth dll, etc.) so this only happens when the compiler determines
it needs to rebuild that particular module.

Hope that helps...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top