简体   繁体   English

经典ASP“ ExecuteGlobal”语句在两台服务器上的行为不同

[英]Classic ASP “ExecuteGlobal” statement acting differently on two servers

I have a strange problem that I don't really know how to handle. 我有一个奇怪的问题,我真的不知道该如何处理。

In addition to developing a new ASP.NET site, I have to support the old "Classic ASP" site. 除了开发新的ASP.NET网站外,我还必须支持旧的“经典ASP”网站。 It's written in VBScript with a batch of Javascript functions as well. 它也是用VBScript编写的,并带有一批Javascript函数。 Many of the Javascript functions are in 'include files'. 许多Javascript函数位于“包含文件”中。 Debugging these hasn't been a problem once I learned how to get VS2005 to attach to an IE process. 一旦我学会了如何使VS2005附加到IE进程,调试这些问题就不是问题。

Everything runs fine on our production system (who's security is controlled by another group - this is a military installation). 在我们的生产系统上,一切运行正常(谁的安全性由另一个小组控制-这是军事设施)。 However, I have a fix for an obscure bug that needs to be fully tested and some functions don't run under the "local" copy of the website I have running on my PC. 但是,我有一个需要完全测试的模糊错误的修复程序,并且某些功能不在我在PC上运行的网站的“本地”副本下运行。

For the record, I'm running IIS 5.1 on XP. 作为记录,我在XP上运行IIS 5.1。

The problem is that SOME Javascript functions are running "OK" on the production server but they don't appear to be defined on my PC when used as a server. 问题是,某些Javascript函数在生产服务器上正在“正常”运行,但是当用作服务器时,它们似乎未在我的PC上定义。 What's happening is that the previous programmer, for some reason, decided to put some functions in a series of file that, according to the comments, simulate the "require_once" function in PHP. 发生的事情是,由于某种原因,以前的程序员决定将一些函数放在一系列文件中,这些文件根据注释模拟PHP中的“ require_once”函数。 These ASP files with Javascript functions are apparently read like a file into a variable, at which point the script then loads these functions into memory with "ExecuteGlobal thiscode" (where 'thiscode' is the variable he read the code into). 这些带有Javascript函数的ASP文件显然像一个文件一样读入一个变量,这时脚本然后使用“ ExecuteGlobal thiscode”(其中“ thiscode”是他将代码读入的变量)将这些函数加载到内存中。

As near as I can tell, these functions aren't sticking around when the site is run on my PC's IIS server. 据我所知,当站点在我的PC的IIS服务器上运行时,这些功能并没有保留。 The do stick around on the production server. 坚持围绕在生产服务器上。 The current asministrators of the production server don't know much about the setup of this 'legacy' application. 生产服务器的当前管理员对此“旧版”应用程序的设置了解不多。

Does anyone out there know at least what direction I should be looking? 外面有人至少知道我应该朝哪个方向走吗? I have no idea if I'm missing a setting or something in the server's configuration... I do know that the "require_once" script is finding the files just fine, reading them in and the "ExecuteGlobal" statement runs without error. 我不知道我是否缺少设置或服务器配置中的某些内容...我确实知道“ require_once”脚本正在查找文件,然后将它们读入,并且“ ExecuteGlobal”语句运行没有错误。 I just can't figure out why a button that goes to a Javascript function for it's "OnClick" response works in production and fails on my PC when everything else works fine (sql access, security, etc) 我只是想不通为什么转到Javascript函数的“ OnClick”响应按钮在生产中可以正常工作,而在其他一切都正常(SQL访问,安全性等)时,在我的PC上失败

The development/test box(es) is/are IIS 5.1 on XP Pro. 开发/测试盒是XP Pro上的IIS 5.1。 The live box is IIS 6.0 on Windows Server 2003. The new development box is IIS 7 on Vista Business. 实时框是Windows Server 2003上的IIS 6.0。新的开发框是Vista Business上的IIS 7。

Our group doesn't have the money to buy a new server and pay for space in the building where all the servers go so turning a spare box into a Server 2003/IIS 6 box isn't an answer (thought it would be if I were in charge). 我们小组没有钱购买新服务器并支付建筑物中所有服务器所处的空间,因此将备用盒变成Server 2003 / IIS 6盒并不能解决问题(我想负责)。

If I could even tell the support personell who are responsible for the live server where to look for some setting that might be different on 5.1 (which I could look up and compare with what they have)... I just have run out of ideas here. 如果我什至可以告诉负责实时服务器的支持人员在哪里寻找一些在5.1上可能有所不同的设置(我可以查询这些设置并与他们的设置进行比较)...这里。

不能完全确定从哪里开始,但这将有助于确保您的生产和测试环境正在运行相同版本的脚本引擎。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM