Session on Sqlserver

Hi,

using: sessionState mode="inProc" all works fine
but I have to use: <sessionState mode="SQLServer" stateConnectionString="tcpip=127.0.0.1:42424" allowCustomSqlDatabase="true" sqlConnectionString="data source=;Database=;user id=;password=" cookieless="false" timeout="30"/>
Using this I get:
"Der Sitzungszustand kann nicht serialisiert werden. "
"Sessionstate not serialisable"
In your Docs I find:

Server Requirements <?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Go requires the use of session state to be able to produce images representing the view when referenced by HTML IMG tags. The GoView, its GoDocument and its GoObjects are all serialized as part of the session state.

What am I doing wrong?

The error implies one of your objects isn’t serializable. Our built-in nodes are, but with extensible nodes, it is pretty easy to introduce your own problems. You can use GoDocument:TestSerialization() to check. (See the API reference)



A second thing to try is just take one of our samples and make your session changes to it to see if you can get that working.

Jake, <?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

sorry, but I tried this with your sample: “DataSetDemo” and it does not work.

With my application I use your sample PersonNode and get the error

class PersonNode has no Attribute

Any ideas?

Thank you very much

Christian

I think, it’s the userobject, containing a datarow

I will have to make my own person class

I got an other answer from support:

Actually, it looks like DataSetDemo is a bad one to pick.

<?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

http://www.nwoods.com/forum/forum_posts.asp?TID=1716&KW=sessionState