I have a weird problem... I'm trying to deploy a sharepoint solution in production. This project works fine in the test environment, but in production trying to enable the feature returns this error:
Enable-SPFeature : Could not load file or assembly 'YYYYY, Version=1.1.0.1, Culture=neutral, PublicKeyToken=a7a65c9275aa3510' or one of its dependencies. The system cannot find the file specified.
At line:1 char:17
+ Enable-SPFeature <<<< -Identity ApprovazioneCommesse_ApprovazioneCommesse -Url "https://ZZZ.XXXXXX.org/sites/KKK"
+ CategoryInfo : InvalidData: (Microsoft.Share...etEnableFeature: SPCmdletEnableFeature) [Enable-SPFeature], FileNotFoundException
+ FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletEnableFeature
But I know the file is there. The really weird thing is that I can enable the same feature via web (site settings>site collection features> Enable)
How is it possible?