CrystalDecisions.Shared.CrystalReportsException: No se ha podido cargar el informe
Publicado por Eddy (4 intervenciones) el 22/05/2012 18:04:55
Hi, I hope you can help me, cause I've been searching everywhere and I haven't been able to find the right solution to my problem :(
I'm working with Crystal Reports and ASP Net... I use Crystal Report Viewer to load and show the report. Everything works right as long as I run my project in local, the problem comes when I publish the site on the server and I try to acceed to the report from a client machine... The next error is shown:
I have tried a lot of actions in order to fix this trouble but I couldn't get it... :(
This is how my code looks on visual basic to call the report:
Thanks in advance for any suggestion :)
I'm working with Crystal Reports and ASP Net... I use Crystal Report Viewer to load and show the report. Everything works right as long as I run my project in local, the problem comes when I publish the site on the server and I try to acceed to the report from a client machine... The next error is shown:
1
CrystalDecisions.Shared.CrystalReportsException: No se ha podido cargar el informe. ---> System.Runtime.InteropServices.COMException: Error en archivo temp_15b426bc-96d6-432e-95c7-9205cb9b681f {7F18E590-577A-4623-9F3C-194D045C875F}.rpt: Denegado el acceso al archivo del informe. Es posible que esté abierto en otro programa. en CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options) en CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options) en CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() --- Fin del seguimiento de la pila de la excepción interna --- en CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() en CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob) en CrystalDecisions.CrystalReports.Engine.ReportClass.Load(String reportName, OpenReportMethod openMethod, Int16 parentJob) en CrystalDecisions.CrystalReports.Engine.ReportDocument.EnsureLoadReport() en CrystalDecisions.CrystalReports.Engine.ReportDocument.get_Database() en CrystalDecisions.CrystalReports.Engine.ReportDocument.get_DataSourceConnections() en SICSE.VisorReportesCrystal.ImprimirViaticos()
I have tried a lot of actions in order to fix this trouble but I couldn't get it... :(
This is how my code looks on visual basic to call the report:
1
Private Sub ImprimirViaticos() Try 'instanciar el reporte Dim Rel As New RptViatico() Rel.DataSourceConnections(0).SetConnection("Servidor", "BD", "Usuario", "Password") Rel.ReadRecords() CrystalVisor.ReportSource = Rel Catch ex As Exception Response.Write(ex) End Try End Sub
Thanks in advance for any suggestion :)
Valora esta pregunta


0