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
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

bisala
Starting Member

26 Posts

Posted - 20 May 2002 :  02:59:40  Show Profile
using access database on an asp supporting web,


my forum files are in www.xxx.com/html/forum folder
my database is in www.xxx.com/dbroot folder , which is read and write enabled

what should be my strConnstring line?

the forum worked ok offline in my localhost,
but loading into web I moved the dbroot folder one level up for security, now I am puzzled with the string...
thanks




Nathan
Help Moderator

USA
7664 Posts

Posted - 20 May 2002 :  03:05:31  Show Profile  Visit Nathan's Homepage
Though I recomend a non-virtual path if you can use it. This one will work.

strConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("../../dbroot/snitz_forums_2000.mdb")

Nathan Bales
Snitz Exchange | Do's and Dont's
Go to Top of Page

bisala
Starting Member

26 Posts

Posted - 20 May 2002 :  03:31:00  Show Profile
thanks nathan but not it is not resolved.ý get hhtp 500 error

here is the my config.asp
-----------


'strDBType = "sqlserver"
strDBType = "access"
'strDBType = "mysql"


'## Make sure to uncomment one of the strConnString lines!
'strConnString = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("snitz_forums_2000.mdb") '## MS Access 97 using virtual path
'strConnString = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("/USERNAME/db/snitz_forums_2000.mdb") '## MS Access 97 on Brinkster
'strConnString = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=c:\inetpub\dbroot\snitz_forums_2000.mdb" '## MS Access 97
'strConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("/tools/snitz_forums_2000.mdb") '## MS Access 2000 using virtual path
'strConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("/USERNAME/db/snitz_forums_2000.mdb") '## MS Access 2000 on Brinkster
strConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("../../dbroot/snitz_forums_2000.mdb")
'strConnString = "driver={SQL Server};server=SERVER_NAME;uid=UID;pwd=PWD;database=DB_NAME" '## MS SQL Server 7
'strConnString = "driver={SQL Server};server=SERVER_NAME;uid=UID;pwd=PWD;database=DB_NAME" '## MS SQL Server 2000
'strConnString = "driver=MySQL;server=SERVER_IP;uid=UID;pwd=PWD;database=DB_NAME" '## MySQL

strTablePrefix = "FORUM_"
strMemberTablePrefix = "FORUM_"


Go to Top of Page

Nathan
Help Moderator

USA
7664 Posts

Posted - 20 May 2002 :  03:49:53  Show Profile  Visit Nathan's Homepage
Here -> http://www.morningz.com/mz/crystal/quick/friendly/friendly.asp

We can help you better if you can get the more detailed version of the error.

Nathan Bales
Snitz Exchange | Do's and Dont's
Go to Top of Page

bisala
Starting Member

26 Posts

Posted - 20 May 2002 :  03:51:30  Show Profile
the error message is this;

An error occurred on the server when processing the URL. Please contact the system administrator.


I can see from the ftp program that the mdb file is read and write enabled.


Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 20 May 2002 :  04:22:21  Show Profile  Send ruirib a Yahoo! Message
quote:

An error occurred on the server when processing the URL. Please contact the system administrator.

I can see from the ftp program that the mdb file is read and write enabled.


This looks like a server related error and you should contact your system administrator. Anyway the mdb file permissions cannot be determined through an FTP client. They can only be determined through the Windows interface (usually Windows Explorer).

A link to your forum would be useful.

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

bisala
Starting Member

26 Posts

Posted - 20 May 2002 :  05:07:58  Show Profile
I contacted the host, they verified that the server is Ok, my account is asp supported, my database file is read and write enabled and there should not be a problem.
Now, how should I proceed?


Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 20 May 2002 :  05:30:53  Show Profile  Send ruirib a Yahoo! Message
It's very hard for you to proceed at all getting that error message with all the pages you try to open...

Maybe posting a text version of config.asp would help. And what definitely could help was to contact your host to make sure they have your server configured to send detailed ASP error messages to clients. Otherwise it's almost impossible to figure out what is the error that is stopping you from seting up the forum.

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

digmind
Junior Member

Greece
177 Posts

Posted - 20 May 2002 :  06:44:26  Show Profile  Send digmind a Yahoo! Message
I'm not sure if this will help a lot but this is how i got the same
thing to work, i have my forum in root/aspfor1/
and the database is in root/databases/

i am running 2 forums and the databases exist there. only fis is in the names. I saw Nathan put two sets of ../../ i'm not sure if i'm doing it correct but it works. i also back and forth with this. I'd make usre your virtual directory and path are going to your root folder. that's the sys admin's job. then take what he gives you as a root and work from there.



strConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("../database/snitz_forums_2000.mdb") '## MS Access 2000 using virtual path



Thrylee Thea Mou
Olympiake Mou
Thryle 7
Go to Top of Page

bisala
Starting Member

26 Posts

Posted - 20 May 2002 :  09:58:43  Show Profile
thanks for the tips friends,
no one them worked, my host says they can't help me further.
I tried most of the strings, but before giving up,
could someone indicate a non-virtual path string for me ?
I repeat, I have two main folders in my web ; html and dbroot, access file is in dbroot and is write and read enabled,
my forum files are under www.xxx.com/html/forum folder.

Go to Top of Page

alex042
Average Member

USA
631 Posts

Posted - 20 May 2002 :  09:58:48  Show Profile  Send alex042 an AOL message  Send alex042 a Yahoo! Message
quote:
but not it is not resolved.ý get hhtp 500 error



It appears to be a server error, but may actually be in the coding within your pages somewhere. I've had a few 500 errors also, but after rechecking my coding, found the errors and was able to correct them. If the forum weren't able to find your database, you should've received a different error so your connection string may or may not be working. It could be something simple like the path within your page to the config.asp or some other included page may be incorrect. This is a problem I've ran into several times since my files aren't all in the forums directory, but correcting the paths to the included files fixed the 500 error for myself anyway.






Go to Top of Page

Doug G
Support Moderator

USA
6493 Posts

Posted - 20 May 2002 :  10:17:54  Show Profile
What is your host Operating System? There are some Unix asp emulators that don't run VBScript, the language Snitz is coded in.

You can make a simple one-line test file in notepad.

<% response.write "My Test Here" %>

Save this page to your web as testing.asp (or any name you want) and then open it in your browser, you should see the test string in your browser.


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

bisala
Starting Member

26 Posts

Posted - 20 May 2002 :  11:14:31  Show Profile
doug,
my host is NT,
the test you mentionned worked, no problem.
as I told before, before going online I tested all my web in my xp pro localhost. all my html and asp pages worked ok.
then I uploaded to my site by ftp.
when connected I got a html directory, I put forum folder within html directory.then I created another directory at the same level with html directory and named it dbroot.I put my access2002 database within it. my html pages work ok but cann not get asp pages to work.
my host say they can not help mr further....

Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 20 May 2002 :  11:39:39  Show Profile  Send ruirib a Yahoo! Message
quote:

when connected I got a html directory, I put forum folder within html directory.then I created another directory at the same level with html directory and named it dbroot.I put my access2002 database within it. my html pages work ok but cann not get asp pages to work.



If that is your folder structure, your conn string should be:

strConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("../dbroot/snitz_forums_2000.mdb")

Looks to me that you had an extra "../" in your initial string.

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

bisala
Starting Member

26 Posts

Posted - 20 May 2002 :  11:44:04  Show Profile
as far as I understand,
my config.asp is here:
E:\FTP_HOME\MYSITE.COM\HTML\FORUM
my access file is here
E:\FTP_HOME\MYSITE.COM\DBROOT
the previous test demonstrated that I can run an asp within
E:\FTP_HOME\MYSITE.COM\HTML\FORUM

I am quite a newbie with directory strings, please come up with alternatives,
I can move my database to another directory.....



Go to Top of Page

bisala
Starting Member

26 Posts

Posted - 20 May 2002 :  11:49:53  Show Profile
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.


Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next 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 1.64 seconds. Powered By: Snitz Forums 2000 Version 3.4.07