Accessing App_Data from App_Code

S

Sushi

Hi
I am developing an application using ASP.Net 2.0. In my code under
App_Code I would like to access the files in App_Data. Any ideas if
there is a way to get the path of this folder ?

Thanks
 
S

Sushi

No, that doesnt work. In my case the current directory when loading a
file seems to be the Visual Studio install directory.
 
J

Juan T. Llibre

That can't be.

"~" refers to an ASP.NET application's *virtual* directory
root and cannot possibly refer to VS's physical installation directory.



Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
 

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