I want to read an appSettings
value from the c:\Program Files\Microsoft SQL Server\MSSQL.4\Reporting Services\ReportManager\Web.config
file and display it in a report.
I added a reference to System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
and set field Value
property to
System.Web.Configuration.WebConfigurationManager.AppSettings("SomeKey")
.
All I got is an ultra-useful #Error
message.
I found the Can you reference appSettings in an SSRS report? question, but I'd like to avoid creating a custom assembly if possible (after all, what I want to do, requires no custom logic).
Bonus question:
- How can I troubleshoot this problem? Where can I find more
detailed information about error
that occured? (I checked the files
in
c:\Program Files\Microsoft SQL Server\MSSQL.4\Reporting Services\LogFiles
and Event Viewer - there's nothing there.)