Solved

Server.CreateObject Failed

Posted on 2004-09-28
12
812 Views
Last Modified: 2008-02-01
Hi,

Earthlink is hosting our company website, and we use a small access db to track the user, nothing fancy...
The site was working fine yesterday, but I got this err this morning,

006~ASP 0177~Server.CreateObject Failed~8007045a

I did some research on the web, all pointed to the server, but Earthlink keeps sayng that is a coding issue.......any ideas?  Thx
0
Comment
Question by:mcrmg
12 Comments
 
LVL 2

Expert Comment

by:MGrassman
ID: 12170113
can you list some code.
0
 

Author Comment

by:mcrmg
ID: 12170170
dim oConn
dim filePath
on error resume next
Set oConn = Server.CreateObject("ADODB.Connection")   ..........ERROR LINE

      if(err.number<>0)then
            Response.Write err.Description
            Response.End
      end if
'oConn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & filePath



      on error resume next
      oConn.Open "myDB.Mydsn"


      
      if(err.number<>0)then
            Response.Write err.Description
            Response.End
      end if

If not oConn.state then
  response.write("Connection failed")
  response.end
else
  'response.write("OK")      
End If
0
 
LVL 49

Expert Comment

by:Ryan Chong
ID: 12170463
0
 
LVL 49

Accepted Solution

by:
Ryan Chong earned 100 total points
ID: 12170511
0
 

Author Comment

by:mcrmg
ID: 12170765
I have no idea because it was working fine yesterday and they keep saying that it is on the coding side............     :(
0
 

Author Comment

by:mcrmg
ID: 12170773
Can we conclude that it is something wrong on the server?  Thx
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 49

Expert Comment

by:Ryan Chong
ID: 12171078
Did you do any changes on your server setting?

if the error is on the line:

Set oConn = Server.CreateObject("ADODB.Connection")

means the server failed to create ADODB object, this is very unusual, then i would suggest you backup your files, and then re-install MDAC. Hope it helps
0
 

Author Comment

by:mcrmg
ID: 12171159
So, it is something on the server not the coding side?
0
 
LVL 10

Assisted Solution

by:Clif
Clif earned 50 total points
ID: 12171262
I would bet the change in my right pocket that the EarthLink changed servers on you and the new server does not have MDAC installed.

An ISP changing servers is not all that uncommon.  Servers go down and, rather than try and fix it on the spot, the ISP will simply move the files to a new server, reset the IP addresses and take the down server off line for repairs.

What's uncommon (but does happen) is that the new server may not be configured the same as the old.
0
 
LVL 49

Expert Comment

by:Ryan Chong
ID: 12171390
>>So, it is something on the server not the coding side?
Not 100% sure, to prove this point is correct, you need to duplicate a server setting on another machine, then try to deploy your scripts to that new machine, run it and we'll know is it script or server problem ;-)
0
 
LVL 12

Assisted Solution

by:peterxlane
peterxlane earned 50 total points
ID: 12173079
Run this code to determine if MDAC is installed:

<%
Dim oConn
Set oConn = Server.CreateObject("ADODB.Connection")
%>


<table border="1" cellpadding="0" cellspacing="3" bordercolor="silver" align="center">
      <tr>
            <th colspan="2" align="center">Server Info:</th>
      </tr>
      <tr>
            <td>Server Software</td>
            <td><%=Request.ServerVariables("SERVER_SOFTWARE")%></td>
      </tr>
      <tr>
            <td>Microsoft Data Access Components: </td>
            <td><%=oConn.Version%></td>
      </tr>
      <tr>
            <td>Scripting Version:</td>
            <td><%=ScriptEngineMajorVersion & "." & ScriptEngineMinorVersion%></td>
      </tr>
</table>

<%
Set oConn = Nothing
%>
0
 

Author Comment

by:mcrmg
ID: 12174225
That turned out that Earthlink did do something on the server (of course, they would not admin that)...because all of the sudden, the site is working again.........Thanks for the help...
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

896 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now