Showing posts with label aspnet. Show all posts
Showing posts with label aspnet. Show all posts

Sunday, March 11, 2012

Custom Parameter Not Listed

Hi
I have an ASPNET application with forms auth which will have a page
that will list all the reports defined in the SQL Reporting Services
2005. This list is obtained using the ReportingService2005 web service.
In this page the user will select one report and will open it thru the
ReportViewer with all the report parameters ready to be set. Now, there
are some parameters that will not be shown but will be passed by the
ASPNET application such as the UserID.
Since the reports in SRS will be created by other people (not
controlled by the company I work in) we don't know exactly which
parameters they might need, that's why we want to send them several
parameters whether they need them or not (just in case).
I tried this but the SRS returned the error rsUnknownReportParameter.
Is there a way to override this, so the error is not raised and the
parameter accepted. Maybe a configuration in the web.config or
something like it.I just fixed it, but I dunno if this is the best solution. I just
connect to the Web Service ReportingService2005 and check if the
parameters I want to send are in the parameter list of the report thru
the method GetReportParameters.
I don't like doing two requests to the ReportServer, when it could be
managed in just one, but guess this is how I'll go.
Hope someone could help me out here
Thanks
KATLIM

Sunday, February 19, 2012

Custom Auth / SSRS 2005 / ASP.NET

Hi,
I've implemented the custom authentication provider as prescribed by MSDN
documentation. Everything is working pretty much as expected, however, I
want to programatically retreive information about the report (such as the
datasources, parameters, etc.)
I extended a class for RSExecutionService and can get an authentication
cookie back etc. However, if I want to use the
rs.GetDataSourceContents(dataSource) method, I get a response saying the
object is moved.
The request failed with the error message:
--
<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a
href="http://links.10026.com/?link=/ReportServer/logon.aspx?ReturnUrl=%2fReportServer%2fReportService.asmx">here</a>.</h2>
</body></html>
Ideas on how to get around this?
Thanks,
ChrisNevermind... Should read the word "Proxy" closer... and think before
coding...
solved, works like a charm. Man I love inheritance.
"Chris Taylor" <ctaylor7480@.newsgroups.nospam> wrote in message
news:upSzMR4IGHA.3984@.TK2MSFTNGP14.phx.gbl...
> Hi,
> I've implemented the custom authentication provider as prescribed by MSDN
> documentation. Everything is working pretty much as expected, however, I
> want to programatically retreive information about the report (such as the
> datasources, parameters, etc.)
> I extended a class for RSExecutionService and can get an authentication
> cookie back etc. However, if I want to use the
> rs.GetDataSourceContents(dataSource) method, I get a response saying the
> object is moved.
> The request failed with the error message:
> --
> <html><head><title>Object moved</title></head><body>
> <h2>Object moved to <a
> href="http://links.10026.com/?link=/ReportServer/logon.aspx?ReturnUrl=%2fReportServer%2fReportService.asmx">here</a>.</h2>
> </body></html>
> Ideas on how to get around this?
> Thanks,
> Chris
>