Error when editing custom workflow task

8 posts, 0 answers
  1. Varp
    Varp avatar
    13 posts
    Member since:
    Mar 2007

    Posted 05 Aug 2008 Link to this post

    I have a WSS 3.0 portal and SharePoint Designer 2007. 
    RadEditor 5.2.0 has been successfully implemented and works very well.

    However, for a particular site & workflow one of it's steps involves gathering some variables through an assigned task.  One of these fields (Comments) is a multi-line text box.  If the option to "Allow rich HTML" is checked then when the assigned user visits the form to collect the data the following error is thrown in the server's application event log:

     

    Load control template file /_controltemplates/TelerikRadEditorHtml.ascx failed: Could not load file or assembly 'Microsoft.SharePoint.Publishing, Version=12.0.0.0, Culture=neutralPublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified. 
    Opening the generated .aspx file in SharePoint Designer shows that it is created dynamically at run-time.  How can I ensure that the correct "<%@ Register TagPrefix=" entry is in the page ?
    Is there a default I can use to ensure that radEditor loads without breaking the existing SharePoint resources ?

    e.g. the current page directives section looks like this:
    
    
    
    <%@ Page language="C#" MasterPageFile="~masterurl/default.master" title="New Page 1" inherits="Microsoft.SharePoint.WebPartPages.WebPartPage, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" meta:progid="SharePoint.WebPartPage.Document"%> 
    <%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
    <%@ Import Namespace="Microsoft.SharePoint" %> 
    <%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
    <%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %><asp:content id="content2" runat="server" contentplaceholderid="PlaceHolderMain"

  2. George
    Admin
    George avatar
    859 posts

    Posted 06 Aug 2008 Link to this post

    Hi Varp,

    Could you please open the controltemplates folder, delete the TelerikRadEditorHtml.ascx and then redeploy RadEditor?

    Is the problem still observed?

    Kind regards,
    George
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.

  3. Varp
    Varp avatar
    13 posts
    Member since:
    Mar 2007

    Posted 07 Aug 2008 Link to this post

    Yes, the problem is still observed.

    The TelerikRadEditorHtml.ascx file has been regenerated.

    When the Collect Data from a User action is used in the workflow and the Custom Form Field type is Multi-line Text and Allow rich HTML the error is still thrown.

    Load control template file /_controltemplates/TelerikRadEditorHtml.ascx failed: Could not load file or assembly 'Microsoft.SharePoint.Publishing, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified.

  4. George
    Admin
    George avatar
    859 posts

    Posted 07 Aug 2008 Link to this post

    Hi Varp,

    Excuse me for the omission.

    You are using WSS. Please delete the TelerikRadEditorHtml.ascx file and make sure that the editors' HMTL fields feature is not activated. If you activate it the TelerikRadEditorHtml.ascx will be automatically generated. Once, the TelerikRadEditorHtml.ascx file is deleted the problem should be resolved.

    I hope this helps.

    Regards,
    George
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  5. Varp
    Varp avatar
    13 posts
    Member since:
    Mar 2007

    Posted 07 Aug 2008 Link to this post

    Hi George,

    Clearly not installing or using the RadEditor would avoid it throwing errors, however so would not using rich HTML for multiline text boxes in workflow tasks.

    This is avoiding the problem rather than addressing it.  If I have avoid rather than address the problem then I will disable rich HTML for multi-line fields.  I would rather do this as the RadEditor is such a nice control to use everywhere else in the site.

    However, I was hoping that you could advise on a way which I could use the RadEditor for all rich text entry on the site including the custom task fields.

    If not, then at least I have highlighted a possible problem others may face when implementing Telerik RadEditor and Windows Workflow in future.

    Best Regards,
    Varp
  6. Lini
    Admin
    Lini avatar
    2144 posts

    Posted 11 Aug 2008 Link to this post

    Hi Varp,

    The TelerikRadEditorHtml.ascx file is only copied to the ControlTemplates folder if you enable the "Use RadEditor to edit HTML Fields" feature from the Site Features page. The template file overrides SharePoint's RichHtmlField template and displays RadEditor instead of the original content editor. The RichHtmlField template is not available in WSS v3, so enabling the HTML Fields feature has no effect in this case (apart from the exceptions you see in the application log).

    It seems that my colleague misled you when he directed you to this page - http://www.telerik.com/help/aspnet-ajax/using-radeditor-in-web-content-management-scenario.html. The page describes how to use the editor in a WCM scenario, which is also not available on a WSS v3 only site. I apologize for the mix-up.

    When you are using the RadEditor for MOSS in a WSS only environment, you only need to activate the List Items feature - http://www.telerik.com/help/aspnet-ajax/using-radeditor-in-list-items.html. This feature uses a different template file - TelerikRadEditorText.ascx and overrides the RichTextField SharePoint template.

    Best wishes,
    Lini
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  7. Varp
    Varp avatar
    13 posts
    Member since:
    Mar 2007

    Posted 11 Aug 2008 Link to this post

    Hi Lini,

    Thanks for the detailled explanation.  I have now disabled RADedit for HTML fields.

    Clearly you and George have both covered off this issue which I am very grateful for, however out of curiosity, is there any intention of making a radEditor which will work in HTML fields in WSS 3.0, or is this technically impractical ?

    Once again, thanks
    Varp
  8. Lini
    Admin
    Lini avatar
    2144 posts

    Posted 12 Aug 2008 Link to this post

    Hello Varp,

    I assume that you are referring to the pop-up HTML editor in WSS sites (e.g. when you edit the content of a basic page). Currently, we have no plans to support this scenario, but the enhancement is scheduled for a future release of the RadEditor for MOSS product.

    All the best,
    Lini
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top