问一个WindowsIdentity的异常问题,求救!!!

aqbeyond 2009-05-01 09:51:36
各位好,现在将以前的系统的SESSION改为保存到SQL数据库中,很多地方都改了,但是就是画面访问的时候,出现一个WindowsIdentity的异常问题.
异常的基本意思是:System.NotSupportedException: WindowsIdentity Object在访问的时候,不能进行串行化(Serial)处理.
而在这个系统中就没有用到WindowsIdentity类,本人对WindowsIdentity类的使用也不甚了解,因为时间紧,而且也找了很多资料没有结果,特此请教各位,谢谢先!
...全文
52 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
aqbeyond 2009-05-08
  • 打赏
  • 举报
回复
自己顶一下,请教了.
路过请帮顶啊,顶者也有分!
aqbeyond 2009-05-07
  • 打赏
  • 举报
回复
没人回答,自己顶一下.
路过的也请帮顶好吧,急啊!!!
you_tube 2009-05-01
  • 打赏
  • 举报
回复
帮顶
aqbeyond 2009-05-01
  • 打赏
  • 举报
回复
画面就抛这样的异常提示信息,这个异常时不时时候产生,搞不清楚,也没DEBUG出哪些代码出错,茫然中...
[NotSupportedException: WindowsIdentity オブジェクトをプロセス間でシリアル化することはできません。]
System.Security.Principal.WindowsIdentity..ctor(SerializationInfo info, StreamingContext context) +487

[TargetInvocationException: 呼び出しのターゲットが例外をスローしました。]
System.Reflection.RuntimeConstructorInfo.SerializationInvoke(Object target, SerializationInfo info, StreamingContext context) +0
System.Runtime.Serialization.ObjectManager.CompleteISerializableObject(Object obj, SerializationInfo info, StreamingContext context) +149
System.Runtime.Serialization.ObjectManager.FixupSpecialObject(ObjectHolder holder) +163
System.Runtime.Serialization.ObjectManager.DoFixups() +170
System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, IMethodCallMessage methodCallMessage) +272
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, IMethodCallMessage methodCallMessage) +183
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream) +11
System.Web.Util.AltSerialization.ReadValueFromStream(BinaryReader reader)
System.Web.SessionState.SessionDictionary.Deserialize(BinaryReader reader)
System.Web.SessionState.StateClientManager.Deserialize(Stream stream, Int32 lockCookie)
System.Web.SessionState.SqlStateClientManager.DoGet(String id, SqlCommand cmd)
System.Web.SessionState.SqlStateClientManager.GetExclusive(String id)
System.Web.SessionState.StateClientManager.BeginGetExclusiveSync(String id, AsyncCallback cb, Object state)
System.Web.SessionState.SqlStateClientManager.System.Web.SessionState.IStateClientManager.BeginGetExclusive(String id, AsyncCallback cb, Object state)
System.Web.SessionState.SessionStateModule.GetSessionStateItem()
System.Web.SessionState.SessionStateModule.BeginAcquireState(Object source, EventArgs e, AsyncCallback cb, Object extraData)
System.Web.AsyncEventExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute()
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

22,209

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server 疑难问题
社区管理员
  • 疑难问题社区
  • 尘觉
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