PDA

View Full Version : Hỏi về cách deploy crystal report lên web server



tienduy021
25-02-2011, 17:18
Mình đang tập làm crystal report trong web asp.net (C#). Khi deploy lên máy local thì nó chạy tốt nhưng khi deploy lên một hosting bên ngoài thì nó báo lỗi bên dưới.
Hiện tại, công cụ để quản lý hosting của mình là Plesk Panel 9.5. Bạn nào có thể help mình cách config sao cho report của mình có thể run trên web server.
Chân thành cảm ơn.


Server Error in '/' Application.

Retrieving the COM class factory for component with CLSID {5FF57840-5172-4482-9CA3-541C7878AE0F} failed due to the following error: 80070005.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.UnauthorizedAcces***ception: Retrieving the COM class factory for component with CLSID {5FF57840-5172-4482-9CA3-541C7878AE0F} failed due to the following error: 80070005.

ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.

To grant ASP.NET access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.

Source Error:


Line 11: <CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" AutoDataBind="True"
Line 12: Height="1039px" ReportSourceID="CrystalReportSource1" Width="901px" />
Line 13: <CR:CrystalReportSource ID="CrystalReportSource1" runat="server">
Line 14: <Report FileName="CrystalReport1.rpt">
Line 15: </Report>

Source File: e:\inetpub\vhosts\minierp.vn\subdomains\report\htt pdocs\Default.aspx Line: 13

Stack Trace:


[UnauthorizedAcces***ception: Retrieving the COM class factory for component with CLSID {5FF57840-5172-4482-9CA3-541C7878AE0F} failed due to the following error: 80070005.]
CrystalDecisions.CrystalReports.Engine.ReportDocum ent..cctor() +207

[TypeInitializationException: The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocu ment' threw an exception.]
CrystalDecisions.CrystalReports.Engine.ReportDocum ent..ctor() +0
CrystalDecisions.ReportSource.CachedReport.get_Rep ortDocument() +39
CrystalDecisions.Web.CrystalReportSource.set_Repor t(Report value) +219
ASP.default_aspx.__BuildControlCrystalReportSource 1() in e:\inetpub\vhosts\minierp.vn\subdomains\report\htt pdocs\Default.aspx:13
ASP.default_aspx.__BuildControlform1() in e:\inetpub\vhosts\minierp.vn\subdomains\report\htt pdocs\Default.aspx:9
ASP.default_aspx.__BuildControlTree(default_aspx __ctrl) in e:\inetpub\vhosts\minierp.vn\subdomains\report\htt pdocs\Default.aspx:1
ASP.default_aspx.FrameworkInitialize() in c:\windows\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET Files\root\22c8e0e7\e86213af\App_Web_mft1htns.0.cs :0
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +56
System.Web.UI.Page.ProcessRequest() +80
System.Web.UI.Page.ProcessRequestWithNoAssert(Http Context context) +21
System.Web.UI.Page.ProcessRequest(HttpContext context) +49
ASP.default_aspx.ProcessRequest(HttpContext context) in c:\windows\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET Files\root\22c8e0e7\e86213af\App_Web_mft1htns.0.cs :0
System.Web.CallHandlerExecutionStep.System.Web.Htt pApplication.IExecutionStep.Execute() +181
System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean& completedSynchronously) +75

Version Information: Microsoft .NET Framework Version:2.0.50727.3615; ASP.NET Version:2.0.50727.3618

vokhanhthuy
25-02-2011, 21:20
ban thử cài CRRedist2008_x86 trên host xem. mình mọi hồi cũng bị lỗi này cái này là được