Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Email Invite Plugin error from sending out VoC survey request workflow

Posted on by 37

We use a workflow to send out survey request email once a case is resolved. However, sending the email keeps failing. The error details is as follows. Could anyone please advise? (I use piped data in the survey, not sure if it's relevant.) Previously when I tested the workflow it went okay, then when it's put into live, we got the send-as user privilege issue, which has been resolved, and now we've got this error... Our CRM was upgraded over the weekend to 9.0.

-----------------

Plugin Trace:

[Microsoft.Xrm.Sdk.Workflow: Microsoft.Xrm.Sdk.Workflow.Activities.SendEmail]
[SendEmailStep3: Send survey email]

    
    [Microsoft.Crm.Surveys.Plugins.Merged: Microsoft.Crm.Surveys.Plugins.EmailInvitePlugin]
    [139db522-b7c6-e111-a6b5-00155d230e08: Microsoft.Crm.Surveys.Plugins.EmailInvitePlugin: Create of email]
    1
    9e479c2d-2731-e711-811d-e0071b6ad011
    3
    4
    5
    7
    Exception: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: System.IO.FileLoadException: Could not load file or assembly 'Microsoft.Crm.SafeHtml, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
    File name: 'Microsoft.Crm.SafeHtml, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
       at Microsoft.Crm.Surveys.Common.Logic.HtmlUtility.RemoveInvalidHtmlTags(String input)
       at Microsoft.Crm.Surveys.Plugins.InvitationPlugin.AddPipe(String attributeName, Int32 type, XmlWriter writer, Entity changedEntity)
       at Microsoft.Crm.Surveys.Plugins.InvitationPlugin.GetSlug(Guid activityId, VocPluginContext vocPluginContext)
       at Microsoft.Crm.Surveys.Plugins.InvitationPlugin.ExecutePluginLogic(VocPluginContext vocPluginContext)
       at Microsoft.Crm.Surveys.Plugins.BasePlugin.Execute(IServiceProvider serviceProvider)
    
    WRN: Assembly binding logging is turned OFF.
    To enable assembly bind failur... (Fault Detail is equal to Exception details:
    ErrorCode: 0x80040265
    Message: System.IO.FileLoadException: Could not load file or assembly 'Microsoft.Crm.SafeHtml, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
    File name: 'Microsoft.Crm.SafeHtml, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
       at Microsoft.Crm.Surveys.Common.Logic.HtmlUtility.RemoveInvalidHtmlTags(String input)
       at Microsoft.Crm.Surveys.Plugins.InvitationPlugin.AddPipe(String attributeName, Int32 type, XmlWriter writer, Entity changedEntity)
       at Microsoft.Crm.Surveys.Plugins.InvitationPlugin.GetSlug(Guid activityId, VocPluginContext vocPluginContext)
       at Microsoft.Crm.Surveys.Plugins.InvitationPlugin.ExecutePluginLogic(VocPluginContext vocPluginContext)
       at Microsoft.Crm.Surveys.Plugins.BasePlugin.Execute(IServiceProvider serviceProvider)
    
    WRN: Assembly binding l...).
    


Error Message:

Unhandled Exception: Microsoft.Xrm.Sdk.InvalidPluginExecutionException: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: System.IO.FileLoadException: Could not load file or assembly 'Microsoft.Crm.SafeHtml, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
File name: 'Microsoft.Crm.SafeHtml, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
   at Microsoft.Crm.Surveys.Common.Logic.HtmlUtility.RemoveInvalidHtmlTags(String input)
   at Microsoft.Crm.Surveys.Plugins.InvitationPlugin.AddPipe(String attributeName, Int32 type, XmlWriter writer, Entity changedEntity)
   at Microsoft.Crm.Surveys.Plugins.InvitationPlugin.GetSlug(Guid activityId, VocPluginContext vocPluginContext)
   at Microsoft.Crm.Surveys.Plugins.InvitationPlugin.ExecutePluginLogic(VocPluginContext vocPluginContext)
   at Microsoft.Crm.Surveys.Plugins.BasePlugin.Execute(IServiceProvider serviceProvider)

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failur... (Fault Detail is equal to Exception details:
ErrorCode: 0x80040265
Message: System.IO.FileLoadException: Could not load file or assembly 'Microsoft.Crm.SafeHtml, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
File name: 'Microsoft.Crm.SafeHtml, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
   at Microsoft.Crm.Surveys.Common.Logic.HtmlUtility.RemoveInvalidHtmlTags(String input)
   at Microsoft.Crm.Surveys.Plugins.InvitationPlugin.AddPipe(String attributeName, Int32 type, XmlWriter writer, Entity changedEntity)
   at Microsoft.Crm.Surveys.Plugins.InvitationPlugin.GetSlug(Guid activityId, VocPluginContext vocPluginContext)
   at Microsoft.Crm.Surveys.Plugins.InvitationPlugin.ExecutePluginLogic(VocPluginContext vocPluginContext)
   at Microsoft.Crm.Surveys.Plugins.BasePlugin.Execute(IServiceProvider serviceProvider)

WRN: Assembly binding l...).


*This post is locked for comments

  • Ahtasham01 Profile Picture
    Ahtasham01 5 on at
    RE: Email Invite Plugin error from sending out VoC survey request workflow

    Very happy after read voice over customer

  • Zenmarc Profile Picture
    Zenmarc 25 on at
    RE: Email Invite Plugin error from sending out VoC survey request workflow

    This error occurs due to having a problem with the plugin, I am using the WordPress survey plugin in my WordPress website and go through this guide and after changing 2 plugins, I have found the best one WPForms.

  • Lowprofiler Profile Picture
    Lowprofiler 37 on at
    RE: Email Invite Plugin error from sending out VoC survey request workflow

    Hi, I opened a ticket with MS Support and they fixed it. They said they had to do a few things in the program to fix the issue, but no details.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Email Invite Plugin error from sending out VoC survey request workflow

    Did you find a solution or way to make it work?
    I'm facing the same issue in my current online test environement.

    Appreciate any help here, thanks!

  • Lowprofiler Profile Picture
    Lowprofiler 37 on at
    RE: Email Invite Plugin error from sending out VoC survey request workflow

    Hi Temmy,

    Thanks for your reply. I upgraded VoC to v.9 but still got the same error, even after I tried recreating my survey and the workflow that triggered the email sending... Seems the system somehow is still not recognizing the new version but using the old one...

  • Verified answer
    Temmy Wahyu Raharjo Profile Picture
    Temmy Wahyu Raharjo 2,914 on at
    RE: Email Invite Plugin error from sending out VoC survey request workflow

    Based on the error code, I think you should upgrade your VOC solution to the latest one too. Because dll Microsoft.Crm.SafeHtml, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 now not found in you CRM instance.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans