Why are the Global.asax events not firing in my ASP .NET website?

前端 未结 11 1938
执笔经年
执笔经年 2020-12-11 15:24

I\'ve been developing an ASP .NET 3.5 web application against Cassini, the built-in web development server, rather than against IIS.

In my Global.asax file, in the A

11条回答
  •  轮回少年
    2020-12-11 16:01

    We tried a lot of things.

    1. global.asax works on local computer but not after i publish to server
    2. Global.asax is not publishing and event are not firing in Global.asax
    3. Global.asax not firing for Release build
    4. Mystery of Global.asax in ASP.NET MVC application

    We also tried putting the below files in root and bin directories.

    1. App_global.asax.dll and App_global.asax.compiled files
    2. PrecompiledApp.config

    None of it worked!

    We had to put raw Global.asax instead of pre-compiled dll, in order to fire the global events, for our asp .net 2.0 website.

    Hope this helps someone! Cheers! Happy coding! :D

提交回复
热议问题