<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Impersonating another user with the Web Form Report Viewer control and SQL Server Reporting Services 2005</title><link>http://blogs.msdn.com/bimusings/archive/2005/11/18/494436.aspx</link><description>I covered how to do impersonation with the Winform ReportViewer control a few weeks ago, so here's how to do it with the WebForm version. The first thing to keep in mind is that by default the WebForm ReportViewer will run under the security context of</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Impersonating another user with the Web Form Report Viewer control and SQL Server Reporting Services 2005</title><link>http://blogs.msdn.com/bimusings/archive/2005/11/18/494436.aspx#511621</link><pubDate>Wed, 11 Jan 2006 19:49:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:511621</guid><dc:creator>Raghu</dc:creator><description>I have used the above code to impersonate a specific user and can view the reports. But, I get an error when I click on Page Navigation, Refresh or any of the buttons on the Report Viewer Toolbar. Can you please help.&lt;br&gt;&lt;br&gt;When I click on the page navigation button, the error that is displayed is:&lt;br&gt;&amp;quot;Page navigation is out of range &amp;quot; &lt;br&gt;&lt;br&gt;Clicking on any other button will result in the error - &amp;quot;Execution session has expired&amp;quot;&lt;br&gt;&lt;br&gt;The Report Server and the server hosting web application is on different servers.</description></item><item><title>re: Impersonating another user with the Web Form Report Viewer control and SQL Server Reporting Services 2005</title><link>http://blogs.msdn.com/bimusings/archive/2005/11/18/494436.aspx#512520</link><pubDate>Fri, 13 Jan 2006 18:26:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:512520</guid><dc:creator>russch</dc:creator><description>Raghu, I'm only aware of this error in conjunction with viewing a LINKED report inside the report viewer control..&lt;br&gt;&lt;br&gt;Did you check your event log to see if the app pool or aspnet_wp is recycling? Try to narrow things down by running a report in LOCAL mode to see if it really is a problem with SSRS, the ReportViewer control, or the ASP.NET app hosting the control.</description></item><item><title>re: Impersonating another user with the Web Form Report Viewer control and SQL Server Reporting Services 2005</title><link>http://blogs.msdn.com/bimusings/archive/2005/11/18/494436.aspx#532812</link><pubDate>Thu, 16 Feb 2006 01:35:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:532812</guid><dc:creator>vamsi</dc:creator><description>This worked fot me. The only change I am forced to make this work is changing the web app session state to InProc.&lt;br&gt;&lt;br&gt;Thanks,&lt;br&gt;vamsi.</description></item><item><title>re: Impersonating another user with the Web Form Report Viewer control and SQL Server Reporting Services 2005</title><link>http://blogs.msdn.com/bimusings/archive/2005/11/18/494436.aspx#546952</link><pubDate>Thu, 09 Mar 2006 11:19:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:546952</guid><dc:creator>nic</dc:creator><description>Hello Russell, I've implemented your ReportViewerCredentials class into my web app, now everything works fine except that sometimes when I try to change the ServerURL or ReportPath properties of the ReportViewer, I get an &amp;quot;Operation is not valid due to the current state of the object&amp;quot; error. I've tested this on many reports and found that the error only occurs when the report I'm viewing is a linked report (i.e. the property IsDrillthroughReport==true). You mentioned in your earlier comment &amp;quot;error in conjunction with viewing a LINKED report inside the report viewer control&amp;quot;, so I wonder if my problem has to do with the impersonation and if so, is there any way to solve this? &lt;br&gt;&lt;br&gt;Thanks!&lt;br&gt;Nic</description></item><item><title>re: Impersonating another user with the Web Form Report Viewer control and SQL Server Reporting Services 2005</title><link>http://blogs.msdn.com/bimusings/archive/2005/11/18/494436.aspx#552145</link><pubDate>Wed, 15 Mar 2006 21:33:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:552145</guid><dc:creator>russch</dc:creator><description>nic, I see what you are talking about. There are a few reports of this behavior, and if you were using the WebForm ReportViewer, all you'd need to do is call ReportViewer.Reset(), and you'd probably be in good shape...however we don't have this method in the web reportviewer. I'll poke around and see if I can find an equivalent technique.</description></item><item><title>re: Impersonating another user with the Web Form Report Viewer control and SQL Server Reporting Services 2005</title><link>http://blogs.msdn.com/bimusings/archive/2005/11/18/494436.aspx#552200</link><pubDate>Wed, 15 Mar 2006 22:48:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:552200</guid><dc:creator>russch</dc:creator><description>nic, see this workaround:&lt;br&gt;&lt;br&gt;&lt;a rel="nofollow" target="_new" href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=212322&amp;amp;SiteID=1"&gt;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=212322&amp;amp;SiteID=1&lt;/a&gt;&lt;br&gt; &lt;br&gt;</description></item><item><title>re: Impersonating another user with the Web Form Report Viewer control and SQL Server Reporting Services 2005</title><link>http://blogs.msdn.com/bimusings/archive/2005/11/18/494436.aspx#564786</link><pubDate>Thu, 30 Mar 2006 16:27:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:564786</guid><dc:creator>Trish</dc:creator><description>We have implemented the above code. &amp;nbsp;Everything was working fine until we had two users attempt to get to SRSS at the same time. &amp;nbsp;&lt;br&gt;&lt;br&gt;We are using the web reportviewer and always using the credentials of one windows users (ReportViewer). &amp;nbsp;&lt;br&gt;&lt;br&gt;The error we are getting is &amp;quot;Unhandled exception was caught: System.Web.HttpException: An error occurred while attempting to impersonate. &amp;nbsp;Execution of this request cannot continue.&amp;quot; &amp;nbsp;&lt;br&gt;&lt;br&gt;One user is able to view the report but the others get the above error message.&lt;br&gt;&lt;br&gt;Any ideas?</description></item><item><title>re: Impersonating another user with the Web Form Report Viewer control and SQL Server Reporting Services 2005</title><link>http://blogs.msdn.com/bimusings/archive/2005/11/18/494436.aspx#564910</link><pubDate>Thu, 30 Mar 2006 18:26:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:564910</guid><dc:creator>Trish</dc:creator><description>It looks like the problem doesn't occur under Windows XP...but when we push it out to our build server that is Windows 2003 we start getting the messages.</description></item><item><title>re: Impersonating another user with the Web Form Report Viewer control and SQL Server Reporting Services 2005</title><link>http://blogs.msdn.com/bimusings/archive/2005/11/18/494436.aspx#564939</link><pubDate>Thu, 30 Mar 2006 18:49:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:564939</guid><dc:creator>Trish</dc:creator><description>Here is the applicaton error log message:&lt;br&gt;&lt;br&gt;Event code: 3005 &lt;br&gt;Event message: An unhandled exception has occurred. &lt;br&gt;Event time: 3/30/2006 10:39:10 AM &lt;br&gt;Event time (UTC): 3/30/2006 4:39:10 PM &lt;br&gt;Event ID: cf181f6f9e4f4460a6e0828711ba51e9 &lt;br&gt;Event sequence: 6267 &lt;br&gt;Event occurrence: 12 &lt;br&gt;Event detail code: 0 &lt;br&gt; &lt;br&gt;Application information: &lt;br&gt; &amp;nbsp; &amp;nbsp;Application domain: /LM/W3SVC/52577887/root/ReportServer-2-127881193422582207 &lt;br&gt; &amp;nbsp; &amp;nbsp;Trust level: RosettaSrv &lt;br&gt; &amp;nbsp; &amp;nbsp;Application Virtual Path: /ReportServer &lt;br&gt; &amp;nbsp; &amp;nbsp;Application Path: C:\Program Files\Microsoft SQL Server\MSSQL.2\Reporting Services\ReportServer\ &lt;br&gt; &amp;nbsp; &amp;nbsp;Machine name: BUILD &lt;br&gt; &lt;br&gt;Process information: &lt;br&gt; &amp;nbsp; &amp;nbsp;Process ID: 4500 &lt;br&gt; &amp;nbsp; &amp;nbsp;Process name: w3wp.exe &lt;br&gt; &amp;nbsp; &amp;nbsp;Account name: NT AUTHORITY\NETWORK SERVICE &lt;br&gt; &lt;br&gt;&lt;br&gt;In our XP environment we are using ASPNET...in the windows 2003 environment it is using the NETWORK SERVICE.</description></item><item><title>re: Impersonating another user with the Web Form Report Viewer control and SQL Server Reporting Services 2005</title><link>http://blogs.msdn.com/bimusings/archive/2005/11/18/494436.aspx#565132</link><pubDate>Thu, 30 Mar 2006 21:47:38 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:565132</guid><dc:creator>Trish</dc:creator><description>Ok, we resolved it. &amp;nbsp;We commented out the code in ImpersonateUser and just had it return null. &amp;nbsp;That made it return the GetBasicCredentials that worked.&lt;br&gt;&lt;br&gt;We figured we could eventually get the ImpersonateUser to work but this is much cleaner because we aren't having to use unsafe code. &amp;nbsp;We also don't need to impersonate. &amp;nbsp;The user we are passing in the the user we want...so we don't see why it would need to impersonate.&lt;br&gt;</description></item><item><title>re: Impersonating another user with the Web Form Report Viewer control and SQL Server Reporting Services 2005</title><link>http://blogs.msdn.com/bimusings/archive/2005/11/18/494436.aspx#593996</link><pubDate>Wed, 10 May 2006 01:11:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:593996</guid><dc:creator>ReportViewer Control User</dc:creator><description>Hi,&lt;br&gt;I am using the above code but I need to connect to reportserver on the same domain(network). The way I did this is I return null from the ImpersonationUser method but now my NetworkCredentials property looks like the following:&lt;br&gt;&lt;br&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;public ICredentials NetworkCredentials&lt;br&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;br&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;///Comment out for basic security&lt;br&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//// Comment out for basic security&lt;br&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;get&lt;br&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;br&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;CredentialCache cc = new CredentialCache();&lt;br&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;cc.Add(new Uri(ConfigurationManager.AppSettings[&amp;quot;ReportServerEndPoint&amp;quot;]), &amp;quot;Basic&amp;quot;, new NetworkCredential(this.Username.ToString(), this.Password.ToString()));&lt;br&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return cc; &amp;nbsp;// Not using NetworkCredentials to authenticate.&lt;br&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br&gt;&lt;br&gt;Is this the right way?. Does the user need to be a local user on the machine that has the report server?&lt;br&gt;&lt;br&gt;Thanks</description></item><item><title>re: Impersonating another user with the Web Form Report Viewer control and SQL Server Reporting Services 2005</title><link>http://blogs.msdn.com/bimusings/archive/2005/11/18/494436.aspx#601197</link><pubDate>Thu, 18 May 2006 22:21:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:601197</guid><dc:creator>Luis</dc:creator><description>I have &amp;nbsp;a problem with this, I have some reports that have multiple dropdownlist, when you select one dropdownlist it must refresh another dropdownlist, it works if you navigate to the report with reportmanager, but not with reportviewer, after refreshing one dropdowncontrol I got the same 401 unauthorized error.&lt;br&gt;&lt;br&gt;Any help</description></item><item><title>re: Impersonating another user with the Web Form Report Viewer control and SQL Server Reporting Services 2005</title><link>http://blogs.msdn.com/bimusings/archive/2005/11/18/494436.aspx#604129</link><pubDate>Tue, 23 May 2006 00:05:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:604129</guid><dc:creator>Leon</dc:creator><description>I also got the same issue as Trish &amp;quot;Unhandled exception was caught: System.Web.HttpException: An error occurred while attempting to impersonate. &amp;nbsp;Execution of this request cannot continue&amp;quot;. &amp;nbsp;&lt;br&gt;&lt;br&gt;I am not sure whether Trish is using the same way as me, but I just create a seperate application pool and use the local account user to run my application (which only enable user to look at the reports right now). &amp;nbsp;Then without using the Impersonation, I got the application running. &amp;nbsp;&lt;br&gt;&lt;br&gt;However, I am not sure what is the security impact of running my application by using a local account with much higher level permissions or how much is different than impersonation for security concern, anybody have a good idea? &amp;nbsp;Thanks.</description></item><item><title>HTTP status 401: Unauthorized</title><link>http://blogs.msdn.com/bimusings/archive/2005/11/18/494436.aspx#605893</link><pubDate>Wed, 24 May 2006 15:43:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:605893</guid><dc:creator>Asaf</dc:creator><description>When trying to view the report I am receiving the error: &lt;br&gt;&lt;br&gt;The request failed with HTTP status 401: Unauthorized. &lt;br&gt;* same user and password works fine on windows application&lt;br&gt;Also I have tried Administrator user.&lt;br&gt;&lt;br&gt;My code for the report viewer is: &lt;br&gt;&lt;br&gt;rvBlackListReport.ProcessingMode = ProcessingMode.Remote; &lt;br&gt;&lt;br&gt;rvBlackListReport.ServerReport.ReportServerUrl = new &lt;br&gt;Uri(&amp;quot;&lt;a rel="nofollow" target="_new" href="https://www.MyDomain.com/ReportServer&amp;quot;"&gt;https://www.MyDomain.com/ReportServer&amp;quot;&lt;/a&gt;); &lt;br&gt;rvBlackListReport.ServerReport.ReportPath = &amp;quot;/MyReports/TestReport&amp;quot;; &lt;br&gt;&lt;br&gt;ReportViewerCredentials rvc = new &lt;br&gt;ReportViewerCredentials(&amp;quot;TestUser&amp;quot;, &amp;quot;TestPassword&amp;quot;, &amp;quot;&amp;quot;); &lt;br&gt;rvBlackListReport.ServerReport.ReportServerCredentials = rvc;&lt;br&gt;&lt;br&gt;Regards,&lt;br&gt;Asaf&lt;br&gt;</description></item><item><title>re: Impersonating another user with the Web Form Report Viewer control and SQL Server Reporting Services 2005</title><link>http://blogs.msdn.com/bimusings/archive/2005/11/18/494436.aspx#773009</link><pubDate>Wed, 27 Sep 2006 03:26:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:773009</guid><dc:creator>furmangg</dc:creator><description>I've reported a bug regarding using the credentials code seen above... apparently the keepalive code ReportViewer uses doesn't pay attention to it, so the session in ReportServerTempDB gets dumped after 10 mins instead of being kept alive:&lt;br&gt;&lt;br&gt;&lt;a rel="nofollow" target="_new" href="https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=213131"&gt;https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=213131&lt;/a&gt;&lt;br&gt;&lt;br&gt;Please see the workaround I posted there (changing the app pool identity)... and post a workaround yourself if you've figured out a better way around this problem.</description></item><item><title>re: Impersonating another user with the Web Form Report Viewer control and SQL Server Reporting Services 2005</title><link>http://blogs.msdn.com/bimusings/archive/2005/11/18/494436.aspx#781516</link><pubDate>Mon, 02 Oct 2006 22:19:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:781516</guid><dc:creator>BradB</dc:creator><description>&lt;p&gt;For the page navigation problem, page navigation is a postback. &amp;nbsp;Look at what you are doing in the PageLoad when IsPostBack == true.&lt;/p&gt;
</description></item><item><title>re: Impersonating another user with the Web Form Report Viewer control and SQL Server Reporting Services 2005</title><link>http://blogs.msdn.com/bimusings/archive/2005/11/18/494436.aspx#926141</link><pubDate>Wed, 01 Nov 2006 22:26:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:926141</guid><dc:creator>Raquel </dc:creator><description>&lt;p&gt;Hi Russel,&lt;/p&gt;
&lt;p&gt;You just had a training in our site a couple of weeks ago and you gave you C# script for Impersonation but I got the script from the web below.&lt;/p&gt;
&lt;p&gt;My question is, Using the script below How do I clean up the Impersonation? &amp;nbsp;otherwise Is the user is still logged in using the Impersonated Account? &lt;/p&gt;
&lt;p&gt;Thanks, hope to hear from you.&lt;/p&gt;
&lt;p&gt;Raquel&lt;/p&gt;
&lt;p&gt;Imports Microsoft.Reporting.WebForms&lt;/p&gt;
&lt;p&gt;Imports System.web.Security&lt;/p&gt;
&lt;p&gt;Imports Microsoft.VisualBasic&lt;/p&gt;
&lt;p&gt;Imports System.Net&lt;/p&gt;
&lt;p&gt;Public Class ReportServerCredentials&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Implements IReportServerCredentials&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Private _userName As String&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Private _password As String&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Private _domain As String&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Public Sub New(ByVal userName As String, ByVal password As String, ByVal domain As String)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;_userName = userName&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;_password = password&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;_domain = domain&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;End Sub&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Public ReadOnly Property ImpersonationUser() As System.Security.Principal.WindowsIdentity Implements Microsoft.Reporting.WebForms.IReportServerCredentials.ImpersonationUser&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Get&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Return Nothing&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;End Get&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;End Property&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Public ReadOnly Property NetworkCredentials() As ICredentials Implements Microsoft.Reporting.WebForms.IReportServerCredentials.NetworkCredentials&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Get&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Return New NetworkCredential(_userName, _password, _domain)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;End Get&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;End Property&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Public Function GetFormsCredentials(ByRef authCookie As System.Net.Cookie, ByRef userName As String, ByRef password As String, ByRef authority As String) As Boolean Implements Microsoft.Reporting.WebForms.IReportServerCredentials.GetFormsCredentials&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;userName = _userName&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;password = _password&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;authority = _domain&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Return Nothing&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;End Function&lt;/p&gt;
&lt;p&gt;End Class&lt;/p&gt;
</description></item><item><title>re: Impersonating another user with the Web Form Report Viewer control and SQL Server Reporting Services 2005</title><link>http://blogs.msdn.com/bimusings/archive/2005/11/18/494436.aspx#949923</link><pubDate>Sat, 04 Nov 2006 05:16:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:949923</guid><dc:creator>russch</dc:creator><description>&lt;p&gt;Hi Raquel --&lt;/p&gt;
&lt;p&gt;It looks like you're trying to do two things at the same time here -- Get Forms Auth credentials, and then turn around and do Windows Impersonation...Is this correct? &lt;/p&gt;
</description></item><item><title>re: Impersonating another user with the Web Form Report Viewer control and SQL Server Reporting Services 2005</title><link>http://blogs.msdn.com/bimusings/archive/2005/11/18/494436.aspx#1175215</link><pubDate>Thu, 30 Nov 2006 05:31:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1175215</guid><dc:creator>Henry </dc:creator><description>&lt;p&gt;Hi,russch:&lt;/p&gt;
&lt;p&gt; I had developed a reporting service home page for our intranet . And I deployed this home page at &amp;quot;domain.server1&amp;quot; (for example) and my sql server database &amp;nbsp;and reporting service is at another server &amp;quot;domain.server2&amp;quot;(for example). on the &amp;quot;domain.server1&amp;quot; , the Authentication methods is Integrated windows authentication. and on the &amp;quot;domain.server2&amp;quot; , with the reportingservice server properites and home folder, in the &amp;quot;permissions&amp;quot; tab, I had add the &amp;quot;domain.server1$&amp;quot; as system user role. so I can view my report via my home page and it works fine. If I remove the &amp;nbsp;&amp;quot;domain.server1$&amp;quot; from the reporting service, there could be encountered an error &amp;quot;The permissions granted to user 'domain.server1$' are insufficient for performing this operation&amp;quot;. &lt;/p&gt;
&lt;p&gt;I used &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rService.Credentials = System.Net.CredentialCache.DefaultCredentials;&lt;/p&gt;
&lt;p&gt;in my home page to list the reports. But this function return nothing.I think this must be a problem, so I change this code as&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;System.Net.NetworkCredential myCreds = new System.Net.NetworkCredential();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;myCreds.Domain = &amp;quot;domain&amp;quot;;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;myCreds.UserName = &amp;quot;UserName&amp;quot;;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;myCreds.Password = &amp;quot;Password&amp;quot;;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;rService.Credentials = myCreds;&lt;/p&gt;
&lt;p&gt;and add this &amp;quot;UserName&amp;quot; to a local group &amp;quot;group1&amp;quot; on &amp;quot;domain.server2&amp;quot; , and grant this group &amp;quot;group1&amp;quot; to access the reporting service server. It works fine.&lt;/p&gt;
&lt;p&gt;Because I need to access my home page and reporting service as the same Integrated windows authentication.I do not need the user to type in the user name and password again and again. So if they login the window system and then they can access their own home page functions and their groups own report server folders.&lt;/p&gt;
&lt;p&gt;But now , I'm confused how to get the user's information .I can get the user domain and username by HttpContext,but I can not get the password infomation , even though encrypted.&lt;/p&gt;
&lt;p&gt;Do I can get the user's password information from the AD or there is another choice for this condition?&lt;/p&gt;
&lt;p&gt;could you give me some suggestion?&lt;/p&gt;
&lt;p&gt;T.I.A&lt;/p&gt;
&lt;p&gt;Henry&lt;/p&gt;
</description></item><item><title>re: Impersonating another user with the Web Form Report Viewer control and SQL Server Reporting Services 2005</title><link>http://blogs.msdn.com/bimusings/archive/2005/11/18/494436.aspx#1246340</link><pubDate>Sat, 09 Dec 2006 19:30:02 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1246340</guid><dc:creator>russch</dc:creator><description>&lt;p&gt;Hi Henry -- I'm a tiny bit unclear on how you are displaying the report in your homepage (inside an IFrame? Using the Report Viewer control?), but this shouldn't be too difficult. &lt;/p&gt;
&lt;p&gt;If you modify web.config on your homepage to use Impersonation, then display reports through the Report Viewer control, this should happen:&lt;/p&gt;
&lt;p&gt;1. User hits the homepage, and logs in if necessary (as domain\user1, lets say)&lt;/p&gt;
&lt;p&gt;2. From now on, everything they do happens under this security context. &lt;/p&gt;
&lt;p&gt;3. They run your report through the Report Viewer, and the Report Viewer picks up the credentials of the user (domain\user1) automatically, passing them along to domain\server2, where SSRS lives.&lt;/p&gt;
</description></item><item><title>re: Impersonating another user with the Web Form Report Viewer control and SQL Server Reporting Services 2005</title><link>http://blogs.msdn.com/bimusings/archive/2005/11/18/494436.aspx#1310178</link><pubDate>Sun, 17 Dec 2006 12:11:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1310178</guid><dc:creator>Henry</dc:creator><description>&lt;p&gt;Hi,Russch:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; Thank your for your suggestion.&lt;/p&gt;
&lt;p&gt; &amp;nbsp; I had fixed this issue a few day ago.&lt;/p&gt;
&lt;p&gt; &amp;nbsp; I used a IFrame in my homepage and also use a report viewer control to display my report.&lt;/p&gt;
&lt;p&gt; &amp;nbsp; May be I had not described clearly.:( I don't want the user type in the password when they hits the homepage, so I integrated the windows authentication. And this security context can not access to SSRS server before.&lt;/p&gt;
&lt;p&gt; &amp;nbsp;I had configurated the domain.server1 as a trusted machine and use the Kerberos authentication and it work fine.&lt;/p&gt;
&lt;p&gt; &amp;nbsp;Anyway, thanks a lot!:)&lt;/p&gt;
&lt;p&gt;Henry&lt;/p&gt;
</description></item><item><title>re: Impersonating another user with the Web Form Report Viewer control and SQL Server Reporting Services 2005</title><link>http://blogs.msdn.com/bimusings/archive/2005/11/18/494436.aspx#1370485</link><pubDate>Wed, 27 Dec 2006 23:34:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1370485</guid><dc:creator>Mike</dc:creator><description>&lt;p&gt;Trying to access a remote server with ReportViewer and was getting the 401 error. &amp;nbsp;I tried your impersonation suggestion below but get the following message: &lt;/p&gt;
&lt;p&gt;&amp;quot;For security reasons DTD is prohibited in this XML document. To enable DTD processing set the ProhibitDtd property on XmlReaderSettings to false and pass the settings into XmlReader.Create method. &amp;quot; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;I searched the web far and wide but could not find a reasonable solution. &amp;nbsp;There are no errors in my event log.&lt;/p&gt;
&lt;p&gt;I am using 2 machines on a peer to peer windows network (no domain).&lt;/p&gt;
&lt;p&gt;Any clues?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
</description></item><item><title>re: Impersonating another user with the Web Form Report Viewer control and SQL Server Reporting Services 2005</title><link>http://blogs.msdn.com/bimusings/archive/2005/11/18/494436.aspx#1376629</link><pubDate>Fri, 29 Dec 2006 01:37:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1376629</guid><dc:creator>Aaron</dc:creator><description>&lt;p&gt;Hi Russch,&lt;/p&gt;
&lt;p&gt;I am unclear on why you need to impersonate a Windows user. The documentation I have read online talks about having the ImpersonationUser return null and instead implement the GetFormsCredentials function.&lt;/p&gt;
&lt;p&gt;Have you implemented forms authentication for ReportViewer using the function GetFormsCredentials() before?&lt;/p&gt;
&lt;p&gt;I am having an *awful* time getting this set-up. Here is the url for the sample code I downloaded: &lt;a rel="nofollow" target="_new" href="http://www.devx.com/dotnet/Article/30610/0/page/4"&gt;http://www.devx.com/dotnet/Article/30610/0/page/4&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I followed the steps they gave on setting up the report but for some reason I get this error: The request failed with the error message: -- &amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&amp;lt;title&amp;gt;Object moved&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;&amp;lt;body&amp;gt; &amp;lt;h2&amp;gt;Object moved to &amp;lt;a href=&amp;quot;/ReportServer/logon.aspx?ReturnUrl=%2fReportServer%2fReportExecution2005.asmx&amp;quot;&amp;gt;here&amp;lt;/a&amp;gt;.&amp;lt;/h2&amp;gt; &amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt; --. &lt;/p&gt;
&lt;p&gt;I'm sure that I'm close to figuring out this problem but I'm unable to figure out what the missing piece is. Could you please help me out?&lt;/p&gt;
</description></item><item><title>re: Impersonating another user with the Web Form Report Viewer control and SQL Server Reporting Services 2005</title><link>http://blogs.msdn.com/bimusings/archive/2005/11/18/494436.aspx#1435021</link><pubDate>Mon, 08 Jan 2007 21:17:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1435021</guid><dc:creator>Farshid</dc:creator><description>&lt;p&gt;Use following credential and specify &amp;quot;NTLM&amp;quot; &lt;/p&gt;
&lt;p&gt;CredentialCache cc = new CredentialCache();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;cc.Add(uri, &amp;quot;NTLM&amp;quot;, new NetworkCredential(&amp;quot;administrator&amp;quot;, &amp;quot;sierra&amp;quot;, &amp;quot;dev3.agi&amp;quot;));&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;_reportViewer.ServerReport.ReportServerCredentials.NetworkCredentials = cc;&lt;/p&gt;
</description></item><item><title>re: Impersonating another user with the Web Form Report Viewer control and SQL Server Reporting Services 2005</title><link>http://blogs.msdn.com/bimusings/archive/2005/11/18/494436.aspx#1612893</link><pubDate>Tue, 06 Feb 2007 20:35:46 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1612893</guid><dc:creator>Doug S</dc:creator><description>&lt;p&gt;Do you have this code in VB?&lt;/p&gt;
&lt;p&gt;Do you have to do something similar to this in reporting services prior to 2005?&lt;/p&gt;
</description></item><item><title>re: Impersonating another user with the Web Form Report Viewer control and SQL Server Reporting Services 2005</title><link>http://blogs.msdn.com/bimusings/archive/2005/11/18/494436.aspx#1618965</link><pubDate>Wed, 07 Feb 2007 15:27:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1618965</guid><dc:creator>russch</dc:creator><description>&lt;p&gt;I don't, sorry.&lt;/p&gt;
</description></item><item><title>re: Impersonating another user with the Web Form Report Viewer control and SQL Server Reporting Services 2005</title><link>http://blogs.msdn.com/bimusings/archive/2005/11/18/494436.aspx#1832020</link><pubDate>Thu, 08 Mar 2007 03:47:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1832020</guid><dc:creator>Rich</dc:creator><description>&lt;p&gt;I was having a problem with one of my Report Servers and could not recall what I did to fix it in the past. &amp;nbsp;I googled my problem and found this page but I remembered it was much easier than what is presented in this article. &amp;nbsp;I asked myself why go through all this when you need to properly configure SSRS to fix this issue. &amp;nbsp;I skimmed through the comments and did not see what I was looking for. &amp;nbsp;Later it came to me that I needed to create a role for the user. Once I did that on my server it worked fine.&lt;/p&gt;
&lt;p&gt;The problem I was having is that &amp;quot;NT AUTHORITY\NETWORK SERVICE&amp;quot; was not trusted to execute a report. &amp;nbsp;To fix the issue I needed to go to the report server web interface http://&amp;lt;server&amp;gt;/Reports click the &amp;quot;Properties&amp;quot; tab, click the &amp;quot;New Role Assignment&amp;quot; button. &amp;nbsp;In the &amp;quot;Group or user name:&amp;quot; text box I added &amp;quot;NT AUTHORITY\NETWORK SERVICE&amp;quot; and checked the &amp;quot;Browser&amp;quot; Role check box and clicked the &amp;quot;OK&amp;quot; button.&lt;/p&gt;
&lt;p&gt;Hopefully this will help someone out.&lt;/p&gt;
</description></item><item><title>Avoiding the '401 Unauthorized' Error when Using the ReportViewer in Your Web Application</title><link>http://blogs.msdn.com/bimusings/archive/2005/11/18/494436.aspx#1928352</link><pubDate>Thu, 22 Mar 2007 05:22:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1928352</guid><dc:creator>StevenHarman.net</dc:creator><description>&lt;p&gt;Avoiding the '401 Unauthorized' Error when Using the ReportViewer in Your Web Application&lt;/p&gt;
</description></item><item><title>Impersonare un utente con ReportViewer Control</title><link>http://blogs.msdn.com/bimusings/archive/2005/11/18/494436.aspx#3442495</link><pubDate>Thu, 21 Jun 2007 15:01:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3442495</guid><dc:creator>Impedance Mismatch</dc:creator><description>&lt;p&gt;Oggi mi sono trovato nella necessit&amp;#224; di impersonare un utente per accedere a dei report tramite il ReportViewer&lt;/p&gt;
</description></item><item><title>re: Impersonating another user with the Web Form Report Viewer control and SQL Server Reporting Services 2005</title><link>http://blogs.msdn.com/bimusings/archive/2005/11/18/494436.aspx#4165345</link><pubDate>Wed, 01 Aug 2007 13:52:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4165345</guid><dc:creator>John</dc:creator><description>&lt;p&gt;Hi there&lt;/p&gt;
&lt;p&gt;Which username and password is passed into the 'ReportViewerCredentials' method on your report viewer page? Is it the specific users account info or another account that has to be set up separately. If the latter, where does this account have to be set up?&lt;/p&gt;
&lt;p&gt;I tried the code, passing in my own windows account username and password but just got an access denied error.&lt;/p&gt;
&lt;p&gt;Also, in which web.config file do you set &amp;lt;identity impersonate=&amp;quot;true&amp;quot;/&amp;gt; ? The one in your application or the one in the report server virtual directory (as it is in there by default)?&lt;/p&gt;
&lt;p&gt;Many thanks&lt;/p&gt;
&lt;p&gt;John&lt;/p&gt;
</description></item><item><title>re: Impersonating another user with the Web Form Report Viewer control and SQL Server Reporting Services 2005</title><link>http://blogs.msdn.com/bimusings/archive/2005/11/18/494436.aspx#4533493</link><pubDate>Fri, 24 Aug 2007 03:35:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4533493</guid><dc:creator>Shehzad Sheikh</dc:creator><description>&lt;p&gt;Hi Russch, &lt;/p&gt;
&lt;p&gt;I have been trying to search on Impersonation of through the report viewer control. I read your arctile and it was a help to some extent. I understand that we have implemented &amp;nbsp;IReportServerCredentials interface. it is working fine when i hard code my username, password and domain while instantiating the class, but what if i have to impersonate dynamically with the logged on user windows credientials so that my code access the report server with the current user's credentials. For that matter i have failed so far finding a way to get the password for the current user. I can just use the User.Identity property on the page to get username and domain but not the password and hence cannot successfully impersonate the current user. Do you or anybody have any thoughts how can i overcome this problem??&lt;/p&gt;
</description></item><item><title>re: Impersonating another user with the Web Form Report Viewer control and SQL Server Reporting Services 2005</title><link>http://blogs.msdn.com/bimusings/archive/2005/11/18/494436.aspx#6678312</link><pubDate>Thu, 06 Dec 2007 14:19:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6678312</guid><dc:creator>Mridu</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am also facing the problem with the error - -- &amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&amp;lt;title&amp;gt;Object moved&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;&amp;lt;body&amp;gt; &amp;lt;h2&amp;gt;Object moved to &amp;lt;a href=&amp;quot;/ReportServer/logon.aspx?ReturnUrl=%2fReportServer%2fReportExecution2005.asmx&amp;quot;&amp;gt;here&amp;lt;/a&amp;gt;.&amp;lt;/h2&amp;gt; &amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt; --. &lt;/p&gt;
&lt;p&gt;This is quite because in forms authentication, a cookie is required but with the authentication we are providing , the cookie is still not passed along, so that's the reason SSRS authorization cancel's out the SOAP call and redirects us back to the ReturnURL.&lt;/p&gt;
&lt;p&gt;I am figuring out the problem but solution is to no avail.&lt;/p&gt;
&lt;p&gt;Please let me know if anyone comes across a solution for the same.&lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;
&lt;p&gt;- Mridu.&lt;/p&gt;
</description></item><item><title>re: Impersonating another user with the Web Form Report Viewer control and SQL Server Reporting Services 2005</title><link>http://blogs.msdn.com/bimusings/archive/2005/11/18/494436.aspx#6879756</link><pubDate>Thu, 27 Dec 2007 23:15:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6879756</guid><dc:creator>fredarwin</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have a report in rpviewer in remote mode,inside my report i am using drillthrogh subreports and the navigation through it work fine, but, when i am in the subreport and after to choose export or print when i press the go parent button i haver a error:&lt;/p&gt;
&lt;p&gt;Call back drilltroght&lt;/p&gt;
&lt;p&gt;What can i do 4 resolve this issue?&lt;/p&gt;
</description></item><item><title>re: Impersonating another user with the Web Form Report Viewer control and SQL Server Reporting Services 2005</title><link>http://blogs.msdn.com/bimusings/archive/2005/11/18/494436.aspx#6879824</link><pubDate>Thu, 27 Dec 2007 23:28:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6879824</guid><dc:creator>fredarwin</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have a report in rpviewer in remote mode,inside my report i am using drillthrogh subreports and the navigation through it work fine, but, when i am in the subreport and after to choose export or print when i press the go back to the parent report button i haver a error:&lt;/p&gt;
&lt;p&gt;Back Call without drillthrough report.&lt;/p&gt;
&lt;p&gt;I think is the sessionalive problem but how can solve this&lt;/p&gt;
</description></item><item><title>re: Impersonating another user with the Web Form Report Viewer control and SQL Server Reporting Services 2005</title><link>http://blogs.msdn.com/bimusings/archive/2005/11/18/494436.aspx#7722598</link><pubDate>Sat, 16 Feb 2008 00:41:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7722598</guid><dc:creator>KV</dc:creator><description>&lt;p&gt;I tried with the ImpersonationUser returning null and &amp;nbsp;public ICredentials NetworkCredentials&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;get&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//return null; &amp;nbsp;// Not using NetworkCredentials to authenticate.&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CredentialCache cc = new CredentialCache(); &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cc.Add(new Uri(&amp;quot;&lt;a rel="nofollow" target="_new" href="http://svr-devstation1/reportserver&amp;quot;"&gt;http://svr-devstation1/reportserver&amp;quot;&lt;/a&gt;),&amp;quot;Basic&amp;quot;, &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; new NetworkCredential( &amp;quot;kviswanathan&amp;quot;, &amp;quot;Pranav0206&amp;quot;,&amp;quot;Federation&amp;quot;)); &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return cc; &amp;nbsp;// Not using NetworkCredentials to authenticate. &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt;i get HTTP 401 not authorized error.&lt;/p&gt;
&lt;p&gt;When i step through, i could see the correct domain,username and password in the ReportServerCredentials.&lt;/p&gt;
&lt;p&gt;Any help is greatly appreciated.&lt;/p&gt;
&lt;p&gt;thanks.&lt;/p&gt;
&lt;p&gt;KV&lt;/p&gt;
</description></item><item><title>re: Impersonating another user with the Web Form Report Viewer control and SQL Server Reporting Services 2005</title><link>http://blogs.msdn.com/bimusings/archive/2005/11/18/494436.aspx#7722642</link><pubDate>Sat, 16 Feb 2008 00:43:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7722642</guid><dc:creator>kanch_v</dc:creator><description>&lt;p&gt;I forgot to mention that i use NT authentication.&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;
&lt;p&gt;KV&lt;/p&gt;
</description></item><item><title>HTTP status 401: Unauthorized</title><link>http://blogs.msdn.com/bimusings/archive/2005/11/18/494436.aspx#8091130</link><pubDate>Fri, 07 Mar 2008 11:34:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8091130</guid><dc:creator>Mark</dc:creator><description>&lt;p&gt;This example doesn't work with nested master pages. It says:&amp;quot;HTTP status 401: Unauthorized&amp;quot;?&lt;/p&gt;
&lt;p&gt;I am working under Windows XP, SqlServer 2005.&lt;/p&gt;
&lt;p&gt;Help please&lt;/p&gt;
</description></item><item><title>HTTP status 401: Unauthorized</title><link>http://blogs.msdn.com/bimusings/archive/2005/11/18/494436.aspx#8097216</link><pubDate>Fri, 07 Mar 2008 16:20:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8097216</guid><dc:creator>Mark</dc:creator><description>&lt;p&gt;It's ok now, my domain name was wrong.&lt;/p&gt;
&lt;p&gt;Thank you very much for this solution!!!&lt;/p&gt;
</description></item><item><title>  Running ReportViewer Control on Windows 2000 : BCE Solutions</title><link>http://blogs.msdn.com/bimusings/archive/2005/11/18/494436.aspx#8445017</link><pubDate>Thu, 01 May 2008 00:25:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8445017</guid><dc:creator>  Running ReportViewer Control on Windows 2000 : BCE Solutions</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://bcesolutions.com/2008/04/30/running-reportviewer-control-on-windows-2000/"&gt;http://bcesolutions.com/2008/04/30/running-reportviewer-control-on-windows-2000/&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Impersonating another user with the Web Form Report Viewer control and SQL Server Reporting Services 2005</title><link>http://blogs.msdn.com/bimusings/archive/2005/11/18/494436.aspx#9632154</link><pubDate>Wed, 20 May 2009 15:44:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9632154</guid><dc:creator>BS</dc:creator><description>&lt;p&gt;Is there any way to give the current user to the report? I can fix it to some user, but it should return user-specific data and thus send the windows user to the server. It works for local IIS to server Reporting Server, but not for server IIS to server Reporting Server. Everyone has the rights to run the report and it works from the reporting server.&lt;/p&gt;
</description></item><item><title>re: Impersonating another user with the Web Form Report Viewer control and SQL Server Reporting Services 2005</title><link>http://blogs.msdn.com/bimusings/archive/2005/11/18/494436.aspx#9852371</link><pubDate>Wed, 29 Jul 2009 20:53:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9852371</guid><dc:creator>Tom</dc:creator><description>&lt;p&gt;Using info from the support page you linked to, I was able to access the report viewer perfectly when I added this to my web.config&lt;/p&gt;
&lt;p&gt;&amp;lt;identity impersonate=&amp;quot;true&amp;quot; userName=&amp;quot;accountname&amp;quot; password=&amp;quot;password&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt;Using the code &lt;/p&gt;
&lt;p&gt;Label1.Text = System.Security.Principal.WindowsIdentity.GetCurrent().Name;&lt;/p&gt;
&lt;p&gt;I can see I am logged into &amp;lt;machine&amp;gt;\&amp;lt;user&amp;gt; and it passed in all my parameters correctly.&lt;/p&gt;
&lt;p&gt;However, when I tried using your credentials code, the the page crashes when setting parameters and gives the error:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;* The request failed with HTTP status 401: Unauthorized.&lt;/p&gt;
&lt;p&gt;If I comment that out then the report viewer itself gives the same error. Note that with your code it logs me in as &amp;quot;NT AUTHORITY\NETWORK SERVICE&amp;quot; which I have given Browser rights. &lt;/p&gt;
&lt;p&gt;Any clue on what is going wrong here?&lt;/p&gt;
</description></item></channel></rss>