2012-06-12 66 views
0

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.失敗,原因是出現以下錯誤:80070005

Exception Details: System.UnauthorizedAccessException : 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 23: public partial class Report_Agent_Commission : System.Web.UI.Page 
Line 24: { 
Line 25:  ReportDocument obj = new ReportDocument(); 
Line 26:  CrystalClass CCobj = new CrystalClass(); 
Line 27:  static string repFile = string.Empty; 

Source File:
d:\inetpub\vhosts\impactwebclients.com\httpdocs\Report_Agent_Commission.aspx.cs

Line: 25

Stack Trace:

[UnauthorizedAccessException: Retrieving the COM class factory for component with CLSID {5FF57840-5172-4482-9CA3-541C7878AE0F} failed due to the following error: 80070005.] CrystalDecisions.CrystalReports.Engine.ReportDocument..cctor() +207 [TypeInitializationException: The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception.] CrystalDecisions.CrystalReports.Engine.ReportDocument..ctor() +0 PBS.GUI.Report_Agent_Commission..ctor() in d:\inetpub\vhosts\impactwebclients.com\httpdocs\Report_Agent_Commission.aspx.cs:25 ASP.report_agent_commission_aspx..ctor() in c:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\9b53e041\44708862\App_Web_report_agent_commission.aspx


這個問題我使用Crystal Reports時,2008年版本10.5.3700.0,如果我評論/刪除它做工精細特定網頁上的水晶報表的內容得到。當我把晶體的ReportViewer在當前網頁則顯示錯誤

能否請你幫我從這裏走出

+0

你有沒有嘗試過你的問題的第3段建議? – GSerg

回答

0

我找到了一個答案我自己..請將自定義錯誤模式在webconfig 和檢查錯誤狀態號,99%它給錯誤號:500 - 這是一個內部服務器 錯誤,在服務器機器上有問題 問題可能是他們必須安裝晶體報告運行時,否則可能是任何其他問題 所以它不在您的編碼部分,因此在確認500錯誤後向他們提出投訴

感謝所有如果它是有用的任何人..這將是偉大的

相關問題