Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


how to register a .net dll on a system where visual studios is not installed

Posted on 2009-04-23
Medium Priority
Last Modified: 2013-11-26
I created a project of type class library (.net C#), then i registered my assembly in Visual Studios Command Prompt using following commands:

regasm /tlb:membershipcards.tlb membershipcards.dll
gacutil /i membershipcards.dll

it is working fine, but what i will do to register my dll on a system where Visual Studios is not installed.
I tried regsvr32 but it is not working , it is asking entry point.
Question by:specialist4u
  • 3
  • 2
  • 2
LVL 53

Expert Comment

ID: 24222199
1. GacUtil is a part of the .net-framework (you can find it C:\WINDOWS\Microsoft.NET\Framework\<version> (where <version stands for the .net version you are using)
Go to that directory with a command prompt and execute "gacutil /i membershipcards.dll"
2. You can create an msi-file

Accepted Solution

gearboxpc earned 375 total points
ID: 24222280
Hi, as long as the target computer has the .NET Framework installed you can use the RegAsm.exe that is located in the Framework Directory.
i.e.  If your targeting .Net Framework 2.0 then the path will be the following:
As for Gacutil.exe;  it is not a part of the .NET Framework redistributable.  So you will have to include it in your setup program when you distribute your application.

Author Comment

ID: 24222371
i executed the following command on windows command prompt

C:\Program Files\Microsoft Retail Management System\Store Operations\AddIns>gacutil /i membershipcards.dll

result :

'gacutil' is not recognized as operable program or batch file.

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

LVL 53

Expert Comment

ID: 24222378
You need to go to the directory where gacUtil is installed !

So you need to do
C:\WINDOWS\Microsoft.NET\Framework\<version>  > gacutil /i C:\Program Files\Microsoft Retail Management System\Store Operations\AddIns\membershipcards.dll

Author Comment

ID: 24222402
where and how to execute RegAsm.exe command , i mean windows command prompt is not recongnising it, but it is present in framework 2.0 folder

Author Comment

ID: 24223045
thanks to all. actually there is no gacutil command in framework 2.0.  we just have to drag drop our assembly to Assembly folder in system32 after running regasm command

Expert Comment

ID: 24223272
That is correct, I explained that Gacutil.exe is not included in the .NET Framework redistributable.  Please assign points to who deserves.

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses
Course of the Month15 days, 4 hours left to enroll

577 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question