On most servers this code is working fine, but I just bumped into one that is returning this error...
var config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
var section = config.GetSectionGroup("system.serviceModel") as ServiceModelSectionGroup;
ion: An error occurred loading a configuration file: Absolute path information is required. ---> System.ArgumentException: Absolute path information is required.
(String str, Boolean needFullPath)
ess access, AccessControlActions control, String pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList)
nAccess access, String path)
tring exePath, Boolean includeUserConfig)
s(String exePath, Boolean includeUserConfig)
I don't want to have to make a code change to solve the problem since it is working on all Test Servers and 2 Prod Servers.
The application is a Windows Console App and just referencing the app.config properly named in the same directory with the exe. It works everywhere but on these last 2 servers.
I have found things about using MapPath in StackOverflow, but I don't want to have to make a code change. I'm really looking for information that will guide me to the differences on the servers.
So, my question is, what causes this error to occur on one server and not another? How can I modify my Dev Server to replicate the error so that I can demonstrate the problem to the Sys Admins?