Re: ReportViewer Control Permission
- From: "AG" <NOSPAMa-giam@xxxxxxxxxxxxxxxxx>
- Date: Wed, 19 Sep 2007 20:57:59 -0400
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.
.
- Follow-Ups:
- Re: ReportViewer Control Permission
- From: "Walter Wang [MSFT]"
- Re: ReportViewer Control Permission
- References:
- ReportViewer Control Permission
- From: AG
- Re: ReportViewer Control Permission
- From: Donn Felker
- Re: ReportViewer Control Permission
- From: AG
- Re: ReportViewer Control Permission
- From: "Walter Wang [MSFT]"
- ReportViewer Control Permission
- Prev by Date: Dataset to Generic.List(Of MyClass)
- Next by Date: Re: Dataset to Generic.List(Of MyClass)
- Previous by thread: Re: ReportViewer Control Permission
- Next by thread: Re: ReportViewer Control Permission
- Index(es):
Relevant Pages
|