I'm working with vs.net 2005 and SRS 2005. I setup a custom security
extension and I connect using a proxy class via "LogonUser" to a custom
asp.net web application. When I set some parameters and pass them to the
reportviewer I get the following error:
{"The parameter '{0}' cannot be an empty string. Parameter name:
cookie.Domain"}
I tryed a few different things but nothing works... Has anyone else ran into
this problem?
Nuno PereiraI was passing an incomplete cookie to ReportServerCredentials. I change how i
retrieve the cookie to use the Utilities class provided by the extension
sample. Now, I'm stuck on something else. Everything seems to get accepted
except i get an
"Object moved" page.
This is how i retrieve my cookie:
Dim netCookie As System.Net.Cookie =Utilities.TranslateCookie(HttpContext.Current.Request.Cookies(Utilities.CustomAuthCookieName))
ReportViewer1.ProcessingMode = ProcessingMode.Remote
ReportViewer1.ServerReport.ReportServerCredentials = New
CustomCredentials(netCookie, "admin", "password", "domainName")
ReportViewer1.ServerReport.ReportServerUrl = New
Uri(ConfigurationManager.AppSettings("ReportServerUrl"))
ReportViewer1.ServerReport.ReportPath = Session("ReportPath")
SetReportParams() 'Custom method that sets params
__________________________________________________________
When I use this code I the reportserver spits out the following:
The request failed with the error message:
--
<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a
href='/ReportServer/logon.aspx?ReturnUrl=%2fReportServer%2fReportExecution2005.asmx'>here</a>.</h2>
</body></html>
--.
Nuno Pereira
"Nuno" wrote:
> I'm working with vs.net 2005 and SRS 2005. I setup a custom security
> extension and I connect using a proxy class via "LogonUser" to a custom
> asp.net web application. When I set some parameters and pass them to the
> reportviewer I get the following error:
> {"The parameter '{0}' cannot be an empty string. Parameter name:
> cookie.Domain"}
> I tryed a few different things but nothing works... Has anyone else ran into
> this problem?
> Nuno Pereirasql
Showing posts with label proxy. Show all posts
Showing posts with label proxy. Show all posts
Monday, March 26, 2012
Wednesday, March 7, 2012
ReportingService.Render(CSV)
I am calling a reporting service proxy's Render Method passing "CSV" as the format.
Dim result As Byte() = ReportingService.Render("/SomeRPT", "CSV", ...)
Return Text.Encoding.Unicode.GetString(result)
This returns a unicode byte array. This array has four leading bytes (255,254,83,0) that do not belong in the output. If I use the GetString method all of the null chars are stripped out, but this leaves three leading bytes (255,254,83) that do not exist if I call the same report from a web page, and then save as CSV. If I render this report with html, excel, or pdf as a format, the output is as expected.
Is this a bug in the SQL Report Services, Web Service?
Or am I doing something wrong?
Regards,
Ken
Subscribe to:
Posts (Atom)