FreeTextBox

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

FTB and Asp.Net 2.0 Beta2

Last post 10-05-2005, 2:39 PM by Quango. 17 replies.
Page 1 of 2 (18 items)   1 2 Next >
Sort Posts: Previous Next
  •  07-21-2005, 6:24 PM 4527

    FTB and Asp.Net 2.0 Beta2

    Hi,

    I have tried to install FTB 3.05 in Asp.Net 2.0 Beta2, without any luck.

    I get the following error:
    Failed to map the path '/aspnet_client/FreeTextBox/Languages/en-US.xml'.

    From what I read, FTB should get all supportfiles from the dll, why is it failing with the above error then?

    I copied FreeTextBox.dll into my bin dir, and added the following to my Form.aspx file:

    <%

    @RegisterAssembly="FreeTextBox"Namespace="FreeTextBoxControls"TagPrefix="FTB" %>

    Plus to create the TextBox:

    <

    FTB:FreeTextBoxID="FreeTextBox1"runat="server"></FTB:FreeTextBox>

    Any suggestions?

    Thanks :)
  •  07-25-2005, 2:08 AM 4541 in reply to 4527

    Re: FTB and Asp.Net 2.0 Beta2

    Hi,

    You need to change the textbox creation into :

    <

    FTB:FreeTextBoxID="txtBody"runat="server"SupportFolder="~/aspnet_client/FreeTextBox/"JavaScriptLocation="ExternalFile"ButtonImagesLocation="ExternalFile"ToolbarImagesLocation="ExternalFile">

    </FTB:FreeTextBox>



    where aspnet_client   is the folder where you store all your FreeTextBox data.

    grtz

    koen
  •  07-29-2005, 10:38 AM 4567 in reply to 4541

    Re: FTB and Asp.Net 2.0 Beta2

    I am having a problem getting FTB 3.05 to work with Beta 2 as well. 
    I copied FreeTextBox.dll into the Bin directory. 
    I have this at the top of my page:
    <%@ Register Assembly="FreeTextBox" Namespace="FreeTextBoxControls" TagPrefix="FTB" %>

    I also put in:

                       


    Do I actually need to have a aspnet_client folder somewhere?
    By the way, my FTB is inside of a InsertItemTemplate in a FormView on a page inside of a MasterPage.
  •  08-02-2005, 12:17 PM 4583 in reply to 4527

    Re: FTB and Asp.Net 2.0 Beta2

    I have the same problem.
    When I try to use the control in design mode I get the error:

    Error Creating Control - FreeTExtBox1
    Object not set to an instance of an object.

    When I create the control in my page class and debug I found the following for the clientID:

    'freetext.ClientID' threw an exception of type 'System.NullReferenceException'

    Please help
    Bart

  •  08-16-2005, 10:47 AM 4651 in reply to 4527

    Re: FTB and Asp.Net 2.0 Beta2

    hrmm, this may be a silly question, but where is the bin folder in asp.net 2 beta 2?? app_code?
  •  08-17-2005, 1:04 PM 4658 in reply to 4527

    Re: FTB and Asp.Net 2.0 Beta2

    I got mine to display on the page at least. I added the .net 2.0 dll as a reference and it added it to the bin folder for me.

    I then had to put the code i have included in my web.config to make the images be pulled from the .dll (the wiki said you only had to do this for the asp.net 1.1

    I still can't get it into edit mode but just figuring this out as I go along.



       

    <

    httpHandlers>

    <

    addverb="GET"path="FtbWebResource.axd"type="FreeTextBoxControls.AssemblyResourceHandler, FreeTextBox" />

    </

    httpHandlers>
      


     


  •  08-17-2005, 1:20 PM 4659 in reply to 4658

    Re: FTB and Asp.Net 2.0 Beta2

    Bah. Even though I have the web handler in there, it isn't recognizing it except for the images. it keeps telling me that it is not set up appropriately.
  •  08-24-2005, 2:32 PM 4683 in reply to 4527

    Re: FTB and Asp.Net 2.0 Beta2

    Try publishing your website, I was having simmilar issues then I deployed the application to my localhost and it worked fine.

    I think its the development server that vs2005 uses, it doest map to your aspnet_client correctly


    BP:ANDREW
    www.bitporters.net

  •  08-24-2005, 2:47 PM 4684 in reply to 4527

    Re: FTB and Asp.Net 2.0 Beta2

    Ok, i now have it working in my vs2005 ASP.net dev server too, I moved my aspnet_client folder into the FILE path of my development project.


    <

    FTB:FreeTextBoxSupportFolder="/[my development folder]/aspnet_client/freetextbox"EnableToolbars="false"ID="ftbResume"runat="server"EnableHtmlMode="false">I would also like to mention I had to add the http handler

    <

    httpHandlers>

    <

    addverb="GET"path="FtbWebResource.axd"type="FreeTextBoxControls.AssemblyResourceHandler, FreeTextBox" />

    </

    httpHandlers>

    to get this thing working

    Good luck

    BP:ANDREW
    www.bitporters.net
  •  09-23-2005, 6:02 PM 4816 in reply to 4541

    Re: FTB and Asp.Net 2.0 Beta2

     vantoko wrote:
    Hi,

    You need to change the textbox creation into :

    <

    FTB:FreeTextBoxID="txtBody"runat="server"SupportFolder="~/aspnet_client/FreeTextBox/"JavaScriptLocation="ExternalFile"ButtonImagesLocation="ExternalFile"ToolbarImagesLocation="ExternalFile">

    FTB:FreeTextBox>



    where aspnet_client   is the folder where you store all your FreeTextBox data.

    grtz

    koen


    I'm afraid, Vantoko, that you misunderstood the question.  We want to avoid using aspnet_client, as the claim from the freetextbox web site is that we don't need it any more with FreeTextBox 3.0.  It's supposed to pull all of its resources out of the .dll assembly itself.  Yes, adding the folder fixes it, but we're trying to avoid the extra folder.
  •  09-23-2005, 6:03 PM 4817 in reply to 4651

    Re: FTB and Asp.Net 2.0 Beta2

     dEuS wrote:
    hrmm, this may be a silly question, but where is the bin folder in asp.net 2 beta 2?? app_code?


    Here's the structure of an ASP.NET 2.0 web app:


    /Web (or some name for your web app)
    /Web/Default.aspx (home page, for example)
    /Web/App_Code (source files go here)
    /Web/App_Code/someclass.cs
    /Web/Bin (assemblies go here)
    /Web/Bin/FreeTextBox.dll
  •  09-23-2005, 6:09 PM 4818 in reply to 4683

    Re: FTB and Asp.Net 2.0 Beta2

     Bitporters wrote:

    Try publishing your website, I was having simmilar issues then I deployed the application to my localhost and it worked fine.

    I think its the development server that vs2005 uses, it doest map to your aspnet_client correctly



    I tried publishing.  It didn't help at all.  :( 

    And there isn't supposed to be an aspnet_client directory any more with FreeTextBox 3.0, so it shouldn't matter if vs2005 can't map it correctly.
  •  09-23-2005, 11:42 PM 4820 in reply to 4527

    Re: FTB and Asp.Net 2.0 Beta2

    ceder:
    Hi,

    I have tried to install FTB 3.05 in Asp.Net 2.0 Beta2, without any luck.

    I get the following error:
    Failed to map the path '/aspnet_client/FreeTextBox/Languages/en-US.xml'.

    From what I read, FTB should get all supportfiles from the dll, why is it failing with the above error then?

    I copied FreeTextBox.dll into my bin dir, and added the following to my Form.aspx file:

    <%

    @RegisterAssembly="FreeTextBox"Namespace="FreeTextBoxControls"TagPrefix="FTB" %>

    Plus to create the TextBox:

    <

    FTB:FreeTextBoxID="FreeTextBox1"runat="server">FTB:FreeTextBox>

    Any suggestions?

    Thanks :)


    I finally found the fix for this and the other bugs between me and getting complete rid of aspnet_client.  See my blog on it for the full answer.
  •  09-25-2005, 4:51 AM 4831 in reply to 4567

    Re: FTB and Asp.Net 2.0 Beta2

    Thank you Andrew for you excellant blog at http://darnitwebdev.blogspot.com/2005/09/how-i-got-freetextbox-3.html

    I am looking forward to applying the fix.

    Like you I look forward to the author updating FTB to work out of the box with ASP.NET 2.0 and to provide some sensible display at designtime. Currently I find that it disables the rendering of all controls at design time.
  •  09-25-2005, 3:28 PM 4833 in reply to 4527

    Re: FTB and Asp.Net 2.0 Beta2

    ceder:
    I get the following error:
    Failed to map the path '/aspnet_client/FreeTextBox/Languages/en-US.xml'.

    From what I read, FTB should get all supportfiles from the dll, why is it failing with the above error then?

    I copied FreeTextBox.dll into my bin dir, and added the following to my Form.aspx file:

    <%

    @RegisterAssembly="FreeTextBox"Namespace="FreeTextBoxControls"TagPrefix="FTB" %>

    Plus to create the TextBox:

    <

    FTB:FreeTextBoxID="FreeTextBox1"runat="server">FTB:FreeTextBox>

    Any suggestions?

    Thanks :)


    You are leaving out the SupportFolder attribute from the <FTB:FreeTextBox> tag.  You should specify it, and set it to where your aspnet_client/FreeTextBox folder is.  Alternatively, since FTB 3.x is supposed to support working without aspnet_client, you can go without it, but there are a few bugs in FTB 3 that preven tit.

    I finally found the fix for this and the other bugs between me and getting complete rid of aspnet_client.  See my blog on it for the full answer.
Page 1 of 2 (18 items)   1 2 Next >
View as RSS news feed in XML
www.freetextbox.com