LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Problem loading DLL: Error

Hi all

I'm trying to write data to Excel from my ASP.NET application and I'm having
trouble with the first hurdle. I have added a reference to the
Microsoft.Office.Interop.Excel dll which is in the application's Bin folder.

Every time I try to use the application I get the following error:

...........................

Retrieving the COM class factory for component with CLSID
{00020819-0000-0000-C000-000000000046} failed due to the following error:
80040154.
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.Runtime.InteropServices.COMException: Retrieving
the COM class factory for component with CLSID
{00020819-0000-0000-C000-000000000046} failed due to the following error:
80040154.

..........................

I have tried numerous investigations. I have used the Dependency Walker
application and have established there are no missing dependent dlls. I have
completely replaced the dll with another copy which works on another machine,
but still get the same error. I have tried to register the dll using regsvr32
but get this error message:

........................

P:\C057SMP\cms\bin\Microsoft.Office.Interop.Excel. dll was loaded, but the
DllRegisterServer entry point was not found.

The file can not be registered.

......................

I've completely run out of ideas and I need to get this Excel export working.

I have a lot of experience of Excel's API and have done this sort of thing
numerous times before in different roles, but have never encountered this
problem.

Has anyone got any suggestions?

Thanks

David
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2007 - error saving file & error loading dll TinaF Excel Discussion (Misc queries) 0 July 1st 09 01:49 PM
Error Loading DLL chris Excel Discussion (Misc queries) 0 June 26th 08 02:03 PM
Help, excel error 53 (loading userform) <== problem solved Kc Excel Programming 1 November 18th 07 06:25 PM
Error in loading DLL Ariel Excel Programming 2 February 24th 07 01:56 AM
Error Loading Add-In scott Excel Programming 7 February 4th 05 01:40 AM


All times are GMT +1. The time now is 09:44 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"