Load report failed only occurs when NETWORK SERVICE don't have access to C:
Hi,
My configuration:
Windows Server 2003+SPs
CRRedist2008_x86
The reports works perfect, but after I run the commands bellow, the error: "Load report failed" occurs. To fix I need to give the NETWORK SERVICE read access to C:\ , It's possible to change this access to other diretory?
Tks.
cacls "%systemroot%" /t /e /R "everyone" "CREATOR OWNER" "Power Users" "System" "users"
cacls "%systemroot%" /t /e /g administrators:f "CREATOR OWNER":f everyone:r SYSTEM:f
cacls "c:\autoexec.bat" /E /C /R "EVERYONE" "USERS" "POWER USERS"
cacls "c:\config.sys" /E /C /R "EVERYONE" "USERS" "POWER USERS"
cacls "c:\boot.ini" /E /C /R "EVERYONE" "USERS" "POWER USERS"
cacls "c:\ntldr" /E /C /R "EVERYONE" "USERS" "POWER USERS"
cacls "c:\ntdetect.com" /E /C /R "EVERYONE" "USERS" "POWER USERS"
cacls "c:\autoexec.bat" /T /E /C /G administrators:f
cacls "c:\boot.ini" /T /E /C /G administrators:f
cacls "c:\ntldr" /T /E /C /G administrators:f
cacls "c:\Ntdetect.com" /T /E /C /G administrators:f
copy W2k3.inf %Systemroot%\security\templates
copy hardn2003.sdb %Systemroot%\security\database
secedit /validate %Systemroot%\security\templates\W2k3.inf
%systemroot%\system32\secedit.exe /configure /DB %systemroot%\security\database\hardn2003.sdb /CFG %Systemroot%\security\templates\W2k3.inf /log %systemroot%\security\logs\hardening.log
gpupdate /target:computer /force
gpupdate /target:user /force
cacls "c:\config.sys" /T /E /C /G administrators:f
cacls "c:\autoexec.bat" /T /E /C /G system:f
cacls "c:\boot.ini" /T /E /C /G system:f
cacls "c:\ntldr" /T /E /C /G system:f
cacls "c:\Ntdetect.com" /T /E /C /G system:f
cacls "c:\config.sys" /T /E /C /G system:f
cacls "%systemroot%\system32\cmd.exe" /t /e /R "everyone" "CREATOR OWNER" "Power Users" "System" "users"
cacls "%systemroot%\system32\cmd.exe" /t /e /g administrators:f
cacls "%systemroot%\system32\arp.exe" /t /e /R "everyone" "CREATOR OWNER" "Power Users" "System" "users"
cacls "%systemroot%\system32\arp.exe" /t /e /g administrators:f
cacls "%systemroot%\system32\cacls.exe" /t /e /R "everyone" "CREATOR OWNER" "Power Users" "System" "users"
cacls "%systemroot%\system32\cacls.exe" /t /e /g administrators:f
cacls "%systemroot%\system32\debug.exe" /t /e /R "everyone" "CREATOR OWNER" "Power Users" "System" "users"
cacls "%systemroot%\system32\debug.exe" /t /e /g administrators:f
cacls "%systemroot%\system32\edit.com" /t /e /R "everyone" "CREATOR OWNER" "Power Users" "System" "users"
cacls "%systemroot%\system32\edit.com" /t /e /g administrators:f
cacls "%systemroot%\system32\edlin.exe" /t /e /R "everyone" "CREATOR OWNER" "Power Users" "System" "users"
cacls "%systemroot%\system32\edlin.exe" /t /e /g administrators:f
cacls "%systemroot%\system32\finger.exe" /t /e /R "everyone" "CREATOR OWNER" "Power Users" "System" "users"
cacls "%systemroot%\system32\finger.exe" /t /e /g administrators:f
cacls "%systemroot%\system32\ftp.exe" /t /e /R "everyone" "CREATOR OWNER" "Power Users" "System" "users"
cacls "%systemroot%\system32\ftp.exe" /t /e /g administrators:f
cacls "%systemroot%\system32\tftp.exe" /t /e /R "everyone" "CREATOR OWNER" "Power Users" "System" "users"
cacls "%systemroot%\system32\tftp.exe" /t /e /g administrators:f
cacls "%systemroot%\system32\net.exe" /t /e /R "everyone" "CREATOR OWNER" "Power Users" "System" "users"
cacls "%systemroot%\system32\net.exe" /t /e /g administrators:f
cacls "%systemroot%\system32\nslookup.exe" /t /e /R "everyone" "CREATOR OWNER" "Power Users" "System" "users"
cacls "%systemroot%\system32\nslookup.exe" /t /e /g administrators:f
cacls "%systemroot%\system32\regedit.exe" /t /e /R "everyone" "CREATOR OWNER" "Power Users" "System" "users"
cacls "%systemroot%\system32\regedit.exe" /t /e /g administrators:f
cacls "%systemroot%\system32\regedt32.exe" /t /e /R "everyone" "CREATOR OWNER" "Power Users" "System" "users"
cacls "%systemroot%\system32\regedt32.exe" /t /e /g administrators:f
cacls "%systemroot%\system32\rexec.exe" /t /e /R "everyone" "CREATOR OWNER" "Power Users" "System" "users"
cacls "%systemroot%\system32\rexec.exe" /t /e /g administrators:f
cacls "%systemroot%\system32\rsh.exe" /t /e /R "everyone" "CREATOR OWNER" "Power Users" "System" "users"
cacls "%systemroot%\system32\rsh.exe" /t /e /g administrators:f
cacls "%systemroot%\system32\telnet.exe" /t /e /R "everyone" "CREATOR OWNER" "Power Users" "System" "users"
cacls "%systemroot%\system32\telnet.exe" /t /e /g administrators:f
cacls "%systemroot%\system32\nbtstat.exe" /t /e /R "everyone" "CREATOR OWNER" "Power Users" "System" "users"
cacls "%systemroot%\system32\nbtstat.exe" /t /e /g administrators:f
cacls "%systemroot%\system32\netstat.exe" /t /e /R "everyone" "CREATOR OWNER" "Power Users" "System" "users"
cacls "%systemroot%\system32\netstat.exe" /t /e /g administrators:f
cacls "%systemroot%\system32\net.exe" /t /e /R "everyone" "CREATOR OWNER" "Power Users" "System" "users"
cacls "%systemroot%\system32\net.exe" /t /e /g administrators:f
cacls "%systemroot%\system32\ping.exe" /t /e /R "everyone" "CREATOR OWNER" "Power Users" "System" "users"
cacls "%systemroot%\system32\ping.exe" /t /e /g administrators:f
cacls "%systemroot%\system32\regedt32.exe" /t /e /R "everyone"
cacls "%systemroot%\system32\regedt32.exe" /t /e /g administrators:f
cacls "%systemroot%\system32\route.exe" /t /e /R "everyone" "CREATOR OWNER" "Power Users" "System" "users"
cacls "%systemroot%\system32\route.exe" /t /e /g administrators:f
cacls "%systemroot%\system32\syskey.exe" /t /e /R "everyone" "CREATOR OWNER" "Power Users" "System" "users"
cacls "%systemroot%\system32\syskey.exe" /t /e /g administrators:f
cacls "%systemroot%\system32\tracert.exe" /t /e /R "everyone" "CREATOR OWNER" "Power Users" "System" "users"
cacls "%systemroot%\system32\tracert.exe" /t /e /g administrators:f
cacls "%systemroot%\system32\at.exe" /t /e /R "everyone" "CREATOR OWNER" "Power Users" "System" "users"
cacls "%systemroot%\system32\at.exe" /t /e /g administrators:f
cacls "%systemroot%\system32\pathping.exe" /t /e /R "everyone" "CREATOR OWNER" "Power Users" "System" "users"
cacls "%systemroot%\system32\pathping.exe" /t /e /g administrators:f
cacls "%systemroot%\system32\runonce.exe" /t /e /R "everyone" "CREATOR OWNER" "Power Users" "System" "users"
cacls "%systemroot%\system32\runonce.exe" /t /e /g administrators:f
cacls "%systemroot%\system32\runas.exe" /t /e /R "everyone" "CREATOR OWNER" "Power Users" "System" "users"
cacls "%systemroot%\system32\runas.exe" /t /e /g administrators:f
cacls "%systemroot%\system32\secedit.exe" /t /e /R "everyone" "CREATOR OWNER" "Power Users" "System" "users"
cacls "%systemroot%\system32\secedit.exe" /t /e /g administrators:f
sc config alerter start= disabled
sc config AppMgmt start= disabled
sc config BITS start= disabled
sc config Clipsrv start= disabled
sc config Browser start= disabled
sc config cisvc start= disabled
sc config SharedAccess start= disabled
sc config mnmsrvc start= disabled
sc config fax start= disabled
sc config RemoteRegistry start= disabled
sc config RemoteAccess start= disabled
sc config UPS start= disabled
sc config UtilMan start= disabled
sc config tlntSvr start= disabled
sc config RSVP start= disabled
sc config RasAuto start= disabled
sc config TapiSrv start= disabled
sc config WZCSVC start= disabled
sc config Wmi start= disabled
sc config Messenger start= disabled
sc config PolicyAgent start= disabled
sc config Schedule start= disabled
sc config seclogon start= disabled
sc config ImapiService start= disabled
sc config Dfs start= disabled
sc config PolicyAgent start= disabled
sc config Nla start= disabled
I don't believe that this is configurable, and i believe in other versions that you only needed to give list directory access to make it work.
Similar Messages
-
Load Report failed when opening Report under IIS 5.1
I recently upgraded to Crystal Reports 2008 (12) from Crystal Reports Basic 2008 (10.5). I am using Visual Studio 2008 with the CrystalReportViewer. Now when I run my reports from the website under IIS 5.1 (Windows XP SP3), I get a Load Report Failed. The detailed exception follow:
Error loading report (ConfigureCrystalReports)
CrystalDecisions.Shared.CrystalReportsException: Load report failed. ---> System.Runtime.InteropServices.COMException (0x800001F5): The Report Application Server failed at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options) at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options) at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() --- End of inner exception stack trace --- at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob) at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename) at ncspo.ReportViewer.ConfigureCrystalReports() in D:\Websites\NCSPO\FIS\ReportViewer.aspx.vb:line 43
If I run the report using the ASP.Net Development Server, the reports run fine. It only fails under IIS. From other posts, I understand that i need to grant the Network Service and IIS_WPG group read/write permissions to the windows\temp folder. I have done this for the Network Service, but the IIS_WPG group was not introduced until IIS 6.0. Any ideas on how I can get this working under IIS 5.1?
Here is the code behind page:
Private Sub ConfigureCrystalReports()
Try
rpt = New ReportDocument
Dim strReportFilename As String
If Len(Request.QueryString("ReportFilename")) > 0 Then
strReportFilename = Request.QueryString("ReportFilename")
Else
strReportFilename = System.Configuration.ConfigurationManager.AppSettings("cr404Page")
End If
Dim strReportPath As String = System.Configuration.ConfigurationManager.AppSettings("ReportPath")
Dim strReportFilePath As String = strReportPath & strReportFilename
Dim strReportFilePath_Full As String = Server.MapPath(strReportFilePath)
rpt.Load(strReportFilePath_Full) <--- Exception occurs on this line
Catch ex As Exception
lblStatus.Text = "Error loading report (ConfigureCrystalReports)"
lblStatus.Text &= "<BR>" & ex.ToString()
ncspo.clsMisc.LogError(ex, Me)
End Try
End SubAm I correct in reading the following 2 documents that IIS 5.1 is not supported?
If you check this document. It shows IIS6 and 7 no support on 5. See page 6
[https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f05523e4-35c4-2b10-2c89-9fcf64b0dd22]
This document also on page 5
[https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50a87366-da1d-2b10-e1b4-a37ab37a2dea]
Thanks. -
Environment:
Win 7 SP 1
Visual Studio Pro 2012 Update 4
Crystal Reports for Visual Studios Service Pack 10 (13.0.10.1385)
Report created in Crystal Reports XI Release 2 (11.5.8.826)
Targeting x86 .NET 4.0
Scenario:
We have a program that runs and creates a large number of reports before the process is ended. When running after many hours we'd get a Load report failed/Not enough memory of operation exception. I kept removing code and found i could reproduce just using the report.Load call. I simplified the report to a completely blank report to make sure it was nothing specific to a report I was loading. (Opened Crystal Reports XI Release 2, Save As, "Blank.rpt".). I then created, loaded, and disposed of this report in a loop. I was able to cause the same exception after 32,764 iterations on my machine. I also tried using .NET 3.5 same result. I added a counter to our main program and it also went through 32,764 report loads before the same exception was thrown. Main program uses 15 or so different reports with a variable number of subreports in each.
Sample Code to illustrate the problem:
I did this as a WinForms project since our main program is using winforms.
References added:
CrystalDecisions.CrystalReports.Engine
CrystalDecisions.ReportSource
CrystalDecisions.Shared
CrystalDecisions.Windows.Forms
using System;
using System.Windows.Forms;
using CrystalDecisions.CrystalReports.Engine;
namespace CrystalTest
public partial class Form1 : Form
public Form1()
InitializeComponent();
int i = 0;
try
while (true)
i++;
ReportDocument report = new ReportDocument();
report.Load("Blank.rpt");
report.Close();
report.Dispose();
catch(Exception ex)
MessageBox.Show(i.ToString() + ex.Message);
Exception:
CrystalDecisions.Shared.CrystalReportsException: Load report failed. ---> System.Runtime.InteropServices.COMException (0x80041004):
Not enough memory for operation.
at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options)
at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options)
at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
--- End of inner exception stack trace ---
at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename)
at CrystalTest.Form1..ctor() in c:\Test Projects\CrystalTest\CrystalTest\Form1.cs:line 27int = Int32. No it's not the "counter" that's causing the problem. The max size of an int32 is far far larger than 32764.
I am disposing and cleaning up the datasets in the main app. That is why I didn't include them in this test; they aren't relevant.
I'm unsure why this test program is completely irrelevant. It throws the same exception, at the same count, as the main program. It does it in substantially less lines of code than our main program. I spent days running long tests to figure out exactly what I needed to make the problem appear so I could post a clean and precise post on these forums. I then created the test program to illustrate that.
The "real" code as I said does stuff in sections and in a certain order.
For each report I need to export based on rows in a table
1. Creates a new Report Document
2. Loads the report document with the report
3. Creates a dataset of the data to display
4. Calls SetDataSource
5. Calls Report.ExportToDisk
6. Disposes DataSets
7. Closes/Disposes Reports
To help isolate the problem I first took out the export to disk part (Step 5). The problem still occurred. I then took out everything related to our data. (Step 3, Step 4, Step 6). The problem still occurred. And yes I commented out this code in our main real program. This left me with:
1. Creates a new Report Document
2. Loads the report document with the report
7. Closes/Disposes Reports
At this point i had to prove it was not dependent on the report. This makes sure it's not a database connection, or pulling too much data into the report. The most efficient test for this is a blank report.
So my order of operations becomes...
1. Creates a new Report Document
2. Loads the report document with a blank report
7. Closes/Disposes Reports
So you'll see this is exactly why I wrote this test the way that I did.
I've had a run where it error on iteration 32761. My last runs have errored on 32764. I have had many runs over many weeks that all error with the same exception.
There are no temp files left behind, With a test running you can see the temp files being added but they are immediately removed. -
Load Report fail when use impersonate="true" in dotnet config
We have VS2005 and use Crystal 11.5. Our crystal report runs fine. When we set <identity impersonate="true" userName=".\user id" password="user password" />
in our Web.Config file, the report show error "Load report fail".
Could someone tells me why?
Thanks
TonyHi Tony,
Please check you are using impersonation in same way
following line below under the <system.web > tag , as illustrated below
<system.web>
<identity impersonate="true"/>
<authtorization>
<allow users="?"/><authtorization/>
This may be permission issue. Domain users need access to "C\Windows\Temp directory" and to the report directory try with giving permission .
Hope this helps!!
Regards,
Shweta -
Load Report Failed - Server Only
Hello,
I have an asp.net C# application hosted on an Amazon EC2 server. I am trying to select a report using:
ReportDocument rep;
protected void Page_Load(object sender, EventArgs e)
string reportPath = Server.MapPath((string)Utils.GetSessionNavigator(this).GetDataFromCurrentPage(PageParams.Reports.Report));
if (!IsPostBack)
rep = new ReportDocument();
try
if (!File.Exists(reportPath))
Response.Write("The specified report does not exist \n");
rep.Load(reportPath);
//LoadReport(rep);
rep.SetDatabaseLogon("******", "******");
this.CrystalReportViewer1.ToolPanelView = CrystalDecisions.Web.ToolPanelViewType.None;
this.CrystalReportViewer1.HasToggleGroupTreeButton = false;
this.CrystalReportViewer1.ReportSource = rep;
catch (Exception ex)
Response.Write(ex.Message);
private void Page_Unload(object sender, EventArgs e)
rep.Close();
rep.Dispose();
The report path is pointing towards my folder containing the reports, and the relevant file is being found with File.Exists, however upon using rep.Load, the exception message 'Load Report Failed" is being posted.
I have installed the correct runtimes as I have another application running on the same server, and that isn't having the same issues. Perhaps the reportPath is different but I am not sure.
Any advice would be greatly appreciated.
Thank you.Glad that it worked.
The cause is like a niddle in a haystack...:. I did remember seeing something like this and have a KB created for it but it is not available on SCN yet.
1245654 - A Crystal Reports.NET web application deployed using the Visual Studio 'Publish' option, throws "Load Report Failed" error.
Here is the solution from KB. (Works for VS 2010 too)
Compile the web application in Visual Studio.
On completion of the build as success, go to Build -> Publish Web Site.
In Publish Web Site window, set the target location.
Check the Allow this precompiled site to be updatable checkbox (by default it is unchecked).
Check the Use fixed naming and single page assemblies checkbox (by default it is unchecked).
Click OK to proceed ahead and publish the web application.
Make sure that the Crystal reports in server machine are of the same size as the one in development machine, to ensure.
But I still copy the CR reports manually.. but thats just my way.
Thanks,
Bhushan -
Load report failed(crystal report) in client pc.
Hi,
we are getting error in crystal report
1.Load report failed.See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
Exception Text **************
CrystalDecisions.Shared.CrystalReportsException: Load report failed. ---> System.Runtime.InteropServices.COMException (0x80004005): The system cannot find the path specified.
at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options)
at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options)
at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
--- End of inner exception stack trace ---
at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.EnsureLoadReport()
at CrystalDecisions.CrystalReports.Engine.ReportDocument.get_Database()
at SAP_CR.MyForms.frmReportViewer.ConfigureCrystalReports()
at SAP_CR.MyForms.frmReportViewer.frmReportViewer_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
SAP_CR
Assembly Version: 2.0.0.6
Win32 Version: 2.0.0.6
CodeBase: file:///C:/Program%20Files/SAP/SAP%20Business%20One/AddOns/SAP_CR/SAP_CR.exe
Interop.SAPbouiCOM
Assembly Version: 8.0.0.0
Win32 Version: 8.0.0.0
CodeBase: file:///C:/Program%20Files/SAP/SAP%20Business%20One/AddOns/SAP_CR/Interop.SAPbouiCOM.DLL
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
CustomMarshalers
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/CustomMarshalers/2.0.0.0__b03f5f7f11d50a3a/CustomMarshalers.dll
Interop.CR_Crypto
Assembly Version: 6.0.0.0
Win32 Version: 6.0.0.0
CodeBase: file:///C:/Program%20Files/SAP/SAP%20Business%20One/AddOns/SAP_CR/Interop.CR_Crypto.DLL
System.Data
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
System.Transactions
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
System.EnterpriseServices
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
CrystalDecisions.Windows.Forms
Assembly Version: 12.0.2000.0
Win32 Version: 12.0.2000.683
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.Windows.Forms/12.0.2000.0__692fbea5521e1304/CrystalDecisions.Windows.Forms.dll
CrystalDecisions.Shared
Assembly Version: 12.0.2000.0
Win32 Version: 12.0.2000.683
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.Shared/12.0.2000.0__692fbea5521e1304/CrystalDecisions.Shared.dll
CrystalDecisions.ReportSource
Assembly Version: 12.0.2000.0
Win32 Version: 12.0.2000.683
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.ReportSource/12.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportSource.dll
CrystalDecisions.CrystalReports.Engine
Assembly Version: 12.0.2000.0
Win32 Version: 12.0.2000.683
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.CrystalReports.Engine/12.0.2000.0__692fbea5521e1304/CrystalDecisions.CrystalReports.Engine.dll
System.Web
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll
CrystalDecisions.ReportAppServer.CommLayer
Assembly Version: 12.0.1100.0
Win32 Version: 12.0.1100.683
CodeBase: file:///C:/WINDOWS/assembly/GAC/CrystalDecisions.ReportAppServer.CommLayer/12.0.1100.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.CommLayer.dll
CrystalDecisions.ReportAppServer.ClientDoc
Assembly Version: 12.0.1100.0
Win32 Version: 12.0.1100.683
CodeBase: file:///C:/WINDOWS/assembly/GAC/CrystalDecisions.ReportAppServer.ClientDoc/12.0.1100.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.ClientDoc.dll
CrystalDecisions.ReportAppServer.DataSetConversion
Assembly Version: 12.0.2000.0
Win32 Version: 12.0.2000.683
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.DataSetConversion/12.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.DataSetConversion.dll
CrystalDecisions.ReportAppServer.DataDefModel
Assembly Version: 12.0.1100.0
Win32 Version: 12.0.1100.683
CodeBase: file:///C:/WINDOWS/assembly/GAC/CrystalDecisions.ReportAppServer.DataDefModel/12.0.1100.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.DataDefModel.dll
CrystalDecisions.ReportAppServer.Controllers
Assembly Version: 12.0.1100.0
Win32 Version: 12.0.1100.683
CodeBase: file:///C:/WINDOWS/assembly/GAC/CrystalDecisions.ReportAppServer.Controllers/12.0.1100.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.Controllers.dll
CrystalDecisions.ReportAppServer.CubeDefModel
Assembly Version: 12.0.1100.0
Win32 Version: 12.0.1100.683
CodeBase: file:///C:/WINDOWS/assembly/GAC/CrystalDecisions.ReportAppServer.CubeDefModel/12.0.1100.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.CubeDefModel.dll
CrystalDecisions.ReportAppServer.ReportDefModel
Assembly Version: 12.0.1100.0
Win32 Version: 12.0.1100.683
CodeBase: file:///C:/WINDOWS/assembly/GAC/CrystalDecisions.ReportAppServer.ReportDefModel/12.0.1100.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.ReportDefModel.dll
BusinessObjects.Licensing.KeycodeDecoder
Assembly Version: 12.0.1100.0
Win32 Version: 12.0.0.683
CodeBase: file:///C:/WINDOWS/assembly/GAC/BusinessObjects.Licensing.KeycodeDecoder/12.0.1100.0__692fbea5521e1304/BusinessObjects.Licensing.KeycodeDecoder.dll
CrystalDecisions.ReportAppServer.XmlSerialize
Assembly Version: 12.0.1100.0
Win32 Version: 12.0.1100.683
CodeBase: file:///C:/WINDOWS/assembly/GAC/CrystalDecisions.ReportAppServer.XmlSerialize/12.0.1100.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.XmlSerialize.dll
System.Web.Services
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Web.Services/2.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll
CrystalDecisions.Enterprise.Framework
Assembly Version: 12.0.1100.0
Win32 Version: 12.0.0.683
CodeBase: file:///C:/WINDOWS/assembly/GAC/CrystalDecisions.Enterprise.Framework/12.0.1100.0__692fbea5521e1304/CrystalDecisions.Enterprise.Framework.dll
CrystalDecisions.Enterprise.InfoStore
Assembly Version: 12.0.1100.0
Win32 Version: 12.0.0.683
CodeBase: file:///C:/WINDOWS/assembly/GAC/CrystalDecisions.Enterprise.InfoStore/12.0.1100.0__692fbea5521e1304/CrystalDecisions.Enterprise.InfoStore.dll
CrystalDecisions.Enterprise.Viewing.ReportSource
Assembly Version: 12.0.1100.0
Win32 Version: 12.0.1100.683
CodeBase: file:///C:/WINDOWS/assembly/GAC/CrystalDecisions.Enterprise.Viewing.ReportSource/12.0.1100.0__692fbea5521e1304/CrystalDecisions.Enterprise.Viewing.ReportSource.dll
CrystalDecisions.Web
Assembly Version: 12.0.2000.0
Win32 Version: 12.0.2000.683
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.Web/12.0.2000.0__692fbea5521e1304/CrystalDecisions.Web.dll
CrystalDecisions.ReportAppServer.Prompting
Assembly Version: 12.0.1100.0
Win32 Version: 12.0.1100.683
CodeBase: file:///C:/WINDOWS/assembly/GAC/CrystalDecisions.ReportAppServer.Prompting/12.0.1100.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.Prompting.dll
Accessibility
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
2.Error:could not load file or assemble crystal decisions.windows.forms,version=12.0.2000.0,culture=natural,public key token=692fbea5521ea1304' or one of it's dependencies.the system cannot find the file specified please help me solve this problem.some client pc there is no problem we installed all related to Crystal reports and merge modules and 2.8 managed files.
regds,
sampath.Hi Sampath,
did you have this error only on clients pc or also on the server when you launch the report from Sab Business One? If only on clients did it occur on all clients?
Iris -
Intermittent exception - Load Report Failed
Hi, I am new to the forums, this does kinda involve .Net but not be a simple .Net issue so I posted here.
I have been using Crystal Reports 10 for a while now, bolting it into web pages and never had issues but I have come across 2 lately that have me stumped. (I will do a different post for the other one)
The problem is that INTERMIITANTLY I get issues in the production environment with a Load Report Failed exception. The main user with thi s problem says that it will do it late in the day and then all the way up until she goes home. Then in the morning it will work just fine. I have also hit the same issue on my pc in testing. However when I try to duplicate this in debug mode it ALWAYS works!
One time I just republished and it fixed it for about a week or so then it started again.
At first I thought it was our SQL server and some kind of connection or load issue because it occurs in this chunk of code - where it sets the login parameters
TableLogOnInfos myTableLogOnInfos = crv.LogOnInfo;
foreach (TableLogOnInfo myTableLogOnInfo in myTableLogOnInfos)
myTableLogOnInfo.ConnectionInfo = myConnectionInfo;
But I have a whole bunch of sites which use the same backend class and the same code and they work just fine even in this time range.
I am getting a new SQL server soon so I will see for sure but I dont think that is the issue.
No matter what I do I cant recreate this in debug mode to step thru the code and find exactly what line is causing the issue. My SQL performance logs shows no issues at these times. (it is under heavy load hence the new one but nothing different during this time frame)
I also ruled out computer issues because it did the same thing in the production environment on my pc too.
Anyone got any ideas?Darn.. I wish someone had come up with an answer. We're experiencing a similar issue. As soon as we create a ReportDocument object and attempt to load a report, we receive an error. But not always! Most of the time, it works fine... then suddenly someone gets the error.
Code:
ReportDocument rptDocument = new ReportDocument();
rptDocument.Load(...path to report...);
Error:
Load report failed.
CrystalDecisions.CrystalReports.Engine
The system cannot find the path specified.
at
CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename,
OpenReportMethod.openMethod, Int16 parentJob)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename)
I have so far been unable to replicate the error in development... it only seems to happen in production. Guess we'll have to try to log the error as soon as it happens.. maybe the path to the report is getting messed up somehow.
If anyone has any ideas why it would only happen occasionally, please let me know! Thanks. -
"Load report failed" error with VS 2010 upgrade
I have a report system that has been running nicely for a few years. Today, I upgraded it to use the latest Crystal from Visual Studio 2010. I installed the .net framework 4.0, installed the Crystal runtime (64 bit), and updated the web site with slightly revised code to use the new stuff. Now, reports that worked yesterday fail with the 'load report failed' error. A little research shows that the file name passed to the report engine is correct (and is the same as it has always been). I see that rpt files are being created in windows\temp each time a report is requested, so it seems that the report file is being found.
The code change I made was to use the new ExportToHttpResponse method.
When deployed in development and test environments (both 32 bit). this worked perfectly. In production, however, no such luck. I wonder if I have missed a setting somewhere, or if there is something extra to do on a 64 bit server?
Does anyone have a clue for me?
More info - I found the following error in the event log:
The keycode assembly, BusinessObjects.Licensing.KeycodeDecoder.dll, cannot be loaded.
... which I thought was interesting until I noticed the same error occurs on my dev machine, where the reports are working.
I also used process monitor to check the dlls loaded on the production box, and they all seem to be the latest version. I tried using the 'modules' utility on my production box, but it did not pick up the Crystal stuff (or any of my web stuff - I wonder if it is a 32-bit only tool?).
Edited by: Ray Novak on Dec 29, 2010 5:12 PMI just tried this again with the same result. I uninstalled the previous Crystal, deleted all the old folders and reg keys I could find, then installed the new 64 bit redist package. I asigned permissions to the SAP reg key tree. I ended up with the same result: "Invalid file name". There were new files created in the temp folder for each report request, so I can tell that my.rpt files are being found.
I used process monitor to see what was happening, and here are the results that seem interesting:
RegOpenKey HKU\.DEFAULT\Software\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0 NAME NOT FOUND
RegOpenKey HKU\.DEFAULT\Software\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0 NAME NOT FOUND
IRP_MJ_CREATE C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win64_x64\secSSO.dll.2.Config NAME NOT FOUND
FASTIO_NETWORK_QUERY_OPEN C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win64_x64\SmAgentAPI.dll NAME NOT FOUND
Since it seemed to be trying to create files in the \win64_x64 folder, I allowed the process full access, but it didn't help. It was also looking for SmAgentAPI.dll which does not seem to exist on my system. -
Error in report generation-Load report failed
I have installed crystal reports for VS2005 runtime in my live environment.When i try to load the report file from a .Net page i am getting the error'Error in Report generation-Load report failed'.
This works fine in development and testing but when moved to production we are having issues.
I believe i have a workaround i.e i need to open the rpt in a VS 2005 environment and re-write the connection string again.This fix had worked in development and testing when we had the same issue.
But not sure if this is a known issue with crystal reports and if so do we have any hot fixes for the same.
Please help.Hi Don,
The reason why i posted the item on 'data Connectivity issues' is because i suspect the problem is with the connection string.Though i had provided the correct connection string,re-writing the connection string with the same info might help to fix the issue with loading the report.
Does it mean that there is a problem in the connectivity?
I have a risk here that i cant re-write the connection string..i.e to open the RPT file in VS2005 and bind it.The production web server & database server sits in a third party environment and it is not in the company network.So i cant connect to this server to re-write from any other severs in the network.
Is there any fix which can applied to the server to get this issue resolved?
Cheers
Nithya. -
Crystal Reports with VS2005 - Load Report failed Error....
Post Author: rajeshvijayan
CA Forum: Older Products
Hi,
I am running Crystal Reports viewer on IIS6.0 and windows server 2003, which was installed using the redistributable package that comes along with Visual Studio 2005. We open these reports through a web based application 1 which is run on a different application pool on IIS. We have about 3 to 4 other web applications runing on the same IIS. All the other Web applications are working fine.
This web application 1 has 2 parts - one is the normal data display quiries from the back end SQL server 2005 and the other is the Crystal Reports which also quires data from SQL Server 2005. At times i find that these reports all of them throw an error - Load Report Failed. At the same time the Part 1 of this application does work fine in showing the data that is queried from the database. Moreover at this stage, I dont find any errors in the Event viewer. If i restart this application pool alone, the reports starts working fine again.
I had gone through a few of the news groups and have made all the necessary permission related changes like the TEMP Folder, ASP.NET temporary folder, the folder in which the crystal reports is placed etc but still the same error throws up after some point in time. Wanted to know if there is any special configuration required on the Application pool when it comes to Crystal Reports. We have bout 10 to 15 users using this application for testing and it only throws this error at times and not always.
Looking forward to any kind of solution from your side.
Regards
RajeshPost Author: mikeeby
CA Forum: Deployment
Yes I too have been fighting this problem. I was using a XML Data file and schema file for my u201Cdatabase templateu201D in the report. I would then run my query using the .NET SQLClient then fill the report with my dataset table using the SetDataSource method from the ReportDocument object.
I tried both embedded and runtime loaded reports all worked fine on my development machine but would NOT work on my production server. I use all the server installs, played with user rights, registering DLLu2019s still nothing. I went as far as creating a winform app to fix the problem. I then had exactly the same problem, I was catching the error and it originated from the viewer control in both winform and webforms.
What finally worked for me was to attach to the database using OLE DB instead of XML/schema (xml/xsd) datasource then pasting my SQL Query into the database connection command this gave me the fields to build the report. I actually used the u201CSet Database Locationu201D Dialog in Crystal Reports so I didnu2019t have to redesign my report. This dialog works very weird but I managed to figure it out. I then used an embedded report and all seem to be well. I think there is a problem with the Crystal Reports .NET Server Install and Merge Modules used with .NET with XML files, but I cannot be sure, all I know is this worked for me.
I am concerned that if my database server is moved or renamed my report might break because the server connection is embedded in the report, but for right now it is working. I thought that was the reason for using the xsd file was to eliminate the dependence on a server connection in the report.
Good luck and I hope this helps you fix your problem too. If it does please let me know I have see so many reports of people asking questions about this problem and it seems like most are left hanging.
Mike -
"Load report failed" after upgrading to Crystal Report for VS 2010
I switched to Visual Studio 2010 few months ago. Today, I needed to update my Crystal Report reports, so I installed the Crystal Report for Visual Studio 2010 on my local server. I updated my reports and it works fine on my local server.
On my remote server, I installed the Crystal Report runtime engine for Framework 4.0 (note that my project use the framework 3.5) and published my project. But now I got the following error when I want to create a report "Load report failed". I double-checked the path of my report and its permissions (note that it was working before the update).
Am I missing a step ?
Thanks for your help.
Edited by: David1111_ on Mar 1, 2011 6:08 PM
Edited by: David1111_ on Mar 1, 2011 6:09 PMGoogling 'FILE LOCKED WITH ONLY READERS' I came up with the following:
http://forum.sysinternals.com/topic21378.html
So, no, that does not appear to be the issue.
However my assertion - given that the correct dlls are loading - is still that either the report is not there (do you see it loaded in Process Monitor?) or the process has no access to either the actual rpt or the temp files that the print engine creates. Those really are the only reasons for report load errors.
This being a web app, try a simple win app - as a test. All you need is the viewer and CrystalreportViewer1.ReportSource = <path to report> (use a saved data report). Compile, throw the exe on the server. Run. What happens there?
- Ludek -
Load Report Failed error sporadically shows up
Hi all,
I have written an asp.net web site (CR2008 sp2.5, .net3.5, VS2008, vb.net running on winServ2003 hitting an Oracle 10g database) that does nothing but dish out reports for users. I built in the asp.net member/role security, which works fine, and different sections have a "frmReportViewer.aspx" file that has a crystal report viewer control in it.
Based on a querystring parameter, the report will load the correct rpt to the control on the page.
here's the problem.: sometimes when loading a report, it instantly comes back with "LOAD REPORT FAILED". Sometimes, you can close the window, click the link again, and it will work fine. Sometimes, if the report does load, then if i try to drill down into a group, it will tell me "no valid report source is available" in a little ajax-style dialog box in the report.
My main question is....why does this work sometimes? this instability will make this project go down the tubes (along with my job perhaps)....I showed my company what CAN be done, now i need to make it RUN LIKE IT SHOULD!
THANKS IN ADVANCE!
GEORGE
Edited by: george hardy on Mar 25, 2010 7:58 PMMake sure you are disposing and closing the report object;
repdoc.close
repdoc.dispose
once you are done with it.
Also, search the kbase for the error:
https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_ossnotes&query=&adv=true
Kbases / Notes 1218766, 1217643 would be a sampling of what you'll find there.
From your description, it is not clear if this occurs under heavier loads. If it is, increasing the allowed print job count may help. For more details see [this|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f053713e-3e3d-2c10-2a81-f79259e54023] article.
Ludek
Follow us on Twitter http://twitter.com/SAPCRNetSup -
'Load report failed' msg reported by CrystalDecisions.CrystalReports.Engine
Dear member,
We are using Crystal Report viewer (Version 11.5) from our Web based product on Windows Server 2003.
Sometime when we run the report generating application we get the error message 'Load report failed'.
So far, we don't find any problem in our product.
Has someone experienced a similar problem?
How did you solve the issue?
Thanks and best regards,
Makoto
Below are the error messages detail logged on event logs.
Event Type: Error
Event Source: AvantGard eTreasury
Event Category: None
Event ID: 140
Date: 4/02/2011
Time: 2:21:31 PM
User: N/A
Computer: JP0010SWFIN41
Description:
The description for Event ID ( 140 ) in Source ( AvantGard eTreasury ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: Source: CrystalDecisions.CrystalReports.Engine
Target: EnsureDocumentIsOpened
Function: .Initialise
Message: Load report failed..
Event Type: Error
Event Source: AvantGard eTreasury
Event Category: None
Event ID: 140
Date: 4/02/2011
Time: 2:14:18 PM
User: N/A
Computer: JP0010SWFIN41
Description:
The description for Event ID ( 140 ) in Source ( AvantGard eTreasury ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: Source: CrystalDecisions.CrystalReports.Engine
Target: PEOpenEngineEx
Function: .Initialise
Message: Attempted to read or write protected memory. This is often an indication that other memory is corrupt..Make sure you are closing and disposing of the report object once you are finished with them.
What Service Pack are you on?
Thank you
Don -
Load report failed vs2005 web application
Post Author: haz
CA Forum: Crystal Reports
Hi,
I am running Crystal Reports viewer on IIS6.0 and windows server 2003, which was installed using the redistributable package that comes along with Visual Studio 2005. We open these reports through a web based application 1 which is run on a different application pool on IIS.
This web application 1 has 2 parts - one is the normal data display quiries from the back end SQL server 2005 and the other is the Crystal Reports which also quires data from Oracle. At times i find that these reports all of them throw an error - Load Report Failed. At the same time the Part 1 of this application does work fine in showing the data that is queried from the database. Moreover at this stage, I dont find any errors in the Event viewer. If i restart this application pool alone, the reports starts working fine again.
I had gone through a few of the news groups and have made all the necessary permission related changes like the TEMP Folder, ASP.NET temporary folder, the folder in which the crystal reports is placed etc but still the same error throws up after some point in time. Wanted to know if there is any special configuration required on the Application pool when it comes to Crystal Reports. We have bout 10 to 15 users using this application for testing and it only throws this error at times and not always.
Looking forward to any kind of solution from your side.
Regards
HazAnd finally the stack trace. Sorry for the length of these posts.
[COMException (0x800001f5): The Report Application Server failed]
CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options) +0
CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options) +126
CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +575
[CrystalReportsException: Load report failed.]
CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +646
CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob) +1374
CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename) +169
Report_Viewer_Crystal_CrystalView.ConfigureCrystalReports() in c:\Inetpub\wwwroot\Report Viewer\Crystal\CrystalView.aspx.cs:49
Report_Viewer_Crystal_CrystalView.Page_Init(Object sender, EventArgs e) in c:\Inetpub\wwwroot\Report Viewer\Crystal\CrystalView.aspx.cs:33
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +33
System.Web.UI.Control.OnInit(EventArgs e) +99
System.Web.UI.Page.OnInit(EventArgs e) +9
System.Web.UI.Control.InitRecursive(Control namingContainer) +321
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +834 -
Load report failed Access is denied ErrorCode -2147467259
We've developed an ASP application with several reports that access SQL Server data.
I getting this error:
Load report failed Access is denied ErrorCode -2147467259
only on my development machine.
I've checked every permission on every folder I can think of and I'm out of ideas.
BTW, the reports are working just fine on the Webserver. This problem is only occuring on my local machine.
SandraThis is the line where I get the exception error
(Request.PhysicalApplicationPath & "MultiGeneral.rpt")
'General Report
crReportDocument = New ReportDocument
Dim i As Integer 'TEMP
i = crReportDocument.FileName.Length 'TEMP
crReportDocument.Load(Request.PhysicalApplicationPath & "MultiGeneral.rpt")
(Request.PhysicalApplicationPath & "Robots.txt")
crReportDocument.SetDatabaseLogon("intake", "password")
If IsDBNull(Session.Item("ClientNumber")) Then
crReportDocument.SetParameterValue("ClientNum", "")
Else
crReportDocument.SetParameterValue("ClientNum", Session.Item("ClientNumber"))
End If
If IsDBNull(Session.Item("CaseNumber")) Then
crReportDocument.SetParameterValue("CaseNum", "")
Else
crReportDocument.SetParameterValue("CaseNum", Session.Item("CaseNumber"))
End If
crReportDocument.SetParameterValue("Followup", "0")
crReportDocument.SetParameterValue("OrgName", "Albuquerque Metro Central Intake")
'mfs crReportDocument.SetParameterValue("PrintCompScores", True)
crDiskFileDestinationOptions = New DiskFileDestinationOptions
Fname = "c:\exports\" & Session.SessionID.ToString & "_ASI1General.pdf"
crExportOptions = crReportDocument.ExportOptions
With crExportOptions
.DestinationOptions = crDiskFileDestinationOptions
.ExportDestinationType = ExportDestinationType.DiskFile
.ExportFormatType = ExportFormatType.PortableDocFormat
End With
crDiskFileDestinationOptions.DiskFileName = Fname
crReportDocument.Export()
crReportDocument.Dispose()
Maybe you are looking for
-
How to find out the source of an event fired by button in a table in WD?
Hi experts, I'm new to Web Dynpro and I need to know how to find out the source of an event (IWDCustomEvent) fired by a button in a table? I need to know which one is the clicked button (on which row)? Help will be appreciated Regards
-
No install error... but it's not in PPT
Hey there, I have Windows Vista Home (SP1) and Office 2003. I have installed Presenter on this machine before. I uninstalled it this morning to test something out, and now I can not reinstall it. I have tried un- and re-installing multiple times (wit
-
Column Level Security Using VPD under oracle 11g
Hi I am using an example from Oracle Database 10g: Advance Security -- Virtual Private Databases 1. The Application Context -- that sets the session environment for the use is ok. 2. The Logon Trigger that executes the above is ok. It had been tested
-
How to know Entity Names.
I need to know at runtime the names of all entitites in a BC4J project in order to do some initializations. I didn't find any way to obtain that information. Could someone suggest the better way to do that ? Tks Tullio
-
IPhone 4s won't sync with macbook pro OS 10.7.5
I'm Duane, and I'm frustrated. My wife recently upgraded from iPhone 4s to 5s and gave me her 4s. It used to sync ical very well until I purchased iCloud space. I've deleted iCloud, but when I try to sync iPhone and ical (onMac Book Pro) I get