I am trying to add a service Reference, then I am getting this error.
"The parameter 'sectionGroupName' is invalid Parameter name: sectionGrouName"
Please Help. Thanks.
I got this error when I call 'ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None).SectionGroups["sectionGroupName"]'
to get the configuration from App.config
.
在 System.Configuration.MgmtConfigurationRecord.GetSectionGroup(String configKey)
在 TestMonitor.Program.Main(String[] args) 位置 E:\Temp\TestThreads\TestMonitor\Program.cs:行号 15
在 System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
在 System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
在 Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
在 System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
My resolvent is just move the 'appSettings'
section after to the 'configSections'
section. Maybe the 'configSections' must be the first child section of configuration. That's queer indeed!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With