This is a migrated thread and some comments may be shown as answers.

Using Custom Config Sections in Report Lib Project

1 Answer 60 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jed
Top achievements
Rank 1
Jed asked on 11 Dec 2010, 03:19 PM
I have a report that works fine when accessing the viewer through a web app.  However, the designer view doesn't work.  I get an exception because code I added to my report class depends on a custom configuration section in the config file.  I added the custom config section to the app.config file in my report lib project, but it doesn't seem to "see" the section.

I've seen other postings about using the Settings in lieu of app.config, however, I'm not sure that's going to work in my case.  Any help would be appreciated.

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 14 Dec 2010, 10:57 AM
Hi Jed ,

The following KB article elaborates on this matter: Using connectionStrings from configuration file. In short we use the application settings for the connestionString i.e. Visual Studio would otherwise look for these settings in the devenv.exe.config file.
So as you have correctly found out, you should modify the application settings at design time through its editor and not through the config file, because the changes won't be recorded in the settings metadata;
Of course if you think it is a better option for your case, you can always go to C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE and alter the devenv.exe.config file manually.

Kind regards,
Steve
the Telerik team
Get started with Telerik Reporting with numerous videos and detailed documentation.
Tags
General Discussions
Asked by
Jed
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or