Contact Us Forum Rules Search Archive
WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-09-2005, 07:16 AM
WebProWorld Pro
 

Join Date: Jun 2004
Location: Weymouth, UK
Posts: 124
EmmaGale RepRank 0
Default Web Wiz Mailing Help

I would like to set up a subscription based mailing list on my site. Its for a charity that we have set up in response to the Tsunami disaster. We will be holding future events and want to be able to email subscribers with this news.

The index page is displaying the box properly, but when I go to subscribe i get the following message:

Microsoft JET Database Engine error '80004005'

'e:\kunden\homepages\45\********\*****\db\mailing_ list.mdb' is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides.

/mailing_list/common.asp, line 178

I think this is something to do with setting up the vritual or physical path but whichever I use it doesnt seem to work:

Virtual: Server.MapPath("/db/mailing_list.mdb")

Physical: "http://www.***.websitehome.co.uk/db/mailing_list.mdb"

I am also getting the same error when I try and connect to the admin page.

Any help will be greatly appreciated.
With best wishes
Emma Gale
Reply With Quote
  #2 (permalink)  
Old 02-09-2005, 09:01 AM
paulhiles's Avatar
WebProWorld 1,000+ Club
 

Join Date: Jul 2003
Location: UK
Posts: 2,803
paulhiles RepRank 0
Default Get the correct path to a database using ASP

Hi Emma,

Two quick questions... any chance of a URL? Are you sure you're able to run ASP scripts?

One way to check the path to the database is:
1) Save the following snippet as 'GetDBPath.asp'
Code:
<%
'use this file to get the the full path to the database
Response.Write Server.MapPath("mailing_list.mdb")
%>
2) Upload to the same "db" directory as your mailing list database and run the file.

Let me know how you get on, yeah?

Paul
Reply With Quote
  #3 (permalink)  
Old 02-09-2005, 11:32 AM
WebProWorld Pro
 

Join Date: Jun 2004
Location: Weymouth, UK
Posts: 124
EmmaGale RepRank 0
Default

Hi Paul,

The URL is www.weysia.co.uk

I have the database in a different path though for security. Not that its secure now eh :)

http://www.s114085044.websitehome.co.../GetDBPath.asp

For some reason when I run the script above, it is telling me:

You have attempted to execute a CGI, ISAPI, or other executable program from a directory that does not allow programs to be executed.

I know I can run ASP scripts becuase I am running Snitz forums in the same site!

Thanks for your reply Paul,
Emma
Reply With Quote
  #4 (permalink)  
Old 02-09-2005, 12:20 PM
paulhiles's Avatar
WebProWorld 1,000+ Club
 

Join Date: Jul 2003
Location: UK
Posts: 2,803
paulhiles RepRank 0
Default Hmmmm interesting! :o)

Could be the permissions on the database folder need to be changed. You need to be able to have read/write access for most databases.

If the server can run ASP scripts, then the permissions seem to be the likely culprit. Have you modified the "common.asp" file to point to your database location?

Paul
Reply With Quote
  #5 (permalink)  
Old 02-09-2005, 12:49 PM
WebProWorld Pro
 

Join Date: Jun 2004
Location: Weymouth, UK
Posts: 124
EmmaGale RepRank 0
Default

As far as I know the permissions to that particular file have already been set. I am running my database on the Snitz forum from the same folder. The database works fine for that.

I think it is to do with the path. I have obvoiusly commented one of these out within the common.asp file but these are the current settings:

Virtual: Server.MapPath("/db/mailing_list.mdb")

Physical: "http://www.s114085044websitehome.co.uk/db/mailing_list.mdb"

The virtual one is the same path that I am using in the asp file for the snitz forum whcih again works fine.
cheers emma
Reply With Quote
  #6 (permalink)  
Old 02-09-2005, 01:31 PM
paulhiles's Avatar
WebProWorld 1,000+ Club
 

Join Date: Jul 2003
Location: UK
Posts: 2,803
paulhiles RepRank 0
Default

There needs to be a period (full stop) in the "Physical" location above.

http://www.s114085044.websitehome.co.uk/db/mailing_list.mdb

I'm sure you're right, and it has to be a path issue, but it's got me stumped at the moment.
Trial and error, see if it makes any difference removing the start slash.. just try anything! :o)

Paul
Reply With Quote
  #7 (permalink)  
Old 02-10-2005, 09:55 AM
WebProWorld Pro
 

Join Date: Jun 2004
Location: Weymouth, UK
Posts: 124
EmmaGale RepRank 0
Default

Yep that was an error!

I have tried and errored - all morning :)

Still can't get it working

If anyone has any ideas I would be really grateful.

Many thanks
em
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags: , , ,



Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.2.0