After installing Feather I get "OpenAccessEnhancer" task could not be loaded
I've been at it for two days now, and could probably install sitefinity with my eyes closed. When I install it, everything works until I try to install feather.
I've followed everything listed here exactly: github.com/.../Getting-Started
However when I try and build the project I get the following error message:
Error 25 The "OpenAccessEnhancer" task could not be loaded from the assembly C:\Program Files %28x86%29\Telerik\Sitefinity 7.2\Projects\Feather\\packages\Telerik.DataAccess.Fluent.2014.2.918.1\tools\enhancer\enhancer.exe. Could not load file or assembly 'file:///C:\Program Files %28x86%29\Telerik\Sitefinity 7.2\Projects\Feather\packages\Telerik.DataAccess.Fluent.2014.2.918.1\tools\enhancer\enhancer.exe' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.
I've verified the enhancer.exe is there. I've tried the things mentioned in this thread: http://www.sitefinity.com/developer-network/forums/project-feather/assambly-missmatch-on-clean-install as well, but that didn't help either.
I was hoping someone with more experience with sitefinity/feather could weigh in.
Thanks in advance!
Hello,
The enhancer which appears to be missing should be retained by downloading a Nuget package. Please check if there is Telerik.DataAccess.Fluent.2014.2.918.1 folder in the packages folder. If there is another version there it must be causing a missmatch. In order for you to fix this, please re-install the Feather Packages nuget depicted as a prerequisite in our GitHub repository. This can be done through the Nuget console. Simply type Nuget console inside Visual Studios Quick Launch. From then you can install the package by typing:
Install-Package Telerik.DataAccess.Fluent -Version 2014.2.918.1
Hope this helps.
Regards,
Vassil Vassilev
Telerik
I am receiving the same error. I have checked and the folder and enhancer are present. However, what is interesting is the path listed in the error message:
The "OpenAccessEnhancer" task could not be loaded from the assembly D:\Program Files %28x86%29\Telerik\Sitefinity 7.2\Projects\Default\\packages\Telerik.DataAccess.Fluent.2014.2.918.1\tools\enhancer\enhancer.exe. Could not load file or assembly 'file:///D:\Program Files %28x86%29\Telerik\Sitefinity 7.2\Projects\Default\packages\Telerik.DataAccess.Fluent.2014.2.918.1\tools\enhancer\enhancer.exe' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. SitefinityWebApp
It would appear that there is a double slash in the message. Not sure if this is really an issue, but I cannot find anything else wrong.
Also, I am using Sitefinity 7.2.5310 and have added all the binding redirects in the web.config as such:
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Telerik.Sitefinity" publicKeyToken="b28c218413bdf563" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-7.2.5300.0" newVersion="7.2.5310.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Telerik.Sitefinity.Model" publicKeyToken="b28c218413bdf563" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-7.2.5300.0" newVersion="7.2.5310.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Telerik.Sitefinity.Utilities" publicKeyToken="b28c218413bdf563" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-7.2.5300.0" newVersion="7.2.5310.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Telerik.Sitefinity.Services.Events" publicKeyToken="b28c218413bdf563" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-7.2.5300.0" newVersion="7.2.5310.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Telerik.Sitefinity.Services.Comments" publicKeyToken="b28c218413bdf563" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-7.2.5300.0" newVersion="7.2.5310.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Telerik.Sitefinity.Personalization" publicKeyToken="b28c218413bdf563" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-7.2.5300.0" newVersion="7.2.5310.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Telerik.Sitefinity.Services.Notifications" publicKeyToken="b28c218413bdf563" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-7.2.5300.0" newVersion="7.2.5310.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Telerik.Sitefinity.Services.Documents" publicKeyToken="b28c218413bdf563" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-7.2.5300.0" newVersion="7.2.5310.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Telerik.Sitefinity.Services.Statistics" publicKeyToken="b28c218413bdf563" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-7.2.5300.0" newVersion="7.2.5310.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Telerik.Sitefinity.Search" publicKeyToken="b28c218413bdf563" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-7.2.5300.0" newVersion="7.2.5310.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Telerik.Sitefinity.Services.RecycleBin" publicKeyToken="b28c218413bdf563" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-7.2.5310.0" newVersion="7.2.5310.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Telerik.Sitefinity.ContentModules" publicKeyToken="b28c218413bdf563" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-7.2.5310.0" newVersion="7.2.5310.0" />
</dependentAssembly>
</assemblyBinding>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Telerik.OpenAccess" publicKeyToken="7ce17eeaf1d59342" culture="neutral" />
<bindingRedirect oldVersion="2014.2.910.1" newVersion="2014.2.918.1" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Telerik.OpenAccess.35.Extensions" publicKeyToken="7ce17eeaf1d59342" culture="neutral" />
<bindingRedirect oldVersion="2014.2.910.1" newVersion="2014.2.918.1" />
</dependentAssembly>
</assemblyBinding>
</runtime>
Hello Allen,
The instructions on the site indicate that you should do assembly binding redirection however I could advise you to test if it works without them and let us know for the result.
An other reason I can think of could be linked to your Visual Studio's cache. Please try and clear the cache and see if the behavior persists. Additionally you can try and set the Feather project on a different machine.
Hope this helps.
Regards,
Vassil Vassilev
Telerik
Did this get resolved? I'm having the same issue with the double slashes in the path to enhancer.exe
Hello,
I noticed that you have manged to work around this by changing the path to OpenAccess.targets in the csproj file. I am posting in this thread as well. Instead of the default path:
<
Import
Project
=
"OpenAccessNuget.targets"
/>
<
Import
Condition
=
"Exists('$(MSBuildExtensionsPath)\OpenAccess.targets')"
Project
=
"$(MSBuildExtensionsPath)\OpenAccess.targets"
/>