I had a problem with logging in my ASP.NET MVC project and with IIS in generally.
My local IIS has default configuration and I try to get appData
folder path for start logging into this (for example I wanna put my log files into %Appdata%/MyProject/logfile.log
). So I run my site and get my log folder into C:\MyProject\Logfile.log
. As I understand my application pull has a null value of environment value %AppData%
. Also i find this questions
IIS 7.5 application pool uses wrong %APPDATA% for custom user as identity
and
NetworkService under IIS has empty AppData path.
Now i wanna know how to solve problem (get environment value %AppData%
for personal app pools) and also can fix this issue from GUI (IIS or something else - not all time i has access to iis config directory).