how can i resolve the problem in crystal reports

Posted by Lakn2 under ASP.NET on 11/13/2011 | Points: 10 | Views : 2179 | Status : [Member] | Replies : 0
hi i am getting the below error ,could you please give me any suggestion to resolve the problem

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 {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 15: public partial class op_enroll : System.Web.UI.Page
Line 16: {
Line 17: ReportDocument reportDocument = new ReportDocument();
Line 18: ParameterField paramField = new ParameterField();
Line 19: ParameterField paramField1 = new ParameterField();

Source File: d:\inetpub\vhosts\\httpdocs\op_enroll.aspx.cs Line: 17

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() +193

[TypeInitializationException: The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception.]
CrystalDecisions.CrystalReports.Engine.ReportDocument..ctor() +0
op_enroll..ctor() in d:\inetpub\vhosts\\httpdocs\op_enroll.aspx.cs:17
ASP.op_enroll_aspx..ctor() in c:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\405a3fee\a9835446\App_Web_op_enroll.aspx.cdcab7d2.ae9lb345.0.cs:0
__ASP.FastObjectFactory_app_web_op_enroll_aspx_cdcab7d2_ae9lb345.Create_ASP_op_enroll_aspx() in c:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\405a3fee\a9835446\App_Web_op_enroll.aspx.cdcab7d2.ae9lb345.2.cs:0
System.Web.Compilation.BuildResultCompiledType.CreateInstance() +32
System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +119
System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +33
System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) +37
System.Web.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +307
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155

LakshmiNarayana Nalluri.


(No response found.)

Login to post response