Is the problem server.mappath or something else?

I'm testing a new .Net application that uses MS Access. I am using server.mappath to obtain the physical path of the file and have confirmed my oleDbConnection string syntax using a test page. Nonetheless when I try to access the db using one of the application pages I get a resource not found error.

I found one newsgroup posting that indicated the folder with the db must have write permissions. If that is correct I am unable to set them via my FTP client. The console displays a command not recognized error.

The location of the db is D:\Domains\\wwwroot\projects\cargo\currentDB\VinMaster_be.mdb.

test page:
problem page:

Thank you!

Here's the test page code:

<%@ Page Language="VB" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">

<script runat="server">
    Dim dbPath As String = Server.MapPath("currentDB/VinMaster_be.mdb")
    Dim connString As String = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" & _
    dbPath & ";Persist Security Info=False;"


<html xmlns="">
<head runat="server">
    <title>Untitled Page</title>
    <form id="form1" runat="server">

Here's a snippet from the problem page code that uses server.mappath:

        Dim dbPath As String = Server.MapPath("currentDB/VinMaster_be.mdb")
        Dim MyConnection As New OleDbConnection _
            ("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" & dbPath & _
             ";Persist Security Info=False;")
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Göran AnderssonCommented:
Usually if the web hotel supports Access datbases, there is a special folder in your account where you are supposed to put them. The folder already has write permissions set so that the database file gets the correct permissions when you upload it to the folder.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.