Q:
      
      
         
            
You use Visual Studio .NET to create an assembly, called XYZAssembly, that will be used by other applications, including a standard COM client application.
You must deploy your assembly on the COM application to a client computer. You must ensure that the COM application can instantiate components within the assembly as COM components.
What should you do?
         
       
      
      
      
          
      
      
          Answer & Explanation
         Answer: C) Generate a registry file for the assembly by using the Assembly Registration tool (Regasm.exe) Register the file on the client computer.         
         
Explanation: The Assembly Registration tool reads the metadata within an assembly and adds the necessary entries to the registry, which allows COM clients to create .NET Framework classes transparently. Once a class is registered, any COM client can use it as though the class were a COM class..
 
Incorrect Answers:
Option A:
The Strong Name tool helps sign assemblies with strong names.
Option B:
The Type Library Importer, tlbimp.exe, converts the type definitions found within a COM type library into equivalent definitions in a common language runtime assembly. It would not be useful in this scenario however.
Option D:
This would not allow the COM application to use the class.
       
      
      
      
          View Answer
          Report Error
          Discuss