Windows Control on Web Form
-
Hi friends, I am stuck in a strange problem. I am trying to host Windows Custom Control on Webpage. I created a Windows Control Libray and put the DLL in the web application's root folder. in aspx page I have written object tag with classid="http:ControlLibrary.dll#ControlLibrary.ListBosDrag" Now when I open the page using url "http://localhost/DragDropWeb/Default.aspx" it works fine. but when I replace localhost with 127.0.0.1 it stops working means windows control appears as a small inaccessible box on the page. I tried by putting my DLL in C:\Inetpub\wwwroot, but didnt work. I also change the classid to "Client/1.0.0.0/ControlLibrary.dll#ControlLibrary.ListBosDrag", that too didnt work. I am not sure if I am missing something somewhere or doing something wrong. Please help me. Thank you all in advance.
Thanks and Regards, Chetan Ranpariya
-
Hi friends, I am stuck in a strange problem. I am trying to host Windows Custom Control on Webpage. I created a Windows Control Libray and put the DLL in the web application's root folder. in aspx page I have written object tag with classid="http:ControlLibrary.dll#ControlLibrary.ListBosDrag" Now when I open the page using url "http://localhost/DragDropWeb/Default.aspx" it works fine. but when I replace localhost with 127.0.0.1 it stops working means windows control appears as a small inaccessible box on the page. I tried by putting my DLL in C:\Inetpub\wwwroot, but didnt work. I also change the classid to "Client/1.0.0.0/ControlLibrary.dll#ControlLibrary.ListBosDrag", that too didnt work. I am not sure if I am missing something somewhere or doing something wrong. Please help me. Thank you all in advance.
Thanks and Regards, Chetan Ranpariya
The IP address you gave is the localhost isnt it. You need to check within the DLL if the name Localhost is specified, although normally it allows for both IP address and localhost. Have you tried compiling your project again and putting the dll in the bin folder? Ive never encountered this error before so these are only suggestions :)
-
The IP address you gave is the localhost isnt it. You need to check within the DLL if the name Localhost is specified, although normally it allows for both IP address and localhost. Have you tried compiling your project again and putting the dll in the bin folder? Ive never encountered this error before so these are only suggestions :)
Hi, Thank you very much for the reply. You are right the IP address 127.0.0.1 is for localhost. But I dont know how but they works in different way. I am not putting my Control DLL in bin folder of my WebSite (rememeber its WebSite not Web Application) but i am putting it in WebApp folder itself and it working fine for localhost. I tried by creating a web site on server 127.0.0.1 instead of localhost. It created a the project at the same place as it creates when we use localhost it is C:\Inetpub\localhost. Then I tried with differenct syntaxes of classid of OBJECT tag. classid="clsid:41a5e061-af81-4e45-b383-33948f4f6269" classid="http:DragAndDropControlLibrary.dll#DragAndDropControlLibrary.ListboxDrag" Still it did not work. I tried to put the Control DLL to the bin folder of the website but could not succeed. I hope this can clear the area. Thank you again.
Thanks and Regards, Chetan Ranpariya