473,395 Members | 1,458 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Object does not support this property or method.

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
Jul 19 '05 #1
10 4059
> 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' ".


Can you show the actual line?

--
http://www.aspfaq.com/
(Reverse address to reply.)
Jul 19 '05 #2
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 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'
".
Can you show the actual line?

--
http://www.aspfaq.com/
(Reverse address to reply.)

Jul 19 '05 #3
We need to see more code. (no html please)

Has it ever worked?

Rohan Hattangdi wrote:
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 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' ".


Can you show the actual line?

--
http://www.aspfaq.com/
(Reverse address to reply.)


--
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.
Jul 19 '05 #4
Did you try without the Server prefix?

Did you try reinstalling MDAC (not necessarily an upgrade, but more of a
repair)?

--
http://www.aspfaq.com/
(Reverse address to reply.)


"Rohan Hattangdi" <Ro****************@hotmail.com> wrote in message
news:u6**************@TK2MSFTNGP10.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 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' ".

Can you show the actual line?

--
http://www.aspfaq.com/
(Reverse address to reply.)


Jul 19 '05 #5
Sure. Code is below. This code had been working for quite some time and then
it stopped for a bit. It seems however that the problem is always solved
during our nightly IIS resets. Naturally this is not a good way of fixing
things ... BTW, some names have been changed below ...

dim con

dim DSN

dim cmd

dim objCMD

dim POutCon

dim JSCon

sub PunchoutConnection(rs,sql)

set POutCon = Server.CreateObject("ADODB.Connection")

POutCon.Open "File Name=C:\aigi\yyyyy.udl;"

set rs = POutCon.Execute(sql)

end sub

sub Job_Scheduler(rs,sql)

set JSCon = Server.CreateObject("ADODB.Connection")

JSCon.Open "File Name=C:\aigi\Job_Scheduler.udl;"

set rs = JSCon.Execute(sql)

end sub

set con = Server.CreateObject("ADODB.Connection")

'DSN = "DSN=udlAAAAAmsp;uid=xxxxxx;pwd=xxxxxx;"

con.ConnectionTimeout=500

'con.Open DSN

'con.Open "File Name=C:\aigi\udlAAAAAmsp.udl;"

con.Open "File Name=C:\aigi\aaaaaa.udl;"

"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcom> wrote in message
news:OD**************@TK2MSFTNGP11.phx.gbl...
We need to see more code. (no html please)

Has it ever worked?

Rohan Hattangdi wrote:
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 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' ".

Can you show the actual line?

--
http://www.aspfaq.com/
(Reverse address to reply.)


--
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.

Jul 19 '05 #6
Have not tried without Server prefix ...

The MDAC thing - would that not affect every website on that box?

Thanks,

Rohan

"Aaron [SQL Server MVP]" <te*****@dnartreb.noraa> wrote in message
news:O9*************@TK2MSFTNGP09.phx.gbl...
Did you try without the Server prefix?

Did you try reinstalling MDAC (not necessarily an upgrade, but more of a
repair)?

--
http://www.aspfaq.com/
(Reverse address to reply.)


"Rohan Hattangdi" <Ro****************@hotmail.com> wrote in message
news:u6**************@TK2MSFTNGP10.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 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'
".

Can you show the actual line?

--
http://www.aspfaq.com/
(Reverse address to reply.)



Jul 19 '05 #7
> The MDAC thing - would that not affect every website on that box?

If you reinstall the same version?
Jul 19 '05 #8
No, I mean ... would not an error with the MDAC affect every single website
on that box?

"Aaron [SQL Server MVP]" <te*****@dnartreb.noraa> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
The MDAC thing - would that not affect every website on that box?


If you reinstall the same version?

Jul 19 '05 #9
Maybe, are you saying that this error only happens on one web site, but not
on the others? Have you considered deleting the web site from IIS, and
re-creating it?

--
http://www.aspfaq.com/
(Reverse address to reply.)


"Rohan Hattangdi" <Ro****************@hotmail.com> wrote in message
news:OP**************@TK2MSFTNGP11.phx.gbl...
No, I mean ... would not an error with the MDAC affect every single website on that box?

"Aaron [SQL Server MVP]" <te*****@dnartreb.noraa> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
The MDAC thing - would that not affect every website on that box?


If you reinstall the same version?


Jul 19 '05 #10
Before doing anything drastic, check to make sure that you don't have a
variable named "server" in your code somewhere. That could cause you to see
the error you're seeing. IE,

Dim server, z
set server = createobject("scripting.filesystemobject")
set z = server.createobject("adodb.connection")
set z= nothing
set server = nothing

Ray at home

"Rohan Hattangdi" <Ro****************@hotmail.com> wrote in message
news:e0**************@TK2MSFTNGP10.phx.gbl...
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

Jul 19 '05 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

18
by: Steven Bethard | last post by:
In the "empty classes as c structs?" thread, we've been talking in some detail about my proposed "generic objects" PEP. Based on a number of suggestions, I'm thinking more and more that instead of...
54
by: tshad | last post by:
I have a function: function SalaryDisplay(me) { var salaryMinLabel = document.getElementById("SalaryMin"); salaryMinLabel.value = 200; alert("after setting salaryMinLabel = " +...
6
by: Luke | last post by:
Here is my emails to Danny Goodman (but probably he is very busy so he didn't answered it). First email(simple): Subject: JavaScript Arrays " We all know the array can act like HashMap, but is...
12
by: Jim Hammond | last post by:
I am passing the whole object instead or parameters in my select and update methods. I can get the updated object if I set UpdateMethod, let ASP.NET autogenerate an update button, and then press...
7
by: Martin Robins | last post by:
I am currently looking to be able to read information from Active Directory into a data warehouse using a C# solution. I have been able to access the active directory, and I have been able to return...
0
by: fniles | last post by:
I created a CAB file for a 3rd party control (StockChartX) it using CABARC.exe that comes from Microsoft SDK. In the CAB file I included the StockChartX.ocx and StockChartX.INF. Then, I signed the...
7
by: stellstarin | last post by:
hi all, I have a HTML page with two forms. While trying to add a hidden element in a first form by the default javascript function, the error message 'object does not support this property or...
5
by: John Olbert | last post by:
Subject: Error is Object doesn't support this property or method I am trying to pass a C# string under Vs2005 (Net2) to an Vb6 ActiveX Control. I get the following runtime error-- "Object...
8
by: Kevin Blount | last post by:
I'm tyring to access an object created by using a method from a third party API. The documentation tells me what object should be return, and the properties of that object, but when I try and...
0
ADezii
by: ADezii | last post by:
When you create an ADO Recordset, you should have some idea as to what functionality the Recordset does/does not provide. Some critical questions may, and should, be: Can I add New Records to the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.