can't connect to MS Access DataBase ; Help with connection string in ASP.NET VB

Posted on 2005-04-07
Last Modified: 2010-04-20

I have a simple data form in;  When I run it on my local machine the form updates a MS Access 2003 database with no problems.

When I move the database to the production server I get an error.

Not a valid file name.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.OleDb.OleDbException: Not a valid file name.
Source Error:
Line 55:         "Data Source=http:\\\InetPub\websites\\quotesurvey\data\WebData.mdb"
Line 56:     Dim dbConnection As New OleDbConnection(connectionString)
Line 57:     dbConnection.Open()

I know It must be my connection string, but I don't know what it is.

Please Help
Question by:MISSteve
    LVL 51

    Accepted Solution

    a URL uses / (slash) not \ (backslash)

    Author Comment

    OK.. I'll give it a shot.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Have you ever sent email via ColdFusion and thought of tracking this mail to capture the exact date and time when the message was opened ?  If yes, then this article is for you ! First we need a table user_email with columns user_id , email , sub…
    If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now