.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Registration Free COM using manifest file embeded in Plugin DLL?

Posted By:      Posted Date: October 20, 2010    Points: 0   Category :.NET Framework

Searching google online for 1 whole week and I still can't get this solved... please help!

I'm suppose to build a Plugin (will be called Plugin.dll after compiled) which resides in a main framework (Framework.exe after compiled), everything is written in C# except the C++ COM object (ComObject.dll) which is required by my plugin to function.

The hierarchy looks something like this:

    Framework.exe --> Plugin.dll --> ComObject.dll 


I was provided with the main framework, the ComObject.dll and a manifest file Framework.exe.manifest.


Currently I have two options of getting my program to work:

Option 1: In Command Prompt, type in 'regsvr32 ComObject.dll' to register the COM object, add the COM reference in my plugin source code, build away and run it.

Option 2: In the application properties of my framework source code, add in the manifest file to get it embedded into the Framework.exe. Either this or manually embed the manifest file using mt.exe, both works. This works even if I unregister it later using 'regsvr32 /u ComObject.dll' in Command Prompt.


View Complete Post

More Related Resource Links

free com registration manifest for .Net


I have a .Net exe application which has a reference to a .net assembly called for example Anet.dll which has a reference to a free com registration c++ dll called Bcppcom.dll. My question is if is possible to add this free com registration manifest to the Anet.dll assembly or in .net only the exe application can have manifest because Visual studio .Net 9 doesn’t have the option to add manifest to a class library assembly?


How to write the manifest file for Reg-Free COM if there are two DLL files? ( 32-bit and 64-bit vers



Our program, Core.exe is using two different COM dll files for 32-bit and 64-bit OS. 

Normally, the user will be required to register either one of the dll files using 'regsvr32' command in Command Prompt window.

However we decided to use Reg-Free COM using a manifest file Core.exe.manifest located alongside Core.exe.

The problem is, now we have two DLL files, 32bit.dll and 64bit.dll.. how do we configure the manifest file?

For example if there's only one dll file, my manifest file should look like:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
 <file name="32bit.dll">
  <comClass clsid="{9DFC3817-ACDA-4BB4-C74B-6507DF3A25E5}"
       description="Some Class"

Since the 64bit.dll is using the same clsid, tlbid and all.. is it possible to specify two file names in the 'file name' field above? not sure how to handle this..



Best Regards,

The Free Barcode Creator produces barcode images one at a time, and allows easy saving to a file or

The Free Barcode Creator produces barcode images one at a time, and allows easy saving to a file or pasting into an application. 2D versions are also available:

Escape DLL Hell: Simplify App Deployment with ClickOnce and Registration-Free COM


DLL Hell that results from versioning conflicts is generally not a problem in .NET because components do not require registration, and are either totally isolated to an application or are managed in a well-defined side-by-side way with the help of the Global Assembly Cache. But if you're still using COM, wouldn't it be great if you could deploy your existing COM components using a model similar to the .NET Framework? In Windows XP, you can, and this article explains how.

Dave Templin

MSDN Magazine April 2005

How can i add .manifest file reference to the asp.net 2.0

Hi Guys,I have a COM DLL and i made .manifest file for it so i can use it on my host.but i cant add the reference to the asp.net 2.0.Can you please help me .RegardsMoji

how to write error free in js file

When i add the below code in the javascript file (JS file ) i am getting error :   adding below code in the apsx page do not have problem <script src="http://munchkin.marketo.net/munchkin.js" type="text/javascript"></script> <script>mktoMunchkin("476-IFP-265");</script>   converting the above to include in anotehr js file gettign error : unknown error mktoMunchkin in IE 7 document.write('<script type="text/javascript" src="http://munchkin.marketo.net/munchkin.js"></script>');document.write('<script type="text/javascript">mktoMunchkin("476-IFP-265");</scr' + 'ipt>');   am i doing any error please let me know Thanks in advance      

Embed manifest and config file


I want to embed the manifest and the application config file into the exe.  Does anyone know the best way to do this? I see it used this way all the time.

Thanks in advance


Free Code Snippets - ASP.NET

You Can Find Useful ASP.NET Related Posts on the above link.

Free Code Snippets - C#

Free C# Code Snippets

File Splitter in .Net

I love to do utility programs in .Net. And this is one of them. As I was playing with JSplit (a free file splitter program), I wondered if I could do it in .Net. The framework supports file operations like reading files in bytes and creating them. It is indeed easy to do file operations in .Net Basics on File operations

Upload Multiple File using JQuery in asp.net

In this article I have explained how to upload multiple files using file upload control. I have used jQuery plugin for uploading multiple files.

I have also explained how to check for file type, file maximum size limit using jQuery & also using server side validation code.

Developing GridView Plugin With JQuery

There are many times when writing an application need to display data in a table. Most of the time a simple HTML table styled with CSS is enough but occasionally want a bit more. Today we'll look at designing a plugin for jQuery that will add some advanced features such as row selection and sorting.

ASP.NET Repeater Combined with jQuery FAQ Plugin Demo

The plugin is really straight forward. You just have to add your FAQ items in a header element such as an h2 and content sections in spans. This could be done in a pure HTML page or the FAQ items and content could be pulled from a database or XML file like I did in the download. Once the markup is built, the plugin does the rest. It will hide the content sections, add click events to the headers to open and close the content sections, toggle the plus/minus symbols and build the index shown on the right if you want.

GridView Plugin For JQuery

when I am writing an application I need to display data in a table. Most of the time a simple HTML table styled with CSS is all that I need but occasionally I want a bit more. Today we'll look at designing a plugin for jQuery that will add some advanced features such as row selection and sorting

Creating Excel file from C#

I used below coding for create a excel sheet.I got from on web site.
In below coding there is no problem.Its create the excel file.If i run second time,its ask to overwrite the current excel file.If I said "Yes" then it ok ,but If I select cancel button,its generate the Error message.The exception is

How To Add Jquery Plugin Tablesorter in Gridview

This article shows How To Add Jquery Plugin Tablesorter in Gridview in asp.net using JQuery

jQuery grid view plugin

jqGridView is new, client-rich, XML-based, ajax grid plugin for jQuery library. jqGridView provides professional solution for representing and editing tabular data on the web. Carefully designed, with powerful script API, this editable DHTML grid is easy configurable with XML, and shows convincing results working with large amounts of data. jqGridView allows easy implementation of nice looking(managed through css). jqGridView is not platform-depending plug-in, it can be used with different web -programming platforms like: ASP .NET/ASP, PHP, JAVA, CGI scripts etc. jqGridView has hight bowser compatibility.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend