Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 strConnString help
 New Topic  Topic Locked
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 2

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 20 May 2002 :  11:51:11  Show Profile  Send ruirib a Yahoo! Message
Sorry, I misunderstood your folder organization.

To try to figure if the problem is with the connection string, just put it inside your forum folder, change its name to something hard to guess and change the conn string to:

strConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("YourDBFileName"),

replacing YourDBFileName by whatever file name you choose



-------------------------------------------------
Installation Guide | Do's and Dont's | MODs
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 20 May 2002 :  12:00:44  Show Profile  Send ruirib a Yahoo! Message
quote:

I tried yours, Rui,
I received this;

Server.MapPath() error 'ASP 0175 : 80004005'

Disallowed Path Characters

/forum/config.asp, line 58

The '..' characters are not allowed in the Path parameter for the MapPath method.


Now, at least we're getting something from the server. Try my previous suggestion by placing the DB in your forum folder and let me know how it goes.

-------------------------------------------------
Installation Guide | Do's and Dont's | MODs
Go to Top of Page

bisala
Starting Member

26 Posts

Posted - 20 May 2002 :  12:03:01  Show Profile
(per your previous post)
putting database file within forum folder, I got this reply now;


Microsoft VBScript compilation error '800a0401'

Expected end of statement

/forum/config.asp, line 58

strConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("xyz.mdb"),
-------------------------------------------------------------------------------------------^


Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 20 May 2002 :  12:12:50  Show Profile  Send ruirib a Yahoo! Message
Remove the ',' at the end. Sorry it was a typo.
quote:

(per your previous post)
putting database file within forum folder, I got this reply now;


Microsoft VBScript compilation error '800a0401'

Expected end of statement

/forum/config.asp, line 58

strConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("xyz.mdb"),
-------------------------------------------------------------------------------------------^



-------------------------------------------------
Installation Guide | Do's and Dont's | MODs
Go to Top of Page

bisala
Starting Member

26 Posts

Posted - 20 May 2002 :  12:18:26  Show Profile
I got this;


Home | Profile | Register | Active Topics | Members | Search | FAQ



Microsoft JET Database Engine error '80004005'

Operation must use an updateable query.

/forum/inc_functions.asp, line 717



Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 20 May 2002 :  12:42:02  Show Profile  Send ruirib a Yahoo! Message
Now, I'm getting happier. That's a permissions problem and your forum is already setup. You'd need to have your host change the folder permission to allow read/write access. I just wouldn't recommend that to be done in your forum folder.

Here is how I think you should proceed:

1. Add a
Response.Write Server.MapPath("xyz.mdb")
just before the line where your strConnString is defined, so that we know the actual physical path to the DB.

2. Move the database again to the starting folder. You can use the info obtained in 1 to deduce the actual physical to that folder and then will change the connstring to:

strConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=e:\yourDeducedPathWillcomeHere\xyz.mdb"

3. You can then ask your provider to grant read/write permissions on that initial DB folder to the Anonymous Internet user (IUSR_YOURMACHINENAME user).

Right now just do 1. and post the data here.

-------------------------------------------------
Installation Guide | Do's and Dont's | MODs
Go to Top of Page

bisala
Starting Member

26 Posts

Posted - 20 May 2002 :  16:12:38  Show Profile
thanks Rui for your continous feedback and care,
my forum is operating now (at last).
despite the valuable help available here,
I think a tutorial or how-to on strings would be helpful and timesaving for newcomers.
it took half my day to solve it out.
thanks and best regards

Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 20 May 2002 :  16:52:50  Show Profile  Send ruirib a Yahoo! Message
quote:

thanks Rui for your continous feedback and care,
my forum is operating now (at last).
despite the valuable help available here,
I think a tutorial or how-to on strings would be helpful and timesaving for newcomers.
it took half my day to solve it out.
thanks and best regards


You are welcome . There is a pretty good guide on connection strings. Just click the Installation Guide link in my signature to get there.

Enjoy your forum.

-------------------------------------------------
Installation Guide | Do's and Dont's | MODs
Go to Top of Page

Doug G
Support Moderator

USA
6493 Posts

Posted - 20 May 2002 :  19:14:37  Show Profile
Here is one explanation I wrote.

http://www.dougscode.com/faq/default.asp?id=q1034


======
Doug G
======
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 20 May 2002 :  19:18:59  Show Profile  Send ruirib a Yahoo! Message
Great article Doug. I just can't understand why that has been in 'hiding' all this time. It could have been put to good use quite a few times here. I just added it to my useful Snitz links list. You'll be getting more visitors from now on...

-------------------------------------------------
Installation Guide | Do's and Dont's | MODs
Go to Top of Page

Doug G
Support Moderator

USA
6493 Posts

Posted - 20 May 2002 :  23:24:10  Show Profile
Thanks!

Someday I'm going to finish up with the FAQ site, right now it's difficult to find the FAQ list from an article link :(



======
Doug G
======
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Previous Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 4.11 seconds. Powered By: Snitz Forums 2000 Version 3.4.07