Posted on: 5/16/2011 1:53:27 AM | Views : 464

I took sample code to implement the IReportServerCredentials to send the login information to retrieve a report remotely but for some reason the implementation is error prone.
 
 
Imports System.Net.NetworkCredential Imports System.Net Imports Microsoft.Reporting.WebForms Imports System.Security.Principal Partial Class _Default Inherits System.Web.UI.Page Protected Sub Page_Init(ByVal sender As Object, _ ByVal e As System.EventArgs) _ Handles Me.Init ReportViewer1.ServerReport.ReportServerCredentials = _ New ReportServerNetworkCredentials End Sub End Class <Serializable()> _ Public NotInheritable Class ReportServerNetworkCredentials Implements IReportServerCredentials #Region "IReportServerCredentials Members" ''' <summary> ''' Specifies the user to impersonate when connecting to a report server. ''' </summary& ...

Go to the complete details ...