Share via

OpenWebConfiguration Not Loading Subfolder Web.Config

Julio Bello 221 Reputation points
2022-04-15T21:48:50.9+00:00

Hi, Everybody!...

I have a web service that is the "umbrella" web service for other web services. The common web.config file resides in the default folder of the web service. Each individual service has its own web.config file in its subfolder. When I invoke WebConfigurationManager.OpenWebConfiguration("/subService"), I expect it to load all the common configuration settings and add/override the individual service's configuration settings. It does not seem to be working. No Exceptions are thrown. What am I missing?

Developer technologies | .NET | .NET Runtime
Developer technologies | C#
Developer technologies | C#

An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.

Developer technologies | ASP.NET Core | Other

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.