Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Server.CreateObject Failed

Posted on 2004-09-28
12
Medium Priority
?
833 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 53

Expert Comment

by:Ryan Chong
ID: 12170463
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 53

Accepted Solution

by:
Ryan Chong earned 400 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 53

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 200 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 53

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 200 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

604 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