 |
|
 |
Please anyone can told me how can I generate the string name & how to use it..
I stopped over there..
I really need this solution.
Thanks in advance.
|
|
|
|
 |
|
 |
Now i get the Page in the IE, But it is not displaying the controls
Getting Blank page with picture of cross mark in that, i am using .net 2008 and windows 7 server os, can u pls help to sort out this problem.
|
|
|
|
 |
|
 |
HI,
Your article was good, but got stuck in adding the clsid to the html file in the object tag,
as it shows the error.
Server Error in '/' Application.
--------------------------------------------------------------------------------
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).
Source Error:
Line 10: <body>
Line 11: <form id="form1" method="post" runat="server">
Line 12: <object id="windowstoweb" height="0" width="0" classid="clsid:B6C864C0-16CD-36D5-BB02-9DF6A1B2611A" VIEWASTEXT
Line 13: runat="server">
Line 14: <param name="Visible" value="true"/>
Source File: /default.aspx Line: 12
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.4961; ASP.NET Version:2.0.50727.4955
|
|
|
|
 |
|
 |
I have done all the steps upto step 8
But 9,10,11
I tried to register and it registers but in Regedit how to find the CLS ID
Regards,
T.Ajaykumar
|
|
|
|
 |
|
 |
After i execute my WindodsTOWeb.dll by using regsam.exe, i cant found my dll in CSLID in registry.
What shoud be the problem? Thanks.
|
|
|
|
 |
|
 |
Hey Thanks to all for giving the feedback .But the fact is i did this before 3 years for a very small application , its not advice able to do this for bigger application , because lot of security risk are there . and most of the secure n/w will block this .
|
|
|
|
 |
|
 |
i dont know how to create classs id for my window project,can anyone help me?
let me know the brief notes for this 10th and 11th steps.
expecting brilliant result from genius.
|
|
|
|
 |
|
 |
Hi
Thanks for posting such a nice article
In IE its working fine but in firefox the form is not displaying
any one know the solution for this?
Regards
Sunitha
Sunitha
|
|
|
|
 |
|
 |
hi, i have done what ever u have mentioned ,but iam not getting the result in my web page .
My Aspx page contains the following code
<object id="web" width="400" height="500" classid="CLSID:08556EAB-B0DF-482F-A0C5-0B7E5E14BB99">
</object>
My windows applications contains only a single button and label .
Thanks in Advance
Ezhil
|
|
|
|
 |
|
 |
hi friend,
i need ur help, u did almost all the steps.can u tell me how u did those steps. i struggle with 10th and 11th steps.
can u help me if possible.
thanks
Alexis
|
|
|
|
 |
|
 |
I found the answer for the ealier questions including others.
Help to find CLSID:
http://msdn2.microsoft.com/en-us/library/aa194267(office.11).aspx
I put the win.dll as reference to the web application. If you follow thru the step, it automatically adds .dll file when run the program.
I see the window form in the web page, but I do not see the contents, buttons, labels, etc.
Any help, please.
Thanks,
Sookhee
|
|
|
|
 |
|
 |
I have gone thru the steps to run the windows project in the web application.
When I run it, it produces an error:
A project with an Output Type of Class Library cannot be started directly.
..., add an executable project to this solution which references the library project. Set the executable proj as the startup proj.
When I run the web application as the startup proj, it pops out without the window ingredients.
Could you please help me how to create a web project exe file for this?
Thanks,
Sookhee
|
|
|
|
 |
|
 |
