Click here to Skip to main content
13,193,442 members (45,499 online)
Rate this:
Please Sign up or sign in to vote.
Hi all,
I have a windows application, now i want to use this windows application in web application. i goggled lot and finally found the following solution. please see the below link.

Using Windows Application on web[^]

but I am now stuck at step 11: I attempted to run RegEdit.exe and Find the WindowsToWeb.dll but I receive no result even I can see in the folder C:\Windows\Assembly, I have the WindowsToWeb.dll assembly is successfully registered there.

can any one help me out on this.
Posted 18-Dec-12 18:34pm
Updated 18-Dec-12 19:28pm
Abhishek Pant 19-Dec-12 1:22am
why dont you ask from article owner.
Sanjeev Alamuri 19-Dec-12 1:24am
There are lot of questions left over there without answers in that article. if know please let me know.
chester_it21 19-Dec-12 8:33am
you use. .Net Framework what ..?..
because location GACUTIL.exe,will be differ by .Net Framework..
could be, gacutil.exe you used to register it to the Registry, etc. do not match .net framework you use in applications...
may be, this being one of the causes of his ..

1 solution

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

Solution 1

Do I have the correct understanding of the issue?

Your on step 11 so your creating the Object Tag within your ASPX page and you are going into the Registry looking for the CLSID, correct?

If so, I believe you've had a mishap on Step 10 because this step will write it information your looking for into the Registry. Try repeating Step 10 using this on the command line >regasm "[full path]\WindowsToWeb.dll" /regfile:"[full path]\WindowsToWeb.reg"

This will create the .reg file instead of executing it.

Now you can navigate to the WindowsToWeb.reg file and open in notepad to view the CLSID.

To execute this WindowsToWeb.reg, simply double click on it and Windows will take care of the rest.

Also, on Step 9 the author talks about the "AssemblyInfo.cs" file to add the,
[assembly: AssemblyKeyFile("c:\strongname.snk")] attribute

Within this file you can set the following Assembly attributes (copied from VS 2010 C# Class Library Template):
// Setting ComVisible to false makes the types in this assembly not visible 
// to COM components.  If you need to access a type in this assembly from 
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(true)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("281ba28c-387b-44ae-8197-2ae99dd71b82")]

Enable ComVisible and generate a new GUID for your dll.

I remember reading "Using Windows Application on web" by as_prabahar shortly after it was published, it was an interesting concept. I hope this helped.
Sanjeev Alamuri 26-Dec-12 1:42am
Thanks for ur reply Are Jay. but when i tried the above step 10 as u said, im facing the following error.

here this is my cmd input

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>regasm.exe C:\Inetpub\wwwroot\VS20 05\WINBasic.dll /regfile: C:\Inetpub\wwwroot\VS2005\WindowsToWeb.reg

"No registry script will be produced since there is no types is register". please let me know, im stuck here for many days.
Sanjeev Alamuri 26-Dec-12 3:28am
Thanks Are Jay, successfully generated ClassId for my dll.
Are Jay 26-Dec-12 20:44pm
Glad to hear it.

So all is working well now?

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 |
Web04 | 2.8.171018.2 | Last Updated 24 Dec 2012
Copyright © CodeProject, 1999-2017
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