man be in moshkel da hengam tabdil be excel mikhoram
Server Error in '/' Application.
Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} 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 {00024500-0000-0000-C000-000000000046} 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 176: System.Globalization.CultureInfo oldCI = System.Threading.Thread.CurrentThread.CurrentCultu re;
Line 177: System.Threading.Thread.CurrentThread.CurrentCultu re = new System.Globalization.CultureInfo("en-US");
Line 178: Excel.Application app = new Excel.Application();
Line 179: Excel._Workbook oWB;
Line 180: Excel.Worksheet oSheet;
Source File: E:\Tehran-Ard\UserControls\Pager.ascx.cs Line: 178
Stack Trace:
[UnauthorizedAcces***ception: Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005.]
Ard.Pager.BuildExcelFile(String FileName, List`1 FieldNames) in E:\Tehran-Ard\UserControls\Pager.ascx.cs:178
Ard.Pager.ConvertToExcel(String OrigExcelFileName) in E:\Tehran-Ard\UserControls\Pager.ascx.cs:240
Ard.AmarKoliRepWebForm.ExportExcelButton_Click(Obj ect sender, EventArgs e) in E:\Tehran-Ard\Reports\AmarKoliRepWebForm.aspx.cs:51
System.Web.UI.WebControls.LinkButton.OnClick(Event Args e) +111
System.Web.UI.WebControls.LinkButton.RaisePostBack Event(String eventArgument) +79
System.Web.UI.WebControls.LinkButton.System.Web.UI .IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +175
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565
Version Information: Microsoft .NET Framework Version:2.0.50727.4016; ASP.NET Version:2.0.50727.4016
man moghe tabdil be excel be in error mikhoram





پاسخ با نقل قول