Solved

Server.CreateObject Failed

Posted on 2004-09-28
12
810 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
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

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…
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…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

757 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

23 Experts available now in Live!

Get 1:1 Help Now