Unable to serialize the session state. In 'StateServer' and 'SQLServer' mode
<p>I am using <code>MySql</code> and <code>SQLLITE</code> in my application. When Inserting data or updating the data using <code>SQLLITE</code> my <code>session</code> value returning <code>null</code> after query is processed. So in-order to overcome this I write as follows in <code>Web.Config</code></p>

<pre><code>&lt;sessionState mode="StateServer"&gt;&lt;/sessionState&gt;
</code></pre>

<p>Every thing works fine but when coming to a certain page I am getting the error as </p>

<p><code>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.</code></p>

<p>In remaining pages every thing works fine can any one tell why this happens</p>
