Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Windows Control on Web Form

Windows Control on Web Form

Scheduled Pinned Locked Moved ASP.NET
help
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Chetan Ranpariya
    wrote on last edited by
    #1

    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

    E 1 Reply Last reply
    0
    • C 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

      E Offline
      E Offline
      eyeseetee
      wrote on last edited by
      #2

      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 :)

      C 1 Reply Last reply
      0
      • E eyeseetee

        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 :)

        C Offline
        C Offline
        Chetan Ranpariya
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups