Avatar of quali
quali
 asked on

COM Interoperability experts: Deployment without GAC registration?

Hi
How can the unmanaged dll that references the .net dll be deployed to client pc without registering in GAC?
Application works fine when I registered .net dll in GAc by using regasm tool.
But I want a solution without GAC registration.
Is it possible? What should I have to do?
Regards
C#

Avatar of undefined
Last Comment
Daniel Van Der Werken

8/22/2022 - Mon
Daniel Van Der Werken

You can not register an unmanaged DLL into the GAC, so that should not even be a consideration.

I'm not sure I follow what you want to do exactly.  You should only be using REGASM when the .NET assembly is unsigned and you want to debug the code.  Otherwise, sign the .NET assembly and use gacutil to install it in the GAC.

How exactly are you deploying the application?  As far as I know, REGASM doesn't register an assembly in the GAC, it puts it in the registry with a unique ID like a COM object.  

quali

ASKER
>>Otherwise, sign the .NET assembly and use gacutil to install it in the GAC.
I required a solution where my .Net assembly should not be in GAC or in registery.

>>from me >> Application works fine when I registered .net dll in GAc by using regasm tool.


IS IT POSSIBLE THAT MY COM COMPONENT CAN ACCESS .NET COMPONENT WITHOUT HAVING IT(.Net component) IN REGISTRY??
ASKER CERTIFIED SOLUTION
Daniel Van Der Werken

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
quali

ASKER
Great :)
>>Can you exaplain WHY you can't have the component in the registry or GAC?
 "The Company" required it in this way.
they have some client server application where they don't (can't) want assemblies in registery.

Is it possible to call a .Net component in c++ unmanaged code without using CCW?
How can i use  .Net component in unmanaged component without registering it(.Net component ) in registery??
Any tutorial will be a great help.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
Daniel Van Der Werken

I don't know if it's possible to go from Unmanaged to .NET.  I always see it from .NET to Unmanaged via Platform Invoke and the like.

Check this out:
http://www.codeproject.com/csharp/win32_to_net.asp