Custom Control and ConfigurationManager

M

Michel Racicot

In my app, I have some custom controls.
Those controls need to access some data in the configuration file to render
correctly.

In design time, when I use ConfigurationManager.GetSection, It doesn't find
the section I'm looking for.

So, my controls are ok in runtime but are not rendering in design time
(object not set...) because it seems that the ConfigurationManager doesn't
know where to find the .config file in design.

What can solve that issue?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,821
Latest member
AleidaSchi

Latest Threads

Top