Solved

Server.CreateObject Failed

Posted on 2004-09-28
12
821 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 50

Expert Comment

by:Ryan Chong
ID: 12170463
0
Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 50

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
 
LVL 50

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 50

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
HTML in email body has extra  tick marks 3 87
Auto Submit on dropdown box 3 79
IP API - need data... 4 27
Asp in server side with Mssql Server 7 4 27
Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
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…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

808 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