stepkurt
10/19/2006 4:51:00 PM
I wish I could help but I'm looking for answers to the same problem...
We have the exact setup and whenever I try and store a large datatable in
session, we get that error...and datatable should be serializable.
In testing, I changed the stored proc to return only the TOP 1000 and it
works fine. Obviously, this won't be acceptable in the production environment
so I need to find a solution.
Maybe there is there someting else to configure on the database server?
On another note...Right now this database has already inflated to 1GB in
size...with 3 people testing!
What happens to this session database when 1000 users are on there at the
same time? Will it inflate to 10GB and crash the server?
"MrFez" wrote:
> My system is setup with framework 1.1.4, sql server 2000 and w3k web server.
>
> My app runs with session state set to SQL and most of it runs fine.
> Whenever I am dealing with large amounts of data returned (ex: 60000 records)
> I'm getting the following error:
> "Unable to serialize session state. Please note that non-serializable
> objects... are not permitted when session state mode is SQLServer".
>
> There are no non-serializable objects being stored in the database. All
> connections are being closed properly.
>
> In a effort to debug this i have tried the following and the app works when:
> * a different webserver is pointing to the same database
> * the same webserver pointing to a different database
> * a smaller result set returned
> * when the webserver is rebooted the first 2 or 3 times a large result sets
> can be successfully returned.
>
> The only time it doesn't work is when session state is set to "SQLServer" on
> a particular webserver using a particular database. When the error starts
> happening under these conditions, if I switch to InProc, everything works
> again.
>
> The web server the problem is seen on is running multiple web apps.
>
> My web.config session state is:
>
> mode="SQLServer"
> stateConnectionString="tcpip=127.0.0.1:42424"
> stateNetworkTimeout="600"
> sqlConnectionString="data source=<server>;user id=<user>;password=<pwd>"
> cookieless="false"
> timeout="20"
>
> My machine.config session state is:
>
> mode="InProc"
> stateConnectionString="tcpip=127.0.0.1:42424"
> stateNetworkTimeout="10"
> sqlConnectionString="data source=127.0.0.1;Integrated Security=SSPI"
> cookieless="false"
> timeout="20"/>
>
> Does anyone have any advice?
>
> Thanks.