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?
 
G

Gregory A. Beamer

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

I am not sure if this will help, but it is the first thing that came to
mind:
http://snurl.com/sor6d

Peace and Grace,

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com

*******************************************
| Think outside the box! |
*******************************************
 

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

Top