navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

Database Results Error - database connection undefined

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> Database Results Error - database connection undefined
Page: [1]
 
leanneB

 

Posts: 10
Joined: 11/26/2003
From: Melbourne, Australia
Status: offline

 
Database Results Error - database connection undefined - 11/26/2003 18:53:06   
Hi, I've just started using the database features of FrontPage and have come across a problem that the help doesn't seem to give me any ways to fix.
The problem is i have made a database connection to a previously made Access mdb file. I have then added a database results section to my page. For some reason when i test this page in my browser i get the following message in the yellow box:

Database Results Error
The database connection named 'DocumentRegister' is undefined.

This problem can occur if:
* the connection has been removed from the web
* the file 'global.asa' is missing or contains errors
* the root folder does not have Scripting permissions enabled
* the web is not marked as an Application Root


I think i've checked all these things, can anyone tell me what i might have done wrong?
paulie

 

Posts: 558
Status: offline

 
RE: Database Results Error - database connection undefined - 11/26/2003 19:08:44   
leanneB,
Welcome to Outfront! I've learned more here from a few searches on topics in the discussion forums than I did in three entire days of classroom training specific to FrontPage.

From the toolbar in FrontPage, check under Tools/Web Settings/Databases, and see if your "DocumentRegister" database is listed. If so, it should have a green check mark.
It's been awhile since I used the DRW for anything as I have graduated to hand coding datbase connections (which is actually much easier once you get the hang of it - see Spooky's ASP references under the Tutorials)
so I'm shooting somewhat from memory. But basically FrontPage has to "know about" your mdb file so it can update the global.asa behind the scenes. The Tools/Web Settings area is where you configure that.
Hope that helps,
Paul

(in reply to leanneB)
leanneB

 

Posts: 10
Joined: 11/26/2003
From: Melbourne, Australia
Status: offline

 
RE: Database Results Error - database connection undefined - 11/26/2003 19:17:13   
Thanks Paul.

I'd already checked that and the database connection is there with a green tick. So you say hand coding the connections is easier, maybe i should try that. Looks like i'll have to check the tutorials out.

(in reply to leanneB)
paulie

 

Posts: 558
Status: offline

 
RE: Database Results Error - database connection undefined - 11/26/2003 19:42:16   
That is a good goal, but in the meantime we should be able to get you going with your current setup. What is the "infrastructure" you're dealing with? (e.g., is the .mdb on a host's server, a test server on a network, your own local machine, etc) Can you open the Access file from your workstation? That should rule out some permissions issues...

(in reply to leanneB)
leanneB

 

Posts: 10
Joined: 11/26/2003
From: Melbourne, Australia
Status: offline

 
RE: Database Results Error - database connection undefined - 11/26/2003 21:20:28   
the mdb file is on my local machine, and i can open it from my workstation.

(in reply to paulie)
Spooky

 

Posts: 26599
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Database Results Error - database connection undefined - 11/26/2003 23:09:49   
Do you have a global.asa file in the root web and opening the DRW page via http://machinename/ ?

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to leanneB)
leanneB

 

Posts: 10
Joined: 11/26/2003
From: Melbourne, Australia
Status: offline

 
RE: Database Results Error - database connection undefined - 11/26/2003 23:18:23   
Yes i do have a global.asa file. What do you mean by opening the DRW page?
I moved the .asp file into the same directory as the global.asa file and now i get this:


Error Type:
Active Server Pages, ASP 0126 (0x80004005)
The include file '../_fpclass/fpdblib.inc' was not found.
/pgtintranetproto/ePBHC.asp, line 92


Browser Type:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)

Page:
GET /pgtintranetproto/ePBHC.asp

Time:
Thursday, 27 November 2003, 3:09:45 PM


I think i remember seeing someone else on here have a problem with an include file... i might have to check that out.

Thanks for the help Spooky, if i can't get this fixed soon i might have to go read your tutorials on how to write the code myself.

(in reply to Spooky)
Spooky

 

Posts: 26599
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Database Results Error - database connection undefined - 11/27/2003 13:12:32   
You dont want to move it if you can help it - that WILL break it :)
If you have frontpage open you your live web, can you go tools > web settings > database > and verify the connection for 'DocumentRegister' ?

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to leanneB)
leanneB

 

Posts: 10
Joined: 11/26/2003
From: Melbourne, Australia
Status: offline

 
RE: Database Results Error - database connection undefined - 11/30/2003 18:59:57   
Done all of that. Still not working

