global.asa

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

为君一笑 提交于 2020-01-02 03:39:17
问题 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

Global.ASA does not work in IIS7.5

时光怂恿深爱的人放手 提交于 2019-12-13 03:21:15
问题 I have many projects written in old classic ASP where Global.asa used to work perfectly fine. Since I have installed Windows 7 with IIS7.5, none of my projects are working. Below is the code for Global.asa <Script language=vbscript runat = server> Sub Application_OnStart() dim objConn, connectionString set objConn = Server.CreateObject("ADODB.Connection") connectionString = "DSN=otsDSN; UID=admin;PWD=;" objConn.ConnectionTimeout = 5 The error comes in this line. Have referred many websites,

Classic ASP global.asa SQL Server 2008 connection string

◇◆丶佛笑我妖孽 提交于 2019-12-13 00:28:10
问题 I have been given a web application written in Classic ASP to port from Windows 2003 Server (SQL Server 2000 and IIS 6) to Windows 2008 Server (SQL Server 2008 and IIS 7.5). The site uses a GLOBAL.ASA file to define global variables, one of which is the connection string ( cnn ) to connect to SQL Server. Below is the (old) connection string from GLOBAL.ASA : Sub Application_OnStart Dim cnnDem, cnnString Set cnnDem = Server.CreateObject("ADODB.Connection") cnnDem.CommandTimeout = 60 cnnDem

Classic ASP Server.MapPath() doesn't work as expected in global.asa

浪尽此生 提交于 2019-12-10 11:23:34
问题 In Classic ASP, Server.MapPath() doesn't always work properly in the Application_OnStart event within global.asa . I have an ASP page at "\testfolder\test.asp" within a virtual root, I have an XSLT file at "\xsl\transform.xsl" . My virtual root is located in "c:\inetpub\wwwroot\testapp\" . I use MapPath within the ASP page to get the full path to the XSLT file. The call is: sXslPath = Server.MapPath("xsl\transform.xsl") Some times MapPath returns "c:\inetpub\wwwroot\testapp\xsl\transform.xsl"

ASP classic: How to schedule a function server-side

天大地大妈咪最大 提交于 2019-12-05 22:58:05
I work just on ASP classic (I know I've to learn something new, but for now...) and that's my problem: In my database I store website's account. After a year the accounts needs to be deactivated. I've create a function that's works fine, but I need a sheduled call (every night at 00.00 am). Is it possibile? Do I need to put the call on global.asa? thanks a lot! Maurizio If you have access to the server, create a vbscript (.vbs) and setup the Task Scheduler... This is what we use for database tidy routines and for nightly backups. You can schedule jobs through free cron services such as https:/

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

有些话、适合烂在心里 提交于 2019-12-05 07:12:11
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. I've seen