473,396 Members | 2,081 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Database paths in a web app

I am developing a C# web application from a machine running Windows XP. The
web server is a remote machine running Windows Server 2003.

As a data source in this application we are using an Access database (.mdb).
Right now, this database is simply residing in the root folder of the
application (aka on the server).

I'm running into a problem concerning the path to this database. The path
from the development machine is a mapped drive y:\inetpub\wwwroot\...
However, from the server itself, it is simply a c:\inetpub\wwwroot\....

Now, Visual Studio needs it to be the mapped path (Y:) for all its
"features" to work (generation of datasets, etc). However, obviously the
server doesn't know what the Y: is, so it throws an exception when I try to
run the web app.
If I give it the "local path" (C:) then the application runs, however I
cannot use any of Visual Studio's features.

How do I get around this (without just giving up on the Access database)?

--
Adam Clauss
ca*****@tamu.edu


Nov 17 '05 #1
4 1344
I hate to say this, but frankly MSDE is a freebie, it mirrors SQL Server
virtually 100%, and you won't need to go through all this pain once you
migrate your Access stuff to it .... Plus, the new SQL Server 2005 Express
is even better.
Peter

"Adam Clauss" <ca*****@nospam.tamu.edu> wrote in message
news:ea**************@TK2MSFTNGP09.phx.gbl...
I am developing a C# web application from a machine running Windows XP.
The
web server is a remote machine running Windows Server 2003.

As a data source in this application we are using an Access database
(.mdb).
Right now, this database is simply residing in the root folder of the
application (aka on the server).

I'm running into a problem concerning the path to this database. The path
from the development machine is a mapped drive y:\inetpub\wwwroot\...
However, from the server itself, it is simply a c:\inetpub\wwwroot\....

Now, Visual Studio needs it to be the mapped path (Y:) for all its
"features" to work (generation of datasets, etc). However, obviously the
server doesn't know what the Y: is, so it throws an exception when I try
to
run the web app.
If I give it the "local path" (C:) then the application runs, however I
cannot use any of Visual Studio's features.

How do I get around this (without just giving up on the Access database)?

--
Adam Clauss
ca*****@tamu.edu

Nov 17 '05 #2
why do you have to call it through Y:/ bla bla bla
can you share that file? that way you can call it like
//machinename/directory/file.mdb

--
in**@dowhileloop.com
http://dowhileloop.com website development
http://publicjoe.dowhileloop.com -- C# Tutorials
"Adam Clauss" <ca*****@nospam.tamu.edu> wrote in message
news:ea**************@TK2MSFTNGP09.phx.gbl...
I am developing a C# web application from a machine running Windows XP. The web server is a remote machine running Windows Server 2003.

As a data source in this application we are using an Access database (.mdb). Right now, this database is simply residing in the root folder of the
application (aka on the server).

I'm running into a problem concerning the path to this database. The path
from the development machine is a mapped drive y:\inetpub\wwwroot\...
However, from the server itself, it is simply a c:\inetpub\wwwroot\....

Now, Visual Studio needs it to be the mapped path (Y:) for all its
"features" to work (generation of datasets, etc). However, obviously the
server doesn't know what the Y: is, so it throws an exception when I try to run the web app.
If I give it the "local path" (C:) then the application runs, however I
cannot use any of Visual Studio's features.

How do I get around this (without just giving up on the Access database)?

--
Adam Clauss
ca*****@tamu.edu

Nov 17 '05 #3
I hate to say this, but frankly MSDE is a freebie, it mirrors SQL Server
virtually 100%, and you won't need to go through all this pain once you
migrate your Access stuff to it .... Plus, the new SQL Server 2005 Express
is even better.
Peter

"Adam Clauss" <ca*****@nospam.tamu.edu> wrote in message
news:ea**************@TK2MSFTNGP09.phx.gbl...
I am developing a C# web application from a machine running Windows XP.
The
web server is a remote machine running Windows Server 2003.

As a data source in this application we are using an Access database
(.mdb).
Right now, this database is simply residing in the root folder of the
application (aka on the server).

I'm running into a problem concerning the path to this database. The path
from the development machine is a mapped drive y:\inetpub\wwwroot\...
However, from the server itself, it is simply a c:\inetpub\wwwroot\....

Now, Visual Studio needs it to be the mapped path (Y:) for all its
"features" to work (generation of datasets, etc). However, obviously the
server doesn't know what the Y: is, so it throws an exception when I try
to
run the web app.
If I give it the "local path" (C:) then the application runs, however I
cannot use any of Visual Studio's features.

How do I get around this (without just giving up on the Access database)?

--
Adam Clauss
ca*****@tamu.edu

Nov 17 '05 #4
why do you have to call it through Y:/ bla bla bla
can you share that file? that way you can call it like
//machinename/directory/file.mdb

--
in**@dowhileloop.com
http://dowhileloop.com website development
http://publicjoe.dowhileloop.com -- C# Tutorials
"Adam Clauss" <ca*****@nospam.tamu.edu> wrote in message
news:ea**************@TK2MSFTNGP09.phx.gbl...
I am developing a C# web application from a machine running Windows XP. The web server is a remote machine running Windows Server 2003.

As a data source in this application we are using an Access database (.mdb). Right now, this database is simply residing in the root folder of the
application (aka on the server).

I'm running into a problem concerning the path to this database. The path
from the development machine is a mapped drive y:\inetpub\wwwroot\...
However, from the server itself, it is simply a c:\inetpub\wwwroot\....

Now, Visual Studio needs it to be the mapped path (Y:) for all its
"features" to work (generation of datasets, etc). However, obviously the
server doesn't know what the Y: is, so it throws an exception when I try to run the web app.
If I give it the "local path" (C:) then the application runs, however I
cannot use any of Visual Studio's features.

How do I get around this (without just giving up on the Access database)?

--
Adam Clauss
ca*****@tamu.edu

Nov 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Tommy.Vincent | last post by:
Hi, its newbie question. I have one production server(A) ,one backup server(B),additional server(C). my database backup are moved from A to C in regular basis. My problem is that when...
51
by: John Baker | last post by:
Hi: Some time ago I developed a program in Access, and separated the database and the program itself (using the normal access tools).We have the db on our server and the programin the desktop...
13
by: TS | last post by:
Say i have a class car with properties: Color, Make, Model, Year, DriverID And a Driver class with properties: DriverID, Name The driverID PRIVATE property is the id of the driver from say a...
8
by: supasnail | last post by:
I have a happily working set of asp pages which read from the database via include file "./_private/include/database.mdb". However, when I try to gain access to this database on pages one folder...
6
by: Carl Banks | last post by:
I was wondering if anyone had any advice on this. This is not to study graph theory; I'm using the graph to represent a problem domain. The graphs could be arbitrarily large, and could easily...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.