How to register .NET Assembly for COM Interop ?

Do you want to use your .NET DLL (assembly) from VB6 or C++ application (native code) ? Yes, you can do that using COM Interop. As per COM rules, you need to get your assembly registered on system (in Registry, yes, thats how COM works!). To get an assembly registered on system, you can use…

6

Want to see GAC in its naked view?

For one of my customer’s debugging scenario, I was searching for a technique to view the GAC in its simple file-folder view. (For those of you who does not know GAC [C:\windows\assembly] is just a decorated view implemented in shfusion.dll in framework folder.. Refer to [http://msdn2.microsoft.com/en-us/library/34149zk3(vs.80).aspx] for more information. So, there are two tricks to…

0

.NET Framework Configuration Tool

Just now, i was searching for something to set the redirection for .NET assembly. Like, for assembly versions 1.0.0.0 to 1.7.85.995 should be loading the latest assembly from the company, that is, 1.8.0.0 Tried searching for writing the config file (i know this can be possible by Redirection policy configuration file..) But found one good…

0

Enabling .NET studio Windows Service project to work with installutil.exe

I was just trying to create a simple C#.NET windows service with visual studio .NET 2005. After selecting Windows Service template, I got the template code for common required service infrastructure lik, OnStart() and OnStop() methods. I added my custom code in necessary methods and tried to register it using installutil.exe but was not able…

0

How to load the assemblies from disk apart from GAC and current directory?

Just came across this question and got to know about a method where we can get the assembly resolve event and load the assembly programatically from any directory / URL we want! Following are the articles which talks more about this, http://support.microsoft.com/kb/897297 http://support.microsoft.com/kb/837908 Might be helpful in some situations.

0

The order in which Assemblies are located by runtime!

Just came across this question, and did some research! This is the order. Configuration files Application Configuration File Publisher Policy File Machine Configuration File. Check is made to see if the same assembly is loaded previously by any any other application. Global Assembly Cache Locating through <codebase> or <probing> in configuration file. Probing with private…

0

COM-.NET Interop development? Take care of this thing.

I was trying my hands at creating a .NET 2.0 component that can be consumed by a COM application. One of the errors I got in the process of registering the .NET assembly was RegAsm : warning RA0000 : No types were registered. This was baffling!! I had done everything right and spent quite some…

1