在Global.asax中的事件不触发 [英] Events in Global.asax are not firing

查看:336
本文介绍了在Global.asax中的事件不触发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的ASP.Net应用程序,我不能在Global.asax中的事件解雇我的机器上。例如,在session_start不会触发。

In my ASP.Net application, I can't get the events in Global.asax to fire on my machine. For instance, Session_Start will not fire.

同样的Global.asax适用于其他发展精机在我的办公室。

The same Global.asax works fine on other development machines in my office.

我曾尝试:


  • 无论是ASP.Net开发服务器
    我的本地IIS

  • Both the ASP.Net Development Server and my local IIS

重新启动机器

删除并重新创建从文件
该项目(包括删除其结果
从磁盘)

Removing and recreating the file from the project (including deleting it
from disk)

所有的机器都配置了与
同级别的软件(VS2008结果
SP1,NET 3.5的,XP)

All machines are configured the with the same level of software (VS2008
SP1, .Net 3.5, XP)

这是推动我疯了,任何帮助在那里?

This is driving me crazy, any help out there?

编辑:由于应用程序的工作在其他机器上,我不认为这是直接关系到Global.asax中的内容。出于某种原因,我的机器不处理这些文件。我已经做了VS 2008和.NET 2.0的修复。任何其他的想法?

Since the application works on other machines, I don't think it is directly related to the contents of Global.asax. For some reason, my machine does not process the files. I have done a repair of VS 2008 and .Net 2.0. Any other ideas?

编辑:在所有三台机器上运行的应用正在从源头控制直接拉动。这绝对是具体到一台机器的东西。

The application running on all three machines is being pulled directly from source control. It is definitely something specific to the one machine.

谢谢,

帕特

推荐答案

应用程序级别的事件只需要适当的命名工作。是您的codebehind类在Global.asax文件被指定?

Application level events only need proper naming to work. Is your codebehind class being designated in your Global.asax file?

<%@ Application Inherits="YourNamespace.YourApplicationClass" Language="C#" %>

这篇关于在Global.asax中的事件不触发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