Click here to Skip to main content
15,886,873 members
Please Sign up or sign in to vote.
5.00/5 (1 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
Updated 18-Dec-12 19:28pm
v3
Comments
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

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,
Quote:
[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.
 
Share this answer
 
Comments
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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900