Skip to Content
0
Former Member
Jul 01, 2009 at 05:43 PM

Retrieving the COM class factory for component with CLSID {) Problem

144 Views

We are Develop the Application on ASP.NET 2.0, MSSQL Server 2005 and Crystal Report 2008.

We have own Web Server(VPS Server) and Install the Crystal Report 2008 Try Version for just application testing purpose.

If We click the Report then Show the Following Error mesage :

___________________________________________________

Server Error in '/' Application.

-


Retrieving the COM class factory for component with CLSID {059AC10F-0010-4C43-8876-1FC7BEAF218B} 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.UnauthorizedAccessException: Retrieving the COM class factory for component with CLSID {059AC10F-0010-4C43-8876-1FC7BEAF218B} 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 \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:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[UnauthorizedAccessException: Retrieving the COM class factory for component with CLSID {059AC10F-0010-4C43-8876-1FC7BEAF218B} failed due to the following error: 80070005.]

CrystalDecisions.CrystalReports.Engine.ReportDocument..cctor() +171

[TypeInitializationException: The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception.]

CrystalDecisions.CrystalReports.Engine.ReportDocument..ctor() +0

ReportTest.Page_Load(Object sender, EventArgs e) +177

System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +13

System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +45

System.Web.UI.Control.OnLoad(EventArgs e) +98

System.Web.UI.Control.LoadRecursive() +71

System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4308

-


Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42