Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Server object, ASP 0177 (0x800401F3) Error
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Server object, ASP 0177 (0x800401F3) Error

 Post Reply Post Reply
Author
mukeshnt View Drop Down
Newbie
Newbie


Joined: 03 April 2009
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote mukeshnt Quote  Post ReplyReply Direct Link To This Post Topic: Server object, ASP 0177 (0x800401F3) Error
    Posted: 03 April 2009 at 4:00am
I have been using an ASP script for about a month without any problems. But now I get an error which is: "Server object, ASP 0177 (0x800401F3), Invalid class string , /login_db.asp, line 134" I have not changed the script in any way since it was working. Can someone please help.
 
A part of the script with the line where error appears is shown below:
---------------------------------------------------------------
'Open a connection; we use a DSN-less connection
  Dim objConn
  Dim objRs
  
  Set objConn = Server.CreateObject("ADODB.Connection")  <------- Error
  
  objConn.open "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" & Server.MapPath("bank.mdb")
  'create a record set
  Set objRs = Server.CreateObject("ADODB.RecordSet")
---------------------------------------------------------------

I am using Win XP, IIS is working properly as other scripts which donot require database connectivity are working allright.
Thanks for the time.

 
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 03 April 2009 at 8:51am
Try the following:-

Set objConn = CreateObject("ADODB.Connection")

The Server. part is only required for NT4 and not needed these days and can sometime course problems.
Back to Top
mukeshnt View Drop Down
Newbie
Newbie


Joined: 03 April 2009
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote mukeshnt Quote  Post ReplyReply Direct Link To This Post Posted: 03 April 2009 at 3:34pm

Did that as you suggested. Now I get the following error:

Microsoft VBScript runtime (0x800A01AD)
ActiveX component can't create object: 'ADODB.Connection'
 
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 03 April 2009 at 4:07pm
I would try reinstalling the Microsoft MDAC database drivers, if that doesn't work try reinstalling IIS.
Back to Top
mukeshnt View Drop Down
Newbie
Newbie


Joined: 03 April 2009
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote mukeshnt Quote  Post ReplyReply Direct Link To This Post Posted: 03 April 2009 at 5:12pm
Yes I reinstalled MDAC 2.8 again. That worked. Thanks a ton. I also got a step-by-step method of reinstalling MDAC 2.8 from this site:
 
Unfortunately, I could not find a way of reinstalling MDAC on Microsft sites; surely I missed it somewhere. This also came in handy: Component Checker from Microsoft.
 
Thanks a lot and I very much appreciate your help and time you gave
 
Mukesh NT
India
 
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.