ASP.NET 2.0 Global asax的问题

编程入门 行业动态 更新时间:2024-10-27 16:31:56
本文介绍了ASP.NET 2.0 Global asax的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

由于一些奇怪的原因,我注意到每次刷新页面时我的浏览器(同一个会话)中的 ASP.NET称为:void Application_Start(对象发送者) ,EventArgs e) 由于我的代码中的任何内容都没有重置 应用程序,我绝对感到困惑。 会话变量似乎没有问题。 其他人是否有这种问题? 也许我在这里遗漏了一些信息。任何人都可以抛出一些想法 ? 最好的问候, Alexandre Brisebois

For some odd reason I have notices that every time I refreshed a page in my browser ( same session ) ASP.NET called : void Application_Start(object sender, EventArgs e) I am absolutly confused since nothing in my code resets the application. the session variables seem to be untoutched. does any one else have this kind of problem? maybe im missing some information here. Can anyone throw out some ideas ? Best Regards, Alexandre Brisebois

推荐答案

这在Global.asax中? 奇怪,每次重新编译或重新启动时都会触发此事件> 服务器。 您在IIS或machine.config中有任何特殊设置吗? This in the Global.asax? Strange, this event is trigger every time you recompile , or reestart the server. Do you have any special setting on your IIS or in the machine.config?

我不认为我有任何特殊设置,几周前我有我的主机安装 asp 2.0并且遇到了一些问题,我没有 知道他们是否正确安装了所有东西,我也面临着 文件权限问题,但如果我将会话设置为超时,则不会发生这种情况。 20分钟 即使我不编译.. 虽然我必须提到这不是树中的根应用程序,但是 它是应用程序池中唯一的应用程序。 我绝对没有想法.. I dont think I have any special settings, I had my hosting install asp 2.0 a few weeks ago and have runinto a few problems, I do not know if they installed everything properly or so, I also was faced with file permission problems, but no this is happenning even if I set session to timeout at 20 mins and even when I dont compile.. though I must mention this is not the root application in the tree, but it is the only application in its application pool. im absolutly out of ideas ..

P.S。 Web应用程序未发布它只在 远程服务器上编译。 P.S. the web application is not published it is only compiled on the remote server.

更多推荐

ASP.NET 2.0 Global asax的问题

本文发布于:2023-11-04 10:06:29,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1557636.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:NET   ASP   asax   Global

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!