在iis7中返回null会话 [英] return null session in iis7
本文介绍了在iis7中返回null会话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
hii亲爱的
i必须编程由asp.net4编写并上传到iis7。
当我从system1向system2发送会话以计算某些东西时,会议是空的。
为什么?
谢谢
错误:
对象引用未设置为对象的实例。
第56行:string mer = Session [MerchanId]。ToString();
hii dear's
i have to program that wrote by asp.net4 and uploaded in iis7.
when i send session from system1 to the system2 for calculate some thing,the sessions is empty.
why??
thanks
error:
Object reference not set to an instance of an object.
Line 56: string mer =Session["MerchanId"].ToString();
推荐答案
系统1和系统2是否在同一个应用程序域中?
为什么不能你把它作为POST变量发送?
查看此链接
http://stackoverflow.com/questions/2868316/sharing-sessions-across- application-using-the-asp-net-session-state-service [ ^ ]
Is the system 1 and System 2 is in same application domain ?
why cant you send it as POST variables ?
check this link
http://stackoverflow.com/questions/2868316/sharing-sessions-across-applications-using-the-asp-net-session-state-service[^]
这篇关于在iis7中返回null会话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文