我对会话有问题,因为我描述了here 我创建了ASPState并配置了我的webconfig 但它给出了这个错误
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.
[SerializationException: Type 'System.ServiceModel.ClientBase1[[Tourism.Plugin.BiletBank.BiletBankSRV.I_Shopping, Tourism.Plugin.BiletBank, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' in Assembly 'System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' is not marked as serializable.]
异常在类System.ServiceModel.ClientBase`1 [[Tourism.Plugin.BiletBank.BiletBankSRV.I_Shopping但是给出但是 我使用了serializable属性
[System.Serializable()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
public partial class I_ShoppingClient : System.ServiceModel.ClientBase<Tourism.Plugin.BiletBank.BiletBankSRV.I_Shopping>, Tourism.Plugin.BiletBank.BiletBankSRV.I_Shopping {....
编辑说明: 我怎么编辑 .net框架代码... [SerializationException:Type&#39; System.ServiceModel.ClientBase`1 [[,Version = 1.0.0.0,Culture = neutral,PublicKeyToken = null]]&#39;在Assembly&System; ServiceModel,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = b77a5c561934e089&#39;未标记为可序列化。]