sábado, 12 de julio de 2014

Error al activar una feature

Al deployar una feature mediante un desarrollo de Visual Studio, me lanza el error

Error    1    Error occurred in deployment step 'Activate Features': Failed to load receiver assembly "SPDeployTheme, Version=1.0.0.0, Culture=neutral, PublicKeyToken=0cfdef6acbfeb744" for feature "SPDeployTheme_CustomTheme" (ID: 6c79f87c-dc70-4b98-9965-0c4b5a9365dd).: System.IO.FileNotFoundException: Could not load file or assembly 'SPDeployTheme, Version=1.0.0.0, Culture=neutral, PublicKeyToken=0cfdef6acbfeb744' or one of its dependencies. The system cannot find the file specified.
File name: 'SPDeployTheme, Version=1.0.0.0, Culture=neutral, PublicKeyToken=0cfdef6acbfeb744'
   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()

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

SOLUCION

Primero revise que no esté la solución deployada, en el caso que esté, la remuevo

image

Hago un iisreset y reinicio el Sharepoint Timer Service

Después agrego un nuevo key para “signar” el assembly

image

Trato de deployar de nuevo la solución, y anduvo perfecto.

image

No hay comentarios:

Publicar un comentario