FreeTextBox

The no. 1 free ASP.NET HTML Editor.
Welcome to FreeTextBox Sign in | Join | Help
in Search

Two dll files in one website

Last post 10-10-2008, 6:38 AM by Rik Yello. 2 replies.
Sort Posts: Previous Next
  •  10-10-2008, 4:06 AM 9517

    Two dll files in one website

    I have a question. I edited the source of the FreeTextBox and use this in my website. This DLL is named FreeTextBox.dll. Now I want to use on another page the original textbox. So I uploaded the orginel DLL and called it FreeTextBox1.dll.

    I use asp.net 1.1, so I changed the following things in my aspx page.

    <%@ Register TagPrefix="FTB" Namespace="FreeTextBoxControls" Assembly="FreeTextBox1" %>  

    I changed the following in the web.config

     <httpHandlers>
        <add verb="GET"
        path="FtbWebResource.axd"
        type="FreeTextBoxControls.AssemblyResourceHandler, FreeTextBox1" />
      </httpHandlers>

    But I got this error:

    The located assembly's manifest definition with name 'FreeTextBox1' does not match the assembly reference.

    Line 256:                <add assembly="System.EnterpriseServices, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
    Line 257:                <add assembly="System.Web.Mobile, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
    Line 258:                <add assembly="*"/>
    Line 259:            </assemblies>

    Has anyone any suggestions?

    Thanks in advance.

    Rik

     

  •  10-10-2008, 6:08 AM 9518 in reply to 9517

    Re: Two dll files in one website

    Hi Rik,

    I've come across this scenario with other 3rd party components.  Basically the DLL that you are calling FreeTextBox1.dll still has its assembly manifest calling itself FreeTextBox rather than FreeTextBox1.  Unfortunately you can't just change the name of the dll and include it in your project as a different dll.  .Net thinks you are trying to include the same dll twice.

    I think your best bet would be to keep the original dll and keep its name as FreeTextBox.dll. 

    Then, the dll that you are building from scratch, maybe call it FreeTextBox1.dll or MyFreeTextBox.dll or something.  But you would need to make sure to change all instances in the code of the word 'FreeTextBox' to your new assembly name (unless it's referring to the javascript, which you might want to reuse from the original copy).  Be sure to update the AssemblyInfo file as well.  When you compile everything into MyFreeTextBox.dll, or whatever the name is, you should be able to include this dll and not have the same conflict as before.

    Hope this helps a bit.

  •  10-10-2008, 6:38 AM 9519 in reply to 9518

    Re: Two dll files in one website

    Hello Drifter,

    Tnx for your reply and your complet answer.

    I will try to change FreeTextBox in MyFreeTextBox.

    Rik

     

View as RSS news feed in XML
www.freetextbox.com