How to use IE WebControls in VS 2008?

Last post 10-26-2009 6:21 AM by TokyoBrit. 2 replies.

Sort Posts:

  • How to use IE WebControls in VS 2008?

    07-21-2008, 11:12 PM
    • Member
      4 point Member
    • rafferty_uy
    • Member since 07-22-2008, 3:07 AM
    • Posts 12

    Hi,

    I recently got my hands on an old ASP.Net 1.1 web application and I am trying to open it in my VS 2008 ide. I'm having problems getting it to compile because of the missing Microsoft.Web.UI.WebControls dll.

    After much searching, I found out that I had to install IIS and download and install the IE Web Controls (http://www.microsoft.com/DOWNLOADS/details.aspx?familyid=FAC6350C-8AD6-4BCA-8860-8A6AE3F64448&displaylang=en), please check if the link is correct.

    But after installing and rebooting, I still do not see the assembly in my visual studio reference list.

    What should I do next?

     

    Thanks!

    Rafferty
     

    Filed under:
  • Re: How to use IE WebControls in VS 2008?

    09-21-2009, 8:10 PM
    • Member
      342 point Member
    • bass4g0d
    • Member since 10-22-2007, 10:53 PM
    • Portugal
    • Posts 72

    Add the dll to your project references browsing by it location.

    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
  • Re: How to use IE WebControls in VS 2008?

    10-26-2009, 6:21 AM
    • Member
      2 point Member
    • TokyoBrit
    • Member since 02-24-2009, 2:33 AM
    • Posts 1

    If you use the IEWebControl.msi installer program, it registers the assembly in the GAC. My understanding was that GAC registered assemblies should show up in the list under the .NET tab for references, and should not need to be browsed for.

    Not a problem if this is not the case, but it does leave us with inconsistant actions depending on the assembly being installed.

    More importanly however, is that if you used the IEWebControls.exe installer, and manually built the assembly using build.bat, then you could run into the "The located assembly's manifest definition with name 'Microsoft.Web.UI.WebControls' does not match the assembly reference." error. That is because the .msi from the Microsoft downloads site has a strong name, but the one built from the .exe does not.

    This is especially true when the web site using the controls is for Commerce Server, or was written in a language other than English, as the Microsoft Downloads file is the one usually found in non-English web searches.

    Even then, it's not guaranteed to work as I get a:

    Compiler Error Message: CS1595: 'Microsoft.Web.UI.WebControls.Tab' is defined in multiple places; using definition from 'c:\WINDOWS\assembly\GAC\Microsoft.Web.UI.WebControls\1.0.2.226__31bf3856ad364e35\Microsoft.Web.UI.WebControls.dll'

    No idea where the other definition is as I never installed the .exe version of IEWebControls, and the compiler output doesn't tell me either.

Page 1 of 1 (3 items)