开发者

ConfigurationErrorsException in a console app

开发者 https://www.devze.com 2022-12-09 08:33 出处:网络
The entry \'MyCustomElement\' has already been added. C:\\Projects\\Sandbox\\Sandbox.Console\\bin\\Debug\\Sandbox.Console.vshost.exe.config line 52

The entry 'MyCustomElement' has already been added.

C:\Projects\Sandbox\Sandbox.Console\bin\Debug\Sandbox.Console.vshost.exe.config line 52

I'm a bit stumped on this one. This console app has had quite a few custom config sections added over the past few weeks with no issue. We've run the app for some time and just recently(within the past two days) we've bumped into this issue.

I've read about this happening to older web apps after installing 3.5, virtual directories, etc. However, we've always been 3.5 here and this is a console app.

The only change that occurred recently was the addition of a new custom config section. When the开发者_如何学C error occurred, we naturally removed that section, however the error was then returned naming the following config section(previously working) as the culprit.


This was discovered to be caused by a custom ConfigurationCollection class intended to be generic.

0

精彩评论

暂无评论...
验证码 换一张
取 消