Path of the application in Vs 2005

G

Guest

I have a Web application accessible through pages Aspx and WebServices and
have the necessity to know the physical path where the application is
installed (in order to manage some directory of documents).

In Vs 2003 I used the command:
System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase)

In Vs 2005 instead such command returns me the path of one temporary
directory:

How I can make?

Note
The command: Request.ServerVariables["APPL_PHYSICAL_PATH "] does not go
well in how much usable one only to the inside of the Apsx pages and they do
not give on the WebServices!
 

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