(in reply to Spooky)
BeTheBall

 

Posts: 6354
Joined: 6/21/2002
From: West Point Utah USA
Status: offline

 
RE: Database Results Error - database connection undefined - 11/30/2003 22:20:17   
Generally, that error means the web or subweb has not been marked as an application. This is done via IIS. In some cases you can do this yourself by opening the web live and importing a small database into the fpdb folder for your web. If that doesn't work, contact your host.

_____________________________

Duane

Some people are like Slinkies . . . Not really good for anything . . . . . But they still bring a smile to your face when you push them down a flight of stairs.

(in reply to leanneB)
Spooky

 

Posts: 26599
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Database Results Error - database connection undefined - 11/30/2003 23:20:15   
Try this file - save it as asp in your directory and open it in the browser to see your application settings

Attachment (1)

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to BeTheBall)
leanneB

 

Posts: 10
Joined: 11/26/2003
From: Melbourne, Australia
Status: offline

 
RE: Database Results Error - database connection undefined - 11/30/2003 23:58:59   
Thanks Spooky, that file really helped, it told me that my web isn't marked as an application root. So how do i do this through the IIS?

(in reply to Spooky)
BeTheBall

 

Posts: 6354
Joined: 6/21/2002
From: West Point Utah USA
Status: offline

 
RE: Database Results Error - database connection undefined - 12/1/2003 16:16:37   
The few times I have done this myself, I have done it throught the MMC (Microsoft Management Console) Find the web in question. Right-click and choose properties. Then select the directory or virtual directory tab. In the middle of the next screen you will see a button labeled "Create". Simply click it. You can name the application or not, it is not required. Here is a screenshot of the Properties Dialogue Box:


Thumbnail Image
:)

Attachment (1)

_____________________________

Duane

Some people are like Slinkies . . . Not really good for anything . . . . . But they still bring a smile to your face when you push them down a flight of stairs.

(in reply to leanneB)
leanneB

 

Posts: 10
Joined: 11/26/2003
From: Melbourne, Australia
Status: offline

 
RE: Database Results Error - database connection undefined - 12/2/2003 0:19:13   
Thanks for all the help, i managed to get it working by writing my own asp code instead. But i'm gonna go back and see whether this can fix it, as i've already got another problem with using asp. But i'll save that for a new topic.

(in reply to BeTheBall)
R Clark

 

Posts: 161
From: USA
Status: offline

 
RE: Database Results Error - database connection undefined - 12/19/2003 12:49:18   
FWIW,

everytime I had this issue, I created a new folder, converted it to a web, dumped all the files from my subweb (subweb where pages having issues are) into this new folder and everything worked. I'm not sure what this is doing because in my scenario's, I've tried all the fixes above with no help. My subweb (and root) could run scripts, my connection verified, sometimes just doing the 'verify hyperlinks' has been suggested but none worked except to transfer all the contents of the subweb to a new folder.

for example, my subweb with db pages that aren't working for the reasons you mentioned is named...

'products'

I create new folder 'products1' and convert it to a web folder, dump all files/folder (even hidden ones) from 'products' into 'products1' (pages now work at this point but I want to eventually get back to a folder named 'products' soooo..) delete corrupt 'products' folder, create new folder named 'products' and convert to web folder, dump all files/folders (even hidden ones) from 'products1' into new 'products' folder, delete 'products1' folder and I'm back to where I started with the same subweb (folder) name except that I don't get the 'connection undefined' error any more and I get my db results.

I know this may be crude but it's quick and it has fixed this problem for me every time without having to recreate pages or rewrite code.


FWIW

Randy

(in reply to leanneB)
Aelaron

 

Posts: 223
Joined: 6/8/2004
Status: offline

 
RE: Database Results Error - database connection undefined - 6/8/2004 12:46:56   
HELP! I have this issue and been working with my server admin to no avail.

Also, when I try the fpselect.asa file it says that the file fired and then I get this error:

Microsoft VBScript runtime error '800a0005'

Invalid procedure call or argument: 'Mid'

/fpselect.asp, line 41

Any help would be appreciated.

Thanks!

JB

(in reply to R Clark)
Spooky

 

Posts: 26599
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Database Results Error - database connection undefined - 6/8/2004 15:52:12   
It means something is wrong at line 41 :-)
Could you start a new thread with more information?

Welcome!

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to Aelaron)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> Database Results Error - database connection undefined
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts