specialist4u
asked on
how to register a .net dll on a system where visual studios is not installed
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.
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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.
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.
You need to go to the directory where gacUtil is installed !
So you need to do
C:\WINDOWS\Microsoft.NET\F ramework\< version> > gacutil /i C:\Program Files\Microsoft Retail Management System\Store Operations\AddIns\membersh ipcards.dl l
So you need to do
C:\WINDOWS\Microsoft.NET\F
ASKER
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
ASKER
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
That is correct, I explained that Gacutil.exe is not included in the .NET Framework redistributable. Please assign points to who deserves.
Go to that directory with a command prompt and execute "gacutil /i membershipcards.dll"
2. You can create an msi-file