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

Saphirah

Active member
Local time
Today, 08:25
Joined
Apr 5, 2020
Messages
163
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 :)
 

theDBguy

I’m here to help
Staff member
Local time
Yesterday, 23:25
Joined
Oct 29, 2018
Messages
21,449
To deploy your application and auto register your DLL, you could create an installer package.

If you don't have any, check out SSE.

 

Saphirah

Active member
Local time
Today, 08:25
Joined
Apr 5, 2020
Messages
163
Thank you very much! That is a great idea :)
 

Users who are viewing this thread

Top Bottom