locked
Rich text field error in web-form RRS feed

  • Question

  • Hi,

    I have a few rich text fields in a browser enabled infopath 2010 form. When I tried to submit it an error apppeared.

    Retrieving the COM class factory for component with CLSID {52F5D46F-CBEA-4D07-BCB7-7296853F0CF2} failed due to the following error: 80040154. System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {52F5D46F-CBEA-4D07-BCB7-7296853F0CF2} failed due to the following error: 80040154.
    at Microsoft.Office.InfoPath.Server.DocumentLifetime.EventRichTextChange.HtmlToCleanXHtml(String html, Boolean makeDomCompatible)

    .....

    I deleted all rich text fields the form was submitted successfully.

    Is this a bug of Infopath 2010? Is any ways to use rich text fields?

     

    Best Regards,

    Malnor

     

    Saturday, November 6, 2010 3:22 PM

Answers

  • Try execute this command: regsvr32 "C:\Program Files\Common Files\Microsoft Shared\

    OFFICE14\htmlchkr.dll"

    • Proposed as answer by Ernst Wolthaus Thursday, November 25, 2010 8:45 AM
    • Marked as answer by Malnor Sunday, January 29, 2012 3:17 PM
    Thursday, November 25, 2010 3:58 AM

All replies

  • Rich text fields do work.  There must be something special about your form or your fields.  After removing them all and submitting successfully, have you gone back and tried to add one, new rich text field to see if it works?  I've never seen that error, but I do use rich text fields.  I just tested a form right this moment to make sure.
    SharePoint Architect || Microsoft MVP || My Blog
    Planet Technologies || SharePoint Task Force
    Saturday, November 6, 2010 3:52 PM
  • Hi Clayton,

    Do you test a browser enabled form?

    I create a new form. The error appear again.

     

    Saturday, November 6, 2010 6:46 PM
  • Hi Clayton,

    Do you test a browser enabled form?

    I create a new form. The error appear again.

     


    Yes, I pretty much exclusively work with browser forms.  In fact, I haven't build a rich client form in over 2 years.
    SharePoint Architect || Microsoft MVP || My Blog
    Planet Technologies || SharePoint Task Force
    • Marked as answer by Aaron Han - MSFT Thursday, November 18, 2010 4:52 AM
    • Unmarked as answer by Clayton Cobb Monday, November 22, 2010 3:20 PM
    Saturday, November 6, 2010 6:48 PM
  • Hi all,

    Same here!

    I've defined a couple of Rich Text fields and added Rich Text boxes to the Infopath 2010 form.

    When trying to save, I get an error. Annoying thing is: I don't get an errordescription or correlation ID...

     

    Beste regards,
    Ernst Wolthaus

    Monday, November 22, 2010 1:14 PM
  • As I replied to Malnor:

    I get the same problem. I've defined a couple of Rich Text fields and added Rich Text boxes to the Infopath 2010 form.

    When trying to save, I get an error. Annoying thing is: I don't get an errordescription or correlation ID...

    More info: I'm using a Infopath 2010 form that is published to a forms lib.

    Best regards,
    Ernst Wolthaus
    Monday, November 22, 2010 1:14 PM
  • By default, they do work, so we'll need more info about your form in order to help resolve it.  You said it's a 2010 form published to a form library, but is it a browser form?
    SharePoint Architect || Microsoft MVP || My Blog
    Planet Technologies || SharePoint Task Force
    Monday, November 22, 2010 3:21 PM
  • Dear Clayton,

    I guess you mean the Form Type (under Advanced Options - Compatibility)?

    In that case yes: it's a Web Browser form.

    To test this and make sure there's no mistake in my complex Infopath form I've made a new, very basic, form:

    1. New SharePoint Form Library
    2. Added 1 Text field and 1 Rich Text field
    3. Published it to a new form library
    4. That's it...

    Now, when I fill the text field and save -> no problem

    But as soon as I fill in some plain text in the Rich Text field and press save, the browser (IE 8) reports an error.

    BTW: the rich text fields are not promoted properties.

    Monday, November 22, 2010 3:35 PM
  • What is the error?  How does it manifest itself?  Is it a pop-up with a Show Error Details link?
    SharePoint Architect || Microsoft MVP || My Blog
    Planet Technologies || SharePoint Task Force
    Monday, November 22, 2010 5:51 PM
  • Sorry to take so long...

    As I've said: It's a very simple infopath form, published to a form lib.

    Two fields; text & rich text.

    When I leave the rich text fields empty and press save, no problem. As soon as I fill the rich text box with some text (no formatting!) and press save, I get a popup  with an error. No correlation ID, no descriptive text, just the following text: 

    "There has been an error while processing the form" and 2 buttons: "try again" & "exit ' form"

    That's all. Nothing to see in ULSViewer as well...

    Wednesday, November 24, 2010 3:12 PM
  • That always generates something in the ULS logs.  If you're not seeing something there, then it's almost impossible to troubleshoot.  Rich Text fields work fine, although I never use the Save button, but that shouldn't have any bearing on the situation.
    SharePoint Architect || Microsoft MVP || My Blog
    Planet Technologies || SharePoint Task Force
    Wednesday, November 24, 2010 4:45 PM
  • Got it!

    There was a form postback error. (User: NJI-MOSS\uss_adm, Form Name:

    testform, IP: , Request:
    https://vsp.nji.nl/sites/Interventietest/_layouts/FormServer.aspx?XsnLocation=https://vsp.nji.nl/sites/Interventietest/testform/Forms/template.xsn&SaveLocation=https://vsp.nji.nl/sites/Interventietest/testform&Source=https://vsp.nji.nl/sites/Interventietest/testform/Forms/AllItems.aspx&DefaultItemOpen=1 ,
    Form ID: urn:schemas-microsoft-com:

    office:infopath:testform:-myXSD-2010-11-22T15-27-13,
    Type: InvalidCastException, Exception Message: Unable to cast COM
    object of type 'HTMLCHECKERLib.XMLPProcessorClass' to interface type
    'HTMLCHECKERLib.IHTMLtoXHTML'. This operation failed because the
    QueryInterface call on the COM component for the interface with IID
    '{A260B372-BC78-441B-8764-D0B83F4004F4}' failed due to the following
    error: Library not registered. (Exception from HRESULT: 0x8002801D
    (TYPE_E_LIBNOTREGISTERED)).)

    I googled some and I guess it's probably related to a misconfiguration on the SPS server.
    Any ideas what to do to repair?

     

    Wednesday, November 24, 2010 7:43 PM
  • Not sure what to repair, but at least it gives you another lead.
    SharePoint Architect || Microsoft MVP || My Blog
    Planet Technologies || SharePoint Task Force
    Wednesday, November 24, 2010 10:46 PM
  • Try execute this command: regsvr32 "C:\Program Files\Common Files\Microsoft Shared\

    OFFICE14\htmlchkr.dll"

    • Proposed as answer by Ernst Wolthaus Thursday, November 25, 2010 8:45 AM
    • Marked as answer by Malnor Sunday, January 29, 2012 3:17 PM
    Thursday, November 25, 2010 3:58 AM
  • Thanks Aleksandr!
    That did the trick! I registered the DLL on the webfrontend server and now it works!

    Thanks for your time, guys!
    Ernst Wolthaus

    Thursday, November 25, 2010 8:02 AM
  • Thanks Aleksandr!  That fixed our issue.

    Do you know what installs that DLL and if this DLL gets unregistered when Visual Studio 2008/2010 or InfoPath 2007 are uninstalled?  It looks like servers with those installed were not affected.


    Wednesday, March 23, 2011 1:10 PM
  • Thanks Aleksandr!!

    This fixed our error as well.  I also had to open the command 'run as administrator' to get it to register.

    Thanks again!

    Monday, October 10, 2011 11:52 PM
  • It works! Thanks..
    Monday, December 12, 2011 7:57 AM