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!
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!