Error while deploying
-
13. června 2012 9:55
Hi,
I have added and event receiver to the feature. and this code will and tags to the webconfig.
the feature scope is webapplication. it worked good initially while i deployed from VS to Sharepoint 2010.
I tried deploying the .wsp file using poweshell, the system started trowing below error .
after which whatever i do, deploy from VS, change the directory path, name sapce, restart the system, IIS... I keep getting this error
----------------------------------------------------------------------------------------------------------------------------
Error occurred in deployment step 'Add Solution': Failed to load receiver assembly "Change, Version=1.0.0.0, Culture=neutral, PublicKeyToken=56ca7ec4a454e425" for feature "Change_Change" (ID: c66a802e-39da-4e72-a555-b28d1a09542c).: System.IO.FileNotFoundException: Could not load file or assembly 'Change, Version=1.0.0.0, Culture=neutral, PublicKeyToken=56ca7ec4a454e425' or one of its dependencies. The system cannot find the file specified.
File name: 'Change, Version=1.0.0.0, Culture=neutral, PublicKeyToken=56ca7ec4a454e425'
at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.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].
0 0 Change
-------------------------------------------------------------------------------------------Any advice or help is needed.
Thanks
Všechny reakce
-
13. června 2012 12:31
Hi Nick,
It seems that, your solution dll is not getting copied to GAC. Here are the two links having the same error while deploying. Hope this will help you to resolve the issue.
Please remember to click "Mark As Answer" if a post solves your problem or "Vote As Helpful" if it was useful. It'll help other users who are visiting your thread for the similar problem.
- Navržen jako odpověď Bjoern H RappMicrosoft Community Contributor, Moderator 13. června 2012 13:20
- Zrušeno navržení jako odpověď Bjoern H RappMicrosoft Community Contributor, Moderator 13. června 2012 13:21
-
13. června 2012 13:23Moderátor
Hi
try running the Install-SPSolution cmdlet like this:
Install-SPSolution -Identity <your_solution.wsp> -GACDeployment
Kind Regards Bjoern
Blog- Upravený Bjoern H RappMicrosoft Community Contributor, Moderator 13. června 2012 13:23
-
13. června 2012 14:22
Hi,
I have tried these solution, but does not resolve the issue
-
13. června 2012 14:35could you check if your dll is really deployed to the gac ?
Serge Luca; SharePoint MVP ; blog: http://sergeluca.wordpress.com/ ICT7 http://twitter.com/sergeluca
-
14. června 2012 8:23
Hi Serge,
I have set the project property's Assembly Deployment Target as Webapplication, not GAC.
I think, then the dll are not deployed to GAC
-
14. června 2012 8:37
Hi Nick,
is you dll deployed in the bin folder of your web application; can you see it ?
Serge Luca; SharePoint MVP ; blog: http://sergeluca.wordpress.com/ ICT7 http://twitter.com/sergeluca
-
14. června 2012 8:39
Hi,
Open your manifest file and check the assemblies tag.If it is not listed your dll under assemblies tag.You open the Package in design mode -> advance tab add your dll and target to WebApplication.If it is there,just delete and add it again.Not to forget to save the design mode of your package.
I guess this will be happen due to "Assembly Cache".
Murugesa Pandian.,MCTS|App.Devleopment|Configure
- Upravený Murugesa Pandian 14. června 2012 8:40
-
14. června 2012 8:50
in C:\inetpub\wwwroot\wss\VirtualDirectories\test\bin
Serge Luca; SharePoint MVP ; blog: http://sergeluca.wordpress.com/ ICT7 http://twitter.com/sergeluca
-
14. června 2012 8:55
Hi Murugesa,
It is in the mainfest
---------------------------------
<Solution xmlns="http://schemas.microsoft.com/sharepoint/" SolutionId="bba712bd-3f5a-4af8-8bfd-09642a86fc0e" SharePointProductVersion="14.0">
<Assemblies>
<Assembly Location="Change.dll" DeploymentTarget="WebApplication" />
</Assemblies>
<FeatureManifests>
<FeatureManifest Location="Change_Change\Feature.xml" />
</FeatureManifests>
</Solution>--------------------------------------------------
ok, will try to del it and add it again
Thanks
-
14. června 2012 8:59
Hi Serge,
No, the dll is not under _app_bin folder
Do you want me to add manually?
Thanks
-
14. června 2012 9:51
Hi,
What I have observed is that ever time i retract or deploy, the bin folder in the webapplication is getting deleted.
Any Suggestion?
Thanks
-
14. června 2012 12:19
Hi,
Does anyone have any suggestions
Thanks