Error:
Activate-Feature : Error activating feature …<featurename>……… at …<siteURl>……..The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
使用 PowerShell 脚本收回和部署 WSP 解决方案时出现问题,WSP 部署成功,但不知何故无法使用事件接收器激活功能我正在启动服务,如下所示:
Stop-Service -Name “SPAdminV4”
Start-SPAdminJob
Start-Service -Name SPAdminV4
WaitForSolutionDeploymentJobToFinish $name
注意:当我进行全新部署而不是撤回/部署时,我没有发现任何问题。
当我在单独的脚本中收回解决方案并使用新的 powershell 实例进行部署时,我什至可以使用文件
我在调查时发现了以下参考资料: http: //sisharepoint.wordpress.com/2010/03/26/getting-around-gac-problems-when-you-deploy-sharepoint-solutions-with-powershell/ http:// blogs.msdn.com/b/briangre/archive/2011/02/17/sharepoint-2010-visual-studio-solution-deploy-deployment.aspx
请指导我解决此问题