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