iis7,经典asp;类型不匹配错误 [英] iis7, classic asp; type mismatch error
问题描述
我已经在Windows 7和IIS 7上安装了本地服务器,用于我正在使用的经典ASP VBS网站.
I've setup a local server on Windows 7 with IIS 7, for a classic ASP VBS site I'm working on.
页面显示类型不匹配"错误.原始服务器(Windows 2008,IIS 7)不会发生这种情况
A page gives me a "type mismatch" error. This doesn't happen with the original server (Windows 2008, IIS 7)
相关代码:
if myRS("age") = 10 then
- 该字段值是一个空字符串,已通过调试器检查,并且错误状态为'string'
- ASP文件,数据库和数据是生产站点的精确副本
- 在公共站点和本地站点中都不会恢复错误.
- 生产服务器是MS-SQL 2008 R2 Web版,本地服务器是Express Edition.
- The field value is an empty string, checked with a debugger, also the error states 'string'
- The ASP file, database & the data are exact copies of the production site
- No error resuming in both the public and the local sites.
- The production server is MS-SQL 2008 R2 web edition, where the local one is Express Edition.
现在,我知道代码编写得很糟糕.但是本地服务器如何发出这样的错误而公共服务器却没有呢?我认为比较是通过变体类型进行的,因此应该自动评估子类型而不会出错?
Now I know the code is terribly written. But how can the local server gives such an error and the public server does not? I think comparisons are made through variant type, so subtypes should be automatically evaluated with no errors?
推荐答案
最有可能是由"..intrinsic properties .."问题引起的.我的猜测是您的生产服务器已经被修复"以允许它使用,而您的本地服务器设置从未经历过"..fix .."这个需求.
It's most likely caused by an "..intrinsic properties.." issue. My guess is that your production server had already been "fixed" to allow it, and your local server set up has never before experienced the need to "..fix.." this.
您可以在此处阅读更多信息:
You can read more here:
您已经使用CreateObject
创建了记录集/ado对象,并且受到这种担忧的影响,该担忧导致Microsoft在开箱即用的配置中将其默认禁用.
You've used CreateObject
to create your recordset/ado objects, and that's affected by this concern which caused Microsoft to disable them as default, out of the box configurations.
在这里阅读更多内容:
http://support.microsoft.com/default. aspx?scid = kb; EN-US; 287422
尽管..如果您只是想让它工作,那么您可以阅读第一个链接.
Although.. if you simply want it to work, then you can read the first link.
这篇关于iis7,经典asp;类型不匹配错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!