Click here to Skip to main content
15,919,613 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,
I have a windows application which uses Excel files attributes.
Using DSOFile.dll.

When running the application in Windows 7 - we get this error:
System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {58968145-CF05-4341-995F-2EE093F6ABA3} failed due to the following error: 80040154.

Which means the registry is missing DSOFile.OleDocumentProperties

Any suggestions?

Thanks.
Posted
Updated 28-Oct-12 3:07am
v2

Try to register the DLL file with regsvr32.exe[^]

You need to run it as administrator to register the DLL.
 
Share this answer
 
DSOFile is a 32-bit only .dll. Make sure your app is compiled to target an x86 CPU, not AnyCPU. This can be found in your Project Properties, Build tab.
 
Share this answer
 
Comments
Member 8021019 29-Oct-12 1:52am    
someone replayed that i should register with regasm …dll
but then I get an error:

failed to load c:\....\DSOFile.dll because it is not a valid .NET assembly.

Now what?

Thanks.
Dave Kreskowiak 29-Oct-12 7:55am    
REGASM only works with .NET assemblies. DSOFile.dll is not one of those.

I already you what the most common problem is using DSOFile on a 64-bit machine.
Member 8021019 29-Oct-12 8:01am    
i know it is a problem
but now my application is using the dsofile and i need it should work also on 64 bit machin.
what can i do about that?
thanks.
Dave Kreskowiak 29-Oct-12 8:06am    
I REALLY hate it when people don't listen. I ALREADY TOLD YOU WHAT TO CHECK.
Member 8021019 29-Oct-12 8:09am    
Sorry I didn’t tell you ,
But I compiled the project to X86-
And the problem still exist.
Thanks for replaying.
I registered the DLL like that:
Open the run and enter regsvr32 and the DLL path-did you mean doing that?

It still doesn’t work
This problem happens only in windows 7
On windows XP machine- it works file.
 
Share this answer
 
Comments
André Kraak 28-Oct-12 9:07am    
If you have a question about or comment on a given solution use the "Have a Question or Comment?" option beneath the solution. When using this option the person who gave the solution gets an e-mail message and knows you placed a comment and can respond if he/she wants.

Please move the content of this solution to the solution you are commenting on and remove the solution.
Thank you.
Thomas Daniels 28-Oct-12 10:17am    
Then, try to register the DLL with Regasm.exe

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900