L
Leonardo Gangemi
I defined some diretories in the Web.config that can be changed without
recompiling.
This should be directories relative to the application directory.
e.g:
<!-- for log files -->
<add key="RelativeLogDir" value="log\" />
<!--for files generated for other applications -->
<add key="RelativeExportDir" value="export\" />
To do not need to test if theses directories have been created every place
on the application, I decided to test (and create, if necessary) on
Application_Start() of Global.asax.cs.
But I dont know how to get the Application root path inside this method,
since dont have Request to use on
request.ServerVariables["APPL_PHYSICAL_PATH"];
Any suggestions?
recompiling.
This should be directories relative to the application directory.
e.g:
<!-- for log files -->
<add key="RelativeLogDir" value="log\" />
<!--for files generated for other applications -->
<add key="RelativeExportDir" value="export\" />
To do not need to test if theses directories have been created every place
on the application, I decided to test (and create, if necessary) on
Application_Start() of Global.asax.cs.
But I dont know how to get the Application root path inside this method,
since dont have Request to use on
request.ServerVariables["APPL_PHYSICAL_PATH"];
Any suggestions?