Re: ReportViewer Control Permission

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Thanks Walter.

As usual, help is wofully lacking on SetDataSourceCredentials, but it seems
like that applies to the report's datasource, not the report (server)
itself.

What I need is ReportServerCredentials.
I found this http://forums.asp.net/t/986174.aspx

When running the WAP on my development machine (Win XP IIS5), I can set the
report server to be the one on the shared web host and pass the credentials.
The reports work.
However, when I run the WAP on the shared web host and pass the same
credentials, I get the 401 unauthorized error.

Any ideas as to how to correct this?
--

AG
Email: discuss at adhdata dot com
""Walter Wang [MSFT]"" <wawang@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:UDoPZDp%23HHA.240@xxxxxxxxxxxxxxxxxxxxxxxxx
Hi AG,

Have you tried ReportViewer.ServerReport.SetDataSourceCredentials:

http://msdn2.microsoft.com/en-us/library/microsoft.reporting.webforms.server
report.setdatasourcecredentials(VS.80).aspx


Further reference:

#How to bypass/disable the authentication for reportviewer in a web
form? -
MSDN Forums
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=530501&SiteID=1
<quote>
You can disable prompting for data source credentials by using
ReportViewer.ShowCredentialPrompts = false. But you will still need to
manually supply the credentials to run the report using
ReportViewer.ServerReport.SetDataSourceCredentials().
</quote>


Please feel free to let me know if there's anything unclear. Thanks.


Regards,
Walter Wang (wawang@xxxxxxxxxxxxxxxxxxxx, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no
rights.



.



Relevant Pages

  • Please help with Blank pages problem
    ... I have a report that has one subreport. ... subreport level 2 is ... deals with clients and their credentials and the subjects ... main report: shows Client ID. ...
    (microsoft.public.access.reports)
  • Re: Why cant CHUCK.K pay his TAXES....AGAIN???
    ... WHO else is questioning Steve's report and why? ... What "credentials" are you talking about? ... SH-K some angel dust and he hallucinated? ... I could not care less. ...
    (alt.vacation.las-vegas)
  • Re: Web Browser Secuirty
    ... Thanks for the repose but no, when opening the reports on the report server ... default credentials. ... http://www.name.com/reportserver then the WebBrowser prompts the user for a ...
    (microsoft.public.dotnet.languages.csharp)
  • Please help with Blank pages problem
    ... >the Report and set the Subreports Properties to Can ... >>I have a report that has one subreport. ... >>deals with clients and their credentials and the subjects ... >>say I have a client with 3 credentials. ...
    (microsoft.public.access.reports)
  • I need a quick help with report printing
    ... textboxes and the report bands, ... >credentials and courses that the client took in each ... >shows the list of courses in each credential. ... that the report does this with few clients only ...
    (microsoft.public.access.reports)