Hi,

I have a Crystal Report that dynamically loads a report and passes on parameters. On our local network it works fine one different servers.
Now I've installed it on a clients server, and it doesn't work anymore.
This is the code I use:
VB Code:
  1. Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
  2.         Try
  3.             If Request.QueryString.Count > 1 Then
  4.                 'Declareren variabelen
  5.                 Dim i As Integer
  6.                 Dim pfFields As ParameterFields = New ParameterFields()
  7.  
  8.                 'toevoegen parameters
  9.                 For i = 1 To Request.QueryString.Count - 1
  10.                     AddParameter("@" & (Request.QueryString.Keys(i).ToUpper), Request.QueryString(i), pfFields)
  11.                 Next
  12.  
  13.                 crvCrystalReport.ParameterFieldInfo = pfFields
  14.                 CrystalReportSource.ReportDocument.Load("C:\Inetpub\wwwroot\rapport\" & Request.QueryString(0))
  15.                 CrystalReportSource.ReportDocument.SetDatabaseLogon("sa", "password", "SERVER", "Database")
  16.                
  17.                 crvCrystalReport.ReportSource = CrystalReportSource
  18.  
  19.             End If
  20.         Catch ex As Exception
  21.             Response.Write(ex.Message)
  22.             Response.Write(ex.InnerException.ToString())
  23.  
  24.         End Try
  25.  
  26.  
  27.  
  28.     End Sub
AddParameter is a function that adds the paramater to the collection.

This works fine on our own servers.
Now I've placed it at the clients server, changed the login data, and now I get these errors:
Code:
Load report failed.System.Runtime.InteropServices.COMException (0x80004005): Access is denied. at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options) at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options) at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
Anyone know how to fix this?