Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ReportViewer in ASP 2.0

Reply
Thread Tools

ReportViewer in ASP 2.0

 
 
DougS
Guest
Posts: n/a
 
      03-22-2006
I'm trying to run a SQL Server Reporting Services report from an ASP.Net 2.0
application.

Try
Me.rptvw1.ProcessingMode = ProcessingMode.Local
Me.rptvw1.ServerReport.ReportServerUrl = New
Uri("http://myserver/ReportServer")
Me.rptvw1.ServerReport.ReportPath = "/Folder1/Report1"
Me.rptvw1.ServerReport.ReportServerCredentials = New
System.Net.NetworkCredential("domain\user", "pw")
Me.rptvw1.ServerReport.Refresh()
Catch ex As Exception
Me.lblError.Text = ex.Message
End Try

I'm getting this exception: Unable to cast object of type
'System.Net.NetworkCredential' to type
'Microsoft.Reporting.WebForms.IReportServerCredent ials'.

Is this the right approach to display a report in an aspx page? I cant find
any code examples anywhere.

Thanks,
DougS


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
asp.net 2.0 ReportViewer Drill-through Report Viewstate problem dean_wilson@teamji.com ASP .Net 0 07-02-2007 03:19 PM
Reportviewer drill-through problem in asp.net 2.0 =?Utf-8?B?VG9tIERhbHNpbWVy?= ASP .Net 0 06-21-2007 08:31 PM
help with asp.net and the reportviewer bernardo.piano@sapo.pt ASP .Net 0 09-28-2006 08:41 PM
ReportViewer en ASP.NET 2.0 gotzonen ASP .Net 1 05-02-2006 11:44 AM
How to add barcode images into ASP.NET ReportViewer - RDLC reports =?Utf-8?B?TmVvZHluYW1pYw==?= ASP .Net 1 11-23-2005 01:36 PM



Advertisments