Where to get OPCAutomation.dll and OPCEnumLib.dll - c#

Where can I download OPCAutomation.dll and OPCEnumLib.dll?
I am working on this web app that references "Interop.OPCAutomation.dll" and "Interop.OpcEnumLib.dll"
Got below error upon creating instance of OPCServerClass.
My employer cannot provide copy of those DLL and the regsvr32 does not work for "Interop" DLL files. I am wondering if its freely distributed.
Retrieving the COM class factory for component with CLSID {28E68F9A-8D75-11D1-8DC3-3C302A000000} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).

You should find them from the OPC Foundation web site:
https://opcfoundation.org/developer-tools/samples-and-tools-classic
Check the Automation Wrapper for these DLLs.

Related

Why does my app works on my computer but not on others

im doing an app in c# windowns form that register the entries of the employees with a biometric device. I did a setup and send to my other computer to test if it would work on another device. Everything works fine except the functionalities that work directly with the biometric device(remembering that works perfectly fine on my computer).
I already checked one by one every dll, and didnt noticed nothing missing.
The error is the following :
System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {00853A19-BD51-419B-9269-2DABE57EB61F} failed due to the following error:
80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
Print of the error :
https://i.stack.imgur.com/x5vk2.png
This looks, you have the COM DLLs registered in your computer but not on the other computer. So naturally it would fail without making any change in the actual software you developed. SDK package usually has register.bat or something similar to that. Find it and run the batch file, then your software would work.

C# UWP app COM error: 80040154 Class not registered

I have an UWP application that I would like to interface with another program (Wirecast). The approach suggested by Wirecast is to call the following code:
Type objClassType = Type.GetTypeFromProgID("Wirecast.Application");
_Wirecast = Activator.CreateInstance(objClassType);
When I call this code from UWP app I get the following error:
System.Runtime.InteropServices.COMException: 'Creating an instance of
the COM component with CLSID {A416C15B-A073-4994-8DB5-87527A41B2FA}
using CoCreateInstanceFromApp failed due to the following error:
80040154 Class not registered (Exception from HRESULT: 0x80040154
(REGDB_E_CLASSNOTREG)).
I checked the CLSID and it appears correctly in the Registry Editor. I tried compiling for x64 and x86 configurations with the same results.
When I try compiling this example in WPF project it works as expected.
Is there any way to use this COM object with an UWP app?
Unfortunately this won't work as UWP runs in a sandbox and it cannot communicate with COM. If you want such functionality, you would have to create a local service via which would your UWP app communicate with the program or a Brokered Windows Runtime Component which has no limitations but will prevent your app from being published to Microsoft Store.

How to register Microsoft.Office.Interop.Word on web server

My asp.net c# webforms site use the Microsoft.Office.Interop.Word
the project work fine local when i publish it to the server i get this message
Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
Both developer computer and server are 64 bit
I try to put dll on bin folder in server - dosent work.

c# PowerPoint Slide interop and office dll registry error

I am in need of read a PPT/X PowerPoint File in C# code and display that in web form as image.
I did it using in VS 2013 C# .NET 4.0 and using dlls, Microsoft.office.interop.powerpoint.dll and Office.DLL.
It is working perfectly fine when running on local machine and working in local machine.
When I publish it on Azure Web Server or in Shared Server IIS,
I am ending up with
*
Error occurred: Retrieving the COM class factory for component with
CLSID {91493441-5A91-11CF-8700-00AA0060263B} failed due to the
following error: 80040154 Class not registered (Exception from
HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
*
I copied both DLLs into BIN folder.
Still no use.
Any idea how can i resolve this!!
Thanks in advance.
Just try enabling the fusion logs, it may be the case that your library is not signed and due to that your are getting this exception. Try disabling the strong name validation using sn -Vr

Retrieving the COM class factory for component with CLSID {} failed due to the following error: 80040154 Class not registered

Retrieving the COM class factory for component with CLSID {C47C8528-950A-4D52-802C-AED89CD9042B} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
i am using third party DLL call Interop.flixengine_com.dll.
although i ma registerd it using Resam for GAC and it is refring from GAC.
but i cant not create object of it giving above damn error.pls help.
That interop.X.dll is actually a wrapper around some other, unmanaged DLL that's called something like fixengine_com.dll - you need to deploy the latter on the machine where your code is running - specifically you need to copy that DLL and all its dependencies and run regsvr32 to register it with COM. That unmanaged DLL contains the COM server - actual code that will serve your requests and the interop.X.dll is only a wrapper to route calls from your managed code into that unmanaged COM server.

Categories

Resources