Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#2.0 Windows WebForms
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 19:34pm
Edited 18-Dec-12 20:28pm
v3
Comments
Abhishek Pant at 19-Dec-12 1:22am
   
why dont you ask from article owner.
Sanjeev Alamuri at 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 at 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
good
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,
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.
  Permalink  
Comments
Sanjeev Alamuri at 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 at 26-Dec-12 3:28am
   
Thanks Are Jay, successfully generated ClassId for my dll.
Are Jay at 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
0 George Jonsson 215
1 Kornfeld Eliyahu Peter 169
2 OriginalGriff 120
3 PIEBALDconsult 110
4 Zoltán Zörgő 99
0 OriginalGriff 6,165
1 DamithSL 4,658
2 Maciej Los 4,087
3 Kornfeld Eliyahu Peter 3,649
4 Sergey Alexandrovich Kryukov 3,294


Advertise | Privacy | Mobile
Web03 | 2.8.141220.1 | Last Updated 24 Dec 2012
Copyright © CodeProject, 1999-2014
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