Solved

Server.CreateObject Failed

Posted on 2004-09-28
12
817 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
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
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

ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ASP Syntax for IF statement 21 59
Hide row when retrieving data from database 6 61
Select2 jquery help 9 89
Call a function within the ASP code 4 12
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 demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

809 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