C# 2008 SP1
I am using the code below:
dt.ReadXml(\"%AppData%\\\\DateLinks.xml\");
However, I am getting an exception that points t
For ASP.NET, the Load User Profile setting needs to be set on the app pool but that's not enough. There is a hidden setting named setProfileEnvironment in \Windows\System32\inetsrv\Config\applicationHost.config, which for some reason is turned off by default, instead of on as described in the documentation. You can either change the default or set it on your app pool. All the methods on the Environment class will then return proper values.