29 November 2006
Using COM components in ASP.NET
Posted by Mikhail Esteves under: C#; Tips .
- Get into the Visual Studio Command Prompt
- Surf to the directory where the COM component is
- Run
tlbimp component.dll /out:component_wrapper - Cut and paste the resulting
component_wrapper.dllinto your .NET application’sbinfolder. - Reference and use
component_wrapper.
You still need to use regsvr32 to register the COM component on the server. The tlbimp utility only creates a .NET wrapper for the component that you can reference and use in your .NET applications.