Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 154
  • Last Modified:

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

I have a simple data form in asp.net;  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:\\theleadmasters.com\InetPub\websites\theleadmasters.com\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
1 Solution
a URL uses / (slash) not \ (backslash)
MISSteveAuthor Commented:
OK.. I'll give it a shot.

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now