serializing session state in asp.net

后端 未结 2 646
-上瘾入骨i
-上瘾入骨i 2021-01-13 16:28

I\'m trying to store session state in SQL instead of InProc in our nopcommerce 1.9 install. When I make the requisite changes to the web.config I get this error:

2条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-13 17:07

    Adding the [Serializable] attribute ( in VB) automatically makes your class serializable. All the members in your class need to be serializable too. So suppose there are object references in your class. Then the classes which those objects belong to need to have the [Serializable] attribute too. Basic types are automatically serializable.

提交回复
热议问题