Click here to Skip to main content
11,927,190 members (48,647 online)
Rate this:
Please Sign up or sign in to vote.
See more: .NET2.0 C#2.0 C# .NET
Hi, can anybody help on this, How to create CLSID (Class Id) for dll using regasm.exe

Posted 18-Dec-12 0:20am
Edited 18-Dec-12 1:41am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

You should use GUIDGEN.exe to create CLSID. found another article to create CLSID using regasm.exe but its not that true i guess. give a try.

By calling
regasm.exe /codebase /tlb whatever.dll
depending on your needs, /codebase or /tlb might not be needed (i.e. you can also try just regasm.exe whatever.dll).


To get the CLSID from GUIDGen.
Open Visual Studio-->Tools-> menu
select GUID select the Registry format as given in the pic[^] press copy.
Sanjeev Alamuri 18-Dec-12 6:02am
Thanks for reply, this was already tried. but not solved.
jibesh 18-Dec-12 6:09am
how about GUIDGEN.exe ? it will create a UNIQ ID for you. we used the same when we work with COM.
Sanjeev Alamuri 18-Dec-12 6:43am
Okay but how? please let me with brief explanation.
jibesh 18-Dec-12 15:21pm
check my updated solution
Sanjeev Alamuri 18-Dec-12 23:50pm
Thanks jibesh. Actually im are working on "window in webforms", i mean displaying windows form in webpage. i googled and found the following link.
please have a look at this link, there im facing the problem at 11 point.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web03 | 2.8.151126.1 | Last Updated 18 Dec 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100