Error 80040154

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
<p align=left><font face=Arial size=2></font> 
Hi all
<p align=left> 
<p align=left>Im creating an ASP.NET app in C# which references the Excel 11.0 dll. The dll isnt is the Global Assembly Cache, its copied right into the Bin folder of the application.
<p align=left> 
<p align=left>When I click a button which runs code which uses the dll, I get the following error:
<p align=left> 
<font color="#0000ff <i>Retrieving the COM class factory for component with CLSID {00020819-0000-0000-C000-000000000046} failed due to the following error: 80040154.</i> </font>
<p align=left><font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif <font color="#0000ff <b>Description: </b>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.

<b>Exception Details: </b>System.Runtime.InteropServices.COMException: Retrieving the COM class factory for component with CLSID {00020819-0000-0000-C000-000000000046} failed due to the following error: 80040154.
</font></font>
<p align=left>Ive googled this a bit and the problem may be to do with other dlls required by the Excel one not being there. I have downloaded ProcessExplorer from sysinternals.com and this indicates that the Excel dll is being used by the worker process.
<p align=left> 
<p align=left>Can anyone suggest how I would find out what other dlls might be necessary? Or do you think something else may be causing the error?
<p align=left> 
<p align=left>Thanks
<p align=left> 
<p align=left>David

View the full article
 
Back
Top