How to Fix this file in asp.net

Posted by Jayakumars under C# on 4/7/2017 | Points: 10 | Views : 206 | Status : [Member] [MVP] | Replies : 0
Hi

In webconfig file why we set this

<sessionState mode="SQLServer">

what are the mode in sessionState ?

when i added sessionstate in my webconfig i meet this error


Message: Unable to serialize the session state. In 'StateServer' and 'SQLServer' mode, ASP.NET will serialize the session state objects, and as a result non-serializable objects or MarshalByRef objects are not permitted. The same restriction applies if similar serialization is done by the custom session state store in 'Custom' mode. System.Runtime.Serialization.SerializationException: Type
'DMCountry' in Assembly


after i command in my webconfig working

But my questions is

what are mode in sessionstate when we can use that mode

<sessionState mode="SQLServer"

Mark as Answer if its helpful to you


Responses

(No response found.)

Login to post response