Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I've recently been given a website written in classic asp to configure and set up - although it also appears to have pages written in asp.net.

The problem I'm having at the moment is that it doesn;t appear to be picking up settings from the global.asa file such as Application("ConnectionString")....

As when I try to write them out from somewhere in the code - nothing appears.

Any idea how to congure this website to use global.asa...or why it's not already using it?

There is web.config file and global.asax...shouldn't this just be for .net?

The code will not compile in visual studio.

like image 344
thegunner Avatar asked Sep 15 '09 15:09

thegunner


2 Answers

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.

like image 105
Luke Avatar answered Oct 21 '22 14:10

Luke


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.

like image 33
feihtthief Avatar answered Oct 21 '22 15:10

feihtthief