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 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: The App.config file is magically read in any way should work in ASP.NET ArgumentException Executes before the command:
var Configuration = Configuration Manager. OpenXE configuration (empty); Return configuration. GetSectionGroup (SectionGroupName);
Configuration Manager. Gatection (Sequence Name)
Comments
Post a Comment