Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
25
Deploying WebHTMLEditor to a GoDaddy hosted account
posted

I have an ASP.Net application that contains a WebHtmlEditor control (designed in VS 2008 using NetAdvantage Select 2009 Vol. 1 CLR35).  When I run the application locally it works fine (of course).  But when it it deployed to a GoDaddy shared hosting environment I receive the following error:

Cannot create an object of type 'Infragistics.WebUI.WebHtmlEditor.StringValueCollection' from its string representation 'Heading 1=<h1>&Heading 2=<h2>&Heading 3=<h3>&Heading 4=<h4>&Heading 5=<h5>&Normal=<p>' for the 'FontFormattingList' property.

The hosting server has the Shared and WebHtmlEditor dll's from the APTCA folder.  I tried clearing the FontFormattingList property but the error is then applied to the next property setting.  I would appreciate ANY help on this!  I am almost out of ideas.  Thank you!

  • 24497
    Verified Answer
    posted

    Hi,

    Some specific action within desing time (like adding another item to Toolbar) may trigger writing to aspx all collection properties of WebHtmlEditor. Under APTCA parsing those properties may raise exception.

    To solve that issue, I suggest you to manually remove all (or only string-collections) top level properties of WebHtmlEditor and keep only essential. Example:

    <ighedit:WebHtmlEditor ID="WebHtmlEditor1" runat="server" Height="340px" Width="650px">
    ...

    If you need to modify/customize values of string-collection properties, then you can do that at run time. Example:

    protected void Page_Load(object sender, EventArgs e)
    {
     
    //this.WebHtmlEditor1.FontSizeList.Clear();
     
    this.WebHtmlEditor1.FontSizeList.Add("8");
    }