Lordnomi
|
| Posted: 05/22/2004, 5:50 AM |
|
My system is working fine on personal comuter using IIS. But when i am uploading it on the remote server its giving me error.
My connectipn string is
ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;User ID=Admin;Data Source=C:\Inetpub\wwwroot\sal\dbw\cars.mdb;Persist Security Info=False"
And error is
Unable to establish connection to database.
Error information:
Microsoft JET Database Engine (0x80004005)
'C:\Inetpub\wwwroot\sal\dbw\cars.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.
There is a way to allow the code look for the DB , how can i do it .
Thanks
|
|
|
 |
jimmyLeander
Posts: 4
|
| Posted: 05/22/2004, 1:20 PM |
|
Lordomi
You can use Server.MapPath in your Connection string instead of the path....
Check this link in the Knowledge Base, should be what you are looking for...
http://support.codecharge.com/kb_article.asp?s_keyword=...=&article_id=54
_________________
Jimmy |
 |
 |
peterr
Posts: 5971
|
| Posted: 05/23/2004, 2:05 PM |
|
BTW, your Web hosting company should provide you with the specific location where the database should be placed. You may need to FTP your database to that location outside of CCS, assuming that the folder structure is different within your project.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
|