MS Access and Web Pages

C

Chris Sergent

I am trying to use Access to connect to the web. I have
no problem with ADO.net, but ASP.net returns the
following error(If someon can at least point me in the
right direction, I would greatly appreciate it):
'G:\DFO\BPOM2000\Database\BaseMaps.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.
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: 'G:\DFO\BPOM2000
\Database\BaseMaps.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.

Source Error:


Line 125: Private Sub Page_Load(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
MyBase.Load
Line 126: 'Put user code to initialize the page
here
Line 127: OleDbDataAdapter1.Fill
(DLocalOffices1, "tblLocalOffices")
Line 128: If Not IsPostBack Then
Line 129: DataGrid1.DataBind()
 
P

pieter wijnen

you need to use UNC paths when linking to files (access or others) &
probably set up the rights as well ..
Pieter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top