HighTechTalks DotNet Forums  

Folder App Data

ASP.net Web Services microsoft.public.dotnet.framework.aspnet.webservices


Discuss Folder App Data in the ASP.net Web Services forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
James
 
Posts: n/a

Default Folder App Data - 05-25-2006 , 03:19 PM






Hello

I have created a project and there is a folder called App Data. In this
folder is a database and some photos, I have added items to it and linked to
those items from the design view and it has created the connection string
"~/app data"

This works fine on my computer but when I upload it to my website it seems
to go straight to the root drive (eg "E:/app data") of the web server.

Is there a way to stop this, and have it look in a folder that is in the
current directory rather than the root?

I have retyped it in the source code and put the full path in, instead of
just ~/, but this means it will not work in testing on my computer.

Many thanks in advance

James

Reply With Quote
  #2  
Old   
James
 
Posts: n/a

Default RE: Folder App Data - 05-25-2006 , 03:56 PM






Hello

found the answer, take the ~/ bit out, so:

App_Data/database.mdb will just look at the current directory for the folder
App_Data.

James

"James" wrote:

Quote:
Hello

I have created a project and there is a folder called App Data. In this
folder is a database and some photos, I have added items to it and linked to
those items from the design view and it has created the connection string
"~/app data"

This works fine on my computer but when I upload it to my website it seems
to go straight to the root drive (eg "E:/app data") of the web server.

Is there a way to stop this, and have it look in a folder that is in the
current directory rather than the root?

I have retyped it in the source code and put the full path in, instead of
just ~/, but this means it will not work in testing on my computer.

Many thanks in advance

James

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.