configurationmanager - How to open a SectionGroup in an ASP.NET web application? -


I have a small ASP.NET web application that is hosted in an integration test (executed within NUnit). My product code can usually obtain configuration data from the web.config or app.config file, but for some reasons when I host on ASP.NET, I think that ArgumentException Executes before the command:

  var Configuration = Configuration Manager. OpenXE configuration (empty); Return configuration. GetSectionGroup (SectionGroupName);   

The exePath should be specified when the standalone alone is not running in the exe.

I do not know what to put here is not a sensible exePath to pass my product as a parameter in this method anytime because it is usually a web server In addition to this, the General section (section group) can usually be opened using this type:

  Configuration Manager. Gatection (Sequence Name)   

The App.config file is magically read in any way

code> system. Configuration. Configuration Configuration = Configuration Manager. OpenXE Configuration (Configuration User Level NO); Return config.GetSectionGroup (SectionGroupName);

should work in ASP.NET

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -