need your help.
Environment: Sharepoint 2013 SP1 Foundation, Visual Studio 2013 Community (also tried 2015,2017) with OfficeToolsForVS2013.
I`m new to Sharepoint solution development via Visual Studio, now trying to deploy simple List Workflow Farm Solution with only WriteToHistory action.
I followed this video as example. But I created a farm solution. Sandbox solution makes no difference.
On deploying I got error in Visual Studio:
Error 1 Error occurred in deployment step 'Add Solution':
Failed to load receiver assembly "Microsoft.SharePoint.WorkflowServices, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"
for feature "SharePointProject6_Feature1" (ID: bd69fc03-21de-49eb-8023-bea8fd211425).: System.IO.FileNotFoundException:
Could not load file or assembly 'Microsoft.SharePoint.WorkflowServices, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies.
File name: 'Microsoft.SharePoint.WorkflowServices, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)
at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.Load(String assemblyString)
at Microsoft.SharePoint.Administration.SPFeatureDefinition.get_ReceiverObject()
I also tried to Add solution (and install) (wsp) with Sharepoint Powershell, with Central Administation - it makes no difference to result.
In error text I see that version of assembly is 14, but everywhere in Visual Studio (for ex. in WF properties) the ver. is 15.
This article gives guidance to use gacutil -
And I tried to register with gacutil required dlls (Microsoft.SharePoint.WorkflowServices) - but in registered list no ver.14. and I don
t know where to got them.
Other article tells to install the hotfix KB2880963. But that hotfix applies only to SP Enterprise Edition, not to Foundation.
All it makes a sense, that I`m doing something (or may be everything?=)) wrong.
Already spent a full week to solve this problem, but got no result.
Thanks in advance for any kind of ideas.