Tôi nhận được lỗi "báo cáo tải không thành công" trên máy chủ, nó chạy mà không có lỗi trên máy chủ cục bộ. Tôi đang sử dụng VS 2008 với .Net 3.5.Báo cáo Crystal "Tải báo cáo không thành công" lỗi chạy báo cáo trên máy chủ
Đây là mã của tôi:
ReportDocument reportDocument = new ReportDocument();
String filePath = @"C:\abcSpaces\abc.com\xyz.com\wwwroot\Order Fulfilment.rpt";//full path
// I have tried OrderFullfilment.rpt and ~/OrderFullfilment.rpt and /OrderFullfilment.rpt
try
{
reportDocument.Load(filePath);
CrystalReportViewer1.ReportSource = reportDocument;
}
catch(Exception ex){
Label1.Text = ex.Message;
}
ASPX trang phần:
<CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" Height="1291px"
ReuseParameterValuesOnRefresh="True" Width="1125px" />
^Tôi đã cố gắng sử dụng
<CR:CrystalReportSource ID="CrystalReportSource1" runat="server">
<Report FileName="expenseRep_summary.rpt">
</Report>
</CR:CrystalReportSource>
với may mắn không tắt khóa học ...
phần web.config của tôi cho ref hội erencing:
<compilation debug="true">
<assemblies>
<add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="MySql.Data, Version=6.2.4.0, Culture=neutral, PublicKeyToken=C5687FC88969C44D"/>
<add assembly="MySql.Data.Entity, Version=6.2.4.0, Culture=neutral, PublicKeyToken=C5687FC88969C44D"/>
<add assembly="MySql.Web, Version=6.2.4.0, Culture=neutral, PublicKeyToken=C5687FC88969C44D"/>
<add assembly="CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
<add assembly="CrystalDecisions.Shared, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
<add assembly="CrystalDecisions.ReportSource, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
<add assembly="CrystalDecisions.CrystalReports.Engine, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/><add assembly="CrystalDecisions.ReportAppServer.ClientDoc, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/><add assembly="CrystalDecisions.Enterprise.Framework, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/><add assembly="CrystalDecisions.Enterprise.InfoStore, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
<add assembly="CrystalDecisions.Data.AdoDotNetInterop, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
<add assembly="CrystalDecisions.VSDesigner, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/></assemblies>
</compilation>
Tôi đã thử tất cả các giải pháp được đăng trong stackoverflow:
CrystalReport Load report failed (không tôi không thể thay đổi registry hoặc cài đặt lại báo cáo pha lê, trang web của tôi được lưu trữ trên máy chủ bên ngoài)
load report failed (nơi địa ngục là objReport ??)
I got the problem in Crystal Report- Error Messsage:Load report failed (tôi không có đối tượng reffering để Báo cáo lớp: S)
012.Load report failed when implementing crystal report in asp.net 3.5 (Tôi đã thử này '~' kỹ thuật + con đường tuyệt đối và không làm việc)
Load report failed in Windows server 2003 (Tôi đã thiết đọc viết được thực hiện quyền cho mỗi tập tin)
https://stackoverflow.com/questions/3337185/crystal-report-giving-load-failed-error (anh chàng này như tôi, đã không tìm thấy giải pháp được nêu ra: P)
Vì vậy, xin vui lòng hãy giúp tôi! Hoặc khách hàng của tôi sẽ ăn tôi sống ...
http://stackoverflow.com/questions/3321469/load-report-failed-when-implementing-crystal-report-in-asp-net-3-5 liên kết này hữu ích cho tôi .... cảm ơn – 456qwe123asd