对象不支持此属性或方法。 [英] Object does not support this property or method.
问题描述
我在尝试创建ADODB连接对象的
实例的行上收到以下错误消息。
" Object不支持这个属性或方法:''Server.CreateObject''"。
现在奇怪的是,该服务器上的其他网站运行正常。
此外,这个网站托管在三台机器上,用于负载平衡
目的 - 其他网站使用我们拥有的工具保持同步,并且
文件是相同的这三台机器。然而,我们在
只有一台机器上出现了这个错误。
如果所有网站都遇到问题,我会怀疑更新了
MDAC。如果所有三台机器都遇到问题,我会怀疑代码
某种变化。但是我的情况让我无法理解。
如果有任何想法我会非常感谢你的帮助。
TIA ,
Rohan
I get the following error message on a line that attempts to create an
instance of an ADODB connection object.
"Object does not support this property or method: ''Server.CreateObject'' ".
Now the strange thing is that other websites on that server work just fine.
Also, this website is hosted across three machines for load-balancing
purposes - the other websites are kept in sync using a tool that we have and
the files are identical across all three machines. Yet, we get this error on
only one machine.
If all the websites were having trouble I would suspect an update to the
MDAC. If all three machines were facing problems I would suspect a code
change of some sort. But the situation that I have I cannot figure out.
If anyone out there has any ideas I would greatly appreciate the assistance.
TIA,
Rohan
推荐答案
>我在尝试创建ADODB连接对象的
> I get the following error message on a line that attempts to create an
实例的行上收到以下错误消息。
对象不支持此属性或方法:'' Server.CreateObject''"。
instance of an ADODB connection object.
"Object does not support this property or method: ''Server.CreateObject'' ".
你能显示实际的行吗?
-
< a rel =nofollowhref =http://www.aspfaq.com/target =_ blank> http://www.aspfaq.com/
(反向要回复的地址。)
Can you show the actual line?
--
http://www.aspfaq.com/
(Reverse address to reply.)
是。
set con = Server.CreateObject(" ADODB.Connection")
这是失败的行。
谢谢,
Rohan
Aaron [SQL Server MVP]" < TE ***** @ dnartreb.noraa>在消息中写道
news:eP ************** @ TK2MSFTNGP09.phx.gbl ...
Yes.
set con = Server.CreateObject("ADODB.Connection")
This is the line where it fails.
Thanks,
Rohan
"Aaron [SQL Server MVP]" <te*****@dnartreb.noraa> wrote in message
news:eP**************@TK2MSFTNGP09.phx.gbl...
我在试图创建ADODB连接对象的实例的行上收到以下错误消息。
对象不支持此属性或方法:''服务器.CreateObject''
I get the following error message on a line that attempts to create an
instance of an ADODB connection object.
"Object does not support this property or method: ''Server.CreateObject''
"。
你能显示实际的行吗?
http://www.aspfaq.com/
(反向回复地址。)
".
Can you show the actual line?
--
http://www.aspfaq.com/
(Reverse address to reply.)
我们需要查看更多代码。 (请不要使用HTML)
它有用过吗?
Rohan Hattangdi写道:
We need to see more code. (no html please)
Has it ever worked?
Rohan Hattangdi wrote:
是。
设置con = Server.CreateObject(" ADODB.Connection")
这是失败的行。
谢谢,
Rohan
" Aaron [SQL Server MVP]" < TE ***** @ dnartreb.noraa>在消息中写道
新闻:eP ************** @ TK2MSFTNGP09.phx.gbl ...
Yes.
set con = Server.CreateObject("ADODB.Connection")
This is the line where it fails.
Thanks,
Rohan
"Aaron [SQL Server MVP]" <te*****@dnartreb.noraa> wrote in message
news:eP**************@TK2MSFTNGP09.phx.gbl...
I在尝试创建ADODB连接对象实例的行上获取以下错误消息。
对象不支持此属性或方法:
''服务器.CreateObject''"。
I get the following error message on a line that attempts to create
an instance of an ADODB connection object.
"Object does not support this property or method:
''Server.CreateObject'' ".
你能显示实际的行吗?
http://www.aspfaq.com/
(反向回复地址。)
Can you show the actual line?
--
http://www.aspfaq.com/
(Reverse address to reply.)
-
Microsoft MVP - ASP / ASP.NET
请回复新闻组。我的From
标题中列出的电子邮件帐户是我的垃圾邮件陷阱,因此我不经常检查它。通过发布到新闻组,您将获得更快的回复。
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don''t check it very often. You will get a
quicker response by posting to the newsgroup.
这篇关于对象不支持此属性或方法。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!