Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsOtherProgramming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old April 3rd, 2005, 05:23 PM
leeann leeann is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Posts: 2 leeann User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 34 m 13 sec
Reputation Power: 0
Site Crashed - Need Help w/Error 800a01fb

Hello,
I have a site that was developed for me and the developer is no longer around. It's been working just fine but then all of a sudden I received an error out of nowhere and the site has crashed. I have probably done more damage trying to see if I could fix it because I don't even know if it is on my end or the hosts' server. I am totally lacking in knowledge (does it show yet?) although I have been studying this stuff for years but nothing sticks! Noone from the hosting service is around this weekend to help.
The site uses an access database which is uploaded a lot. The error code I am getting is --



Microsoft VBScript runtime error '800a01fb'
An exception occurred: 'server.CreateObject'
/conn.asp, line 3



The /con asp looks like this --

<%
password="xxx"
set con=server.CreateObject("ADODB.Connection")
con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & server.MapPath("..") & "\xxxx.mdb;Persist Security Info=False;Jet OLEDBatabase Password=" & password
%>

(xxx = correct password and xxxx = correct databse name)



Is the problem with coding or the server?

Can anyone explain to me what causes this?Thanks in advance for any help - leeann
(uhm.. i dont know where the green smiley came from in the word database)
Comments on this post
matthuxtable disagrees!

Reply With Quote
  #2  
Old April 3rd, 2005, 08:41 PM
Lafinboy's Avatar
Lafinboy Lafinboy is offline
The Laughing Moderator
ASP Free Loyal (3000 - 3499 posts)
 
Join Date: Apr 2004
Location: Sydney, Australia
Posts: 3,267 Lafinboy User rank is Sergeant (500 - 2000 Reputation Level)Lafinboy User rank is Sergeant (500 - 2000 Reputation Level)Lafinboy User rank is Sergeant (500 - 2000 Reputation Level)Lafinboy User rank is Sergeant (500 - 2000 Reputation Level)Lafinboy User rank is Sergeant (500 - 2000 Reputation Level)  Folding Points: 29199 Folding Title: Starter FolderFolding Points: 29199 Folding Title: Starter Folder
Time spent in forums: 2 Weeks 1 Day 10 h 48 m 12 sec
Reputation Power: 15
Send a message via ICQ to Lafinboy Send a message via AIM to Lafinboy Send a message via MSN to Lafinboy Send a message via Yahoo to Lafinboy Send a message via Skype to Lafinboy
It could be any number of reasons, though the first thing to check is whether the host has made any recent changes/upgrades/moves that would have affected your account.
The next, and most likely reason, is that you have exceeded the number of consecutive connections to the database. Check that your code has a line to close and empty the connection object each time it is finished with.

Reply With Quote
  #3  
Old April 4th, 2005, 03:30 AM
leeann leeann is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Posts: 2 leeann User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 34 m 13 sec
Reputation Power: 0
What would it look like?
And if it isn't there, where should it go?
Thanks again -- leeann

Quote:
Originally Posted by Lafinboy
It could be any number of reasons, though the first thing to check is whether the host has made any recent changes/upgrades/moves that would have affected your account.
The next, and most likely reason, is that you have exceeded the number of consecutive connections to the database. Check that your code has a line to close and empty the connection object each time it is finished with.

Reply With Quote
  #4  
Old April 4th, 2005, 04:25 AM
matthuxtable matthuxtable is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Location: UK
Posts: 165 matthuxtable User rank is Private First Class (20 - 50 Reputation Level)matthuxtable User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Day 10 h 34 m
Reputation Power: 4
Green smiley in word Database

The green smiley comes from ..OLEDBatabase because the two characters; a colon : and a D make a smiley face - like this when you put them together. Take a look at http://forums.aspfree.com/misc.php?do=showsmilies to see the full list of smilies in this forum. All you have to do is type in the combination for the smiley you like and it will appear when you post the message.

Quote:
Originally Posted by leeann
...(uhm.. i dont know where the green smiley came from in the word database)


P.s. You can disable smilies in Advanced edit mode if you wish. Tick the box 'Disable smilies in text'.

Reply With Quote
  #5  
Old April 4th, 2005, 04:38 AM
matthuxtable matthuxtable is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Location: UK
Posts: 165 matthuxtable User rank is Private First Class (20 - 50 Reputation Level)matthuxtable User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Day 10 h 34 m
Reputation Power: 4
Lightbulb Closing record sets and the database

Quote:
Originally Posted by leeann
What would it look like?
And if it isn't there, where should it go?
Thanks again -- leeann


Hi,

The closing tags for the record set and database are below. You would put these after you have executed your SQL Statements against the database and retrieved the record set, and after you have printed out your results, or used them within your page.

Note: From personal experience, you have to close a record set before the database is closed for some reason. I'm not sure why it is, but you'll get an 'Object is already closed' message if you try to close the database first!

Closing record set:
Code:
recordsetname.Close
Set recordsetname = nothing

Remember to replace the parts in Italics with whatever is used in your ASP application

Closing the database:
Code:
databasename.Close
Set databasename = nothing

Remember to replace the parts in Italics with whatever is used in your ASP application. In your application, it would be Con, but I thought I'd better keep the code useable to everyone.

It might also be a good idea to set your database password variable to nothing after you have opened the connection with the password
Code:
Set password = nothing


Hope this helps

Reply With Quote
Reply

Viewing: ASP Free ForumsOtherProgramming Help > Site Crashed - Need Help w/Error 800a01fb


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT