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

aqbeyond 2009-05-01 09:44:47
各位好,现在将以前的系统的SESSION改为保存到SQL数据库中,很多地方都改了,但是就是画面访问的时候,出现一个WindowsIdentity的异常问题.
异常的基本意思是:System.NotSupportedException: WindowsIdentity Object在访问的时候,不能进行串行化(Serial)处理.
而在这个系统中就没有用到WindowsIdentity类,本人对WindowsIdentity类的使用也不甚了解,因为时间紧,而且也找了很多资料没有结果,特此请教各位,谢谢先!
...全文
37 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
aqbeyond 2009-05-08
  • 打赏
  • 举报
回复
自己顶一下,请教了.
路过请帮顶啊,顶者也有分!
aqbeyond 2009-05-07
  • 打赏
  • 举报
回复
没人回答,自己顶一下.
路过的也请帮顶好吧,急啊!!!
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)

62,046

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

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