I found this article really useful and I am able to execute till step no. 10 But I am not able to do step no. 11. When I try to run gacutil.exe using this command
C:\WindowsTOWeb\WindowsTOWeb\obj\Debug>"C:\Program Files\Microsoft Visual Studio
.NET 2003\SDK\v1.1\Bin\gacutil.exe" /i WindowsTOWeb.dll
OR
C:\WindowsTOWeb\WindowsTOWeb\bin\Debug>"C:\Program Files\Microsoft Visual Studio
.NET 2003\SDK\v1.1\Bin\gacutil.exe" /i WindowsTOWeb.dll
I got the following error in both cases.
----
Microsoft (R) .NET Global Assembly Cache Utility. Version 1.1.4322.573
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.
Failure adding assembly to the cache: Attempt to install an assembly without a s
trong name
-----
What does thi gacutil.exe do?
how can I see CLSID generated in the registry and is CLSID generated in step 10 or step 11?
Thanks in advance and really appreciate your help......
Mihir
|
|
|
|
 |
|
 |
Man , I inserted that line in the VB code allready ... My problem was at gacutil ... still I managed to create an reg file for my dll and i registered it ... But I dont know from where to get my class ID and where to put it , so that the webservice to recognize my control ...
In your article the final step is some code where is an ClassID ... but I cant find this code ... So please tell what I do wrong and how can I complete this task
|
|
|
|
 |
|
 |
I find your article very interesting and I tried to make one simillar in my computer but I
can't find regasm and other program at all.
There are few explications at no 10 and 11 and I would like to ask you if you can datail.
Thnak you.
|
|
|
|
 |
|
 |
I created a strong name for my dll with sn ... names wintoweb.snk
After that I used regasm file like this :
regasm /tlb:wintoweb.tlb wintoweb.dll
it worked ok ... the problem will arise just now ...
when i execute "gacutil /i wintoweb.dll" the following error message appears :
FAILURE ADDING THE ASSEMBLY TO CACHE : ATTEMPT TO INSTALL AN ASEMBLY WITHOUT A STRONG NAME
|
|
|
|
 |
|
 |
After creating your Strong name you want to give the path of the strong name in assembleyinfo.cs file like this
[assembly: AssemblyKeyFile("C:\Strongname.snk")]
|
|
|
|
 |
|
 |
I have three questions:
First:
There are two Assembly.cs files. Should I put the strongname in the Windows or the Web application?
Second:
Please show how you use the regasm?
This is what I put: regasm D:\Dev0805\WinForms\WindowsTOWeb\bin\Debug\windowstoweb.dll
Is it correct?
Third:
How do you get CLSID in Step 10?
How do you add the <OBJECT> tag in HTML? Is it from the toolbox?
Thanks for your help.
|
|
|
|
 |
|
 |
1: I put the strongname in the Windows
2: C:\VSS\CADS\WebCADS\WinToWeb\WindowsToWeb\bin\Debug>C:\WINDOWS\Microsoft.NET\Fra
mework\v2.0.50727\RegAsm.exe /tlb:wintoweb.tlb WindowsToWeb.dll
Microsoft (R) .NET Framework Assembly Registration Utility 2.0.50727.42
Copyright (C) Microsoft Corporation 1998-2004. All rights reserved.
3: 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.
PLEASE HELP. THANKS A LOT.
|
|
|
|
 |
|
 |
After creating the Dll with strong name the CLSID can be created by using regasm.exe tool which is present in the c:Windows\Microsoft.net\framework\.....
when you pass your dll to regasm.exe the tool will create the CLSID the CLSID will be present in the registry of the system .copy the CLSID and paste in the HTML as shown above and proceed the process
|
|
|
|
 |
|
 |
Feel free to ask any question
|
|
|
|
 |
|
 |
Can you give a little more detail on what to do for step 11. I am able to do all the steps up to step 11 without any problems, but i am a little confused with what I am supposed to do for step 11.
|
|
|
|
 |
|
 |
After creating the Dll with strong name and by using regasm.exe tool which is present in the c:Windows\Microsoft.net\framework\.....you can create the CLSID
when you pass your dll to regasm.exe the tool it will create the CLSID. The CLSID will be present in the registry of the system .copy the CLSID and paste in the HTML as shown above and proceed the process
|
|
|
|
 |