classic asp/asp.net website - global.asa not working

有些话、适合烂在心里 提交于 2019-12-05 07:12:11

I've seen this problem when the application directory is not set up in IIS with an application name. You can change that from the IIS manager.

long the lines of what Luke pointed out already:

Check that you are placing the global.asa file in the root of the web Site/Virtual Directory that your application is running from.

All excellent advice so far. Otherwise, it's difficult to mix-and-match classic asp and .Net.

There's some good baseline info at http://www.w3schools.com/ASP/asp_globalasa.asp.

What type of file are you trying to read the values from global.asa in? An ASP page or ASPNET page?

As Jim W said, the values in global.asa will not be available in aspx pages, and vice-versa.

Also, keep in mind the subroutines in global.asa will not fire until an ASP page is requested and global.aspx routines will not fire until an ASPNET page is requested.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!