Solved Use Custom DLL without registering Classes in Registry (1 Viewer)

Saphirah

Active member
Local time
Tomorrow, 00:13
Joined
Apr 5, 2020
Messages
160
Hello everyone,

i know this is a bit offtopic, as we are talking mostly about dll's here, but at the end the dll should be used in access.

I created a custom COM DLL using C# in Visual Studio.
After importing the DLL in Access, a runtime error popped up "class not registered".

According to Microsoft one needs to register the Class in the Registry. One can do this by selecting "Register for COM Interlop" in VS.
Fine. The DLL is working as intended.

But when i want to deploy my application to the working stations, the dll needs to be registered there as well.
This is quite a hassle.

I have seen and used countless DLLs in Access, that did not need to be registered before. So i would be glad for any tips and tricks how to avoid the registry and compile my DLL in a way that it can be used without registering it.

If this is not working, is there maybe a way to automate the registration of the COM Dll in Access?

Thank you very much for your help :)
 

Saphirah

Active member
Local time
Tomorrow, 00:13
Joined
Apr 5, 2020
Messages
160
Thank you very much! That is a great idea :)
 

Users who are viewing this thread

Top Bottom