Global.asax无法正常工作 [英] Global.asax not working
本文介绍了Global.asax无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在ASP.net中使用
I in ASP.net we use
Application["first"]="123";
像这样,但是在WCF中,即使添加了Global.asax
,我也无法使用它
请进一步指导我
问候
Nakul Kundra
like this but in WCF i am not able to use it, even after adding the Global.asax
Please Guide me further
Regards
Nakul Kundra
推荐答案
在使用Global.asax文件之前,请确保已设置ASP.Net兼容模式和其他ASP.Net兼容性设置. WCF.有关更多详细信息,请参见此处 [
Make sure the ASP.Net compatibility mode and other ASP.Net compatibility settings are set before using Global.asax file in WCF. For more details, see here[^].
您不是这个意思吗?
Don''t you mean this?
Session["first"] = "123";
确保已从IIS正确设置了Web应用程序设置
make sure the web application settings that were set up correctly from IIS
这篇关于Global.asax无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文