lundi 2 février 2015

Deploy feature error - my own mistake

I installed a custom list and a document library to a feature (web based).


Now I added a event reciver to the feature, but by mistake i added it to custom list instead of document library.


Me being stupid, changed the template id of document library (element.xml) thinking why event receiver wasn't working with it to same id of custom list.


Now when i figured out - i deleted the event receiver and changed document library template id back to what it was before, but now i keep getting this error,



------ Build started: Project: FruitFactory.Features, Configuration: Release Any CPU ------
FruitFactory.Features -> C:\Users\Merosu\Desktop\mySolution\FruitFactory\FruitFactory.Features\bin\Release\FruitFactory.Features.dll
------ Deploy started: Project: FruitFactory.Features, Configuration: Release Any CPU ------
Active Deployment Configuration: Default
Skipping deployment step because a pre-deployment command is not specified.
Recycle IIS Application Pool:
Recycling IIS application pool 'SharePoint - portal.fruitfactory.com'...
Retract Solution:
Retracting solution 'FruitFactory.features.wsp'...
Deleting solution 'FruitFactory.features.wsp'...
Add Solution:
Found 4 deployment conflict(s). Resolving conflicts ...
Deleted list instance 'Lists/Fruits' from server.
Deleted list instance 'Lists/Documents' from server.
Could not delete list instance 'Lists/Documents' from server.
Could not delete list instance 'Lists/Fruits' from server.
Deployment conflict resolution for one or more items failed. See the Output Window for details.
Adding solution 'FruitFactory.Features.wsp'...
Deploying solution 'FruitFactory.Features.wsp'...
Activate Features:
Activating feature 'DeployFruitFactory' ...
Error occurred in deployment step 'Activate Features': Failed to load receiver assembly "FruitFactory.Features, Version=1.0.0.0, Culture=neutral, PublicKeyToken=993748c7d43a763c" for feature "FruitFactory.Features_DeployFruitFactory" (ID: 57fe4bc3-22c2-4de6-b5c7-ea544c5b4b8c).: System.IO.FileNotFoundException: Could not load file or assembly 'FruitFactory.Features, Version=1.0.0.0, Culture=neutral, PublicKeyToken=993748c7d43a763c' or one of its dependencies. The system cannot find the file specified.
File name: 'FruitFactory.Features, Version=1.0.0.0, Culture=neutral, PublicKeyToken=993748c7d43a763c'
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].

========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========
========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========

Aucun commentaire:

Enregistrer un commentaire