473,241 Members | 1,611 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,241 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 4056
> 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: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

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.