Quantcast
Channel: SCN : Discussion List - SAP Crystal Reports, version for Visual Studio
Viewing all articles
Browse latest Browse all 3636

Getting an 80070005 Access is denied error

$
0
0

I get a constant "80070005 Access is denied" error when attempting to deploy a report to the production server.

 

My report is in a subfolder named Reports, and is being called by a page within that folder named UsersReport.aspx. The report itself is named rptUsers.rpt. Its Build Action is set to none. I have copied the report to the server.

 

Everything runs fine on the local machine. It also ran properly on a local 32 bit Windows XP Pro box.

 

Here's the code:

 

Imports CrystalDecisions.CrystalReports.Engine
Imports CrystalDecisions.Shared

Public Class UsersReport
     Inherits System.Web.UI.Page     Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load          Dim reportPath As String = (Server.MapPath("~\Reports\rptUsers.rpt"))        Dim rpt As New ReportDocument        rpt.Load(reportPath)        Dim connectionInfo As New ConnectionInfo()          With connectionInfo               .ServerName = "servername"               .DatabaseName = "database"               .UserID = "username"               .Password = "password"          End With          For Each table In rpt.Database.Tables               Dim tableLogonInfo As TableLogOnInfo = table.LogOnInfo               tableLogonInfo.ConnectionInfo = connectionInfo               table.ApplyLogonInfo(tableLogonInfo)          Next          crViewer.ReportSource = rpt     End Sub

End Class

 

Edited by: Ludek Uher on Jan 24, 2011 2:27 PM


Viewing all articles
Browse latest Browse all 3636

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>