Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 29, 2013, 8:58 PM EDT
Please refer the below link
http://www.codeproject.com/Questions/274286/microsoft-office-interop-error
http://forums.asp.net/t/1303594.aspx/1
Regards,
Iftikar
Posted Jul 29, 2013, 8:59 PM EDT
http://forums.asp.net/t/1303594.aspx/1
Manj N144 reputationPosted Jul 29, 2013, 9:22 PM EDT
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 29, 2013, 9:25 PM EDT
Regards,
Iftikar
Manj N144 reputationPosted Jul 29, 2013, 9:34 PM EDT
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Jul 29, 2013, 9:40 PM EDT
http://blog.crowe.co.nz/archive/2006/03/02/589.aspx
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 29, 2013, 9:44 PM EDT
Regards,
Iftikar
Manj N144 reputationPosted Jul 29, 2013, 9:50 PM EDT
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 29, 2013, 9:58 PM EDT
Regards,
Iftikar
Manj N144 reputationPosted Jul 29, 2013, 10:10 PM EDT
but when i use IIS 8 it gives error...
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 29, 2013, 10:12 PM EDT
Regards,
Iftikar
Manj N144 reputationPosted Jul 29, 2013, 11:08 PM EDT
Exception Details: System.UnauthorizedAccessException: 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
To grant ASP.NET access to a file, right-click the file in File 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 1070: else Line 1071: { Line 1072: ExcelApp = new Excel.Application(); Line 1073: ExcelApp.Visible = false; Line 1074: ExcelWork = (Excel._Workbook)(ExcelApp.Workbooks.Add(Missing.Value));Sunny SharmaRank #223 · 11.1K reputationPosted Jul 29, 2013, 11:51 PM EDT
try this:
Go to properties of your bin folder.
Go to: Security > Edit > Add.
Add NETWORK_SERVICE and allow all permissions.
restart your web server.
Hope it helps.
Manj N144 reputationPosted Jul 30, 2013, 1:35 AM EDT
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 30, 2013, 1:37 AM EDT
Regards,
Iftikar
Manj N144 reputationPosted Jul 30, 2013, 1:59 AM EDT
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 30, 2013, 2:02 AM EDT
Regards,
Iftikar