Groups | Blog | Home
all groups > sql server reporting services > october 2004 >

sql server reporting services : Accessing config file from delivery extension


Mike Sandwick
10/5/2004 6:13:04 PM
I'm running into a problem with reading a config file with my own custom
entries in it from within a delivery extension. I've tried putting it in the
ReportServer web.config and RSReportServer.config, and my code doesn't seem
to be able to find it.

When I use the configuration file .Net framework classes from within a
delivery extension, which config file is it looking at?

Thanks,
Teo Lachev [MVP]
10/5/2004 9:57:50 PM
Mike,

Subscriptions are run in an unattended mode by the Report Server Windows
service (ReportingServicesService.exe) not the Report Server. So, try
putting your config settings in ReportingServicesService.exe.config.

--
Hope this helps.

-----------------------------------------------------
Teo Lachev, MVP [SQL Server], MCSD, MCT
Author: "Microsoft Reporting Services in Action"
Publisher website: http://www.manning.com/lachev
Buy it from Amazon.com: http://shrinkster.com/eq
Home page and blog: http://www.prologika.com/
-----------------------------------------------------

[quoted text, click to view]

Scott Allen
10/6/2004 1:29:48 AM
Hi Teo:

The delivery extension also has to provide GUI functionality in the
Report Server process, which will pull settings from
RSWebApplication.config. Depending on when the settings are used -
they might have to appear in both.

--
Scott
http://www.OdeToCode.com/

On Tue, 5 Oct 2004 21:57:50 -0400, "Teo Lachev [MVP]"
[quoted text, click to view]
Mike Sandwick
10/6/2004 9:21:03 AM
That was it, I put my configuration file entry in the
ReportingServicesService.exe.config, and it now works.
Thanks!
Mike

[quoted text, click to view]
Teo Lachev [MVP]
10/6/2004 9:29:12 PM
Scott,

You are right. In general, a custom extension should store its config
settings in the Configuration element in the RSWebApplication.config. This
will allow the Report Server (or Report Manager) to push these settings to
the extension.

Perhaps, I should have started my reply with this side note. I assumed that
in Mike's case this wasn't acceptable. Thanks for pointing this out.

--
Hope this helps.

-----------------------------------------------------
Teo Lachev, MVP [SQL Server], MCSD, MCT
Author: "Microsoft Reporting Services in Action"
Publisher website: http://www.manning.com/lachev
Buy it from Amazon.com: http://shrinkster.com/eq
Home page and blog: http://www.prologika.com/
-----------------------------------------------------

[quoted text, click to view]

AddThis Social Bookmark Button