Hi, I’ve been using Sonarr for a few months now after switching from SickBeard and I love it.
However, I have been unable to update to the latest two versions. I’m running it on Windows 10.
When I click the update button I get the following error:
Error occurred while executing task ApplicationUpdate: Could not load file or assembly 'ICSharpCode.SharpZipLib, Version=0.86.0.518, Culture=neutral, PublicKeyToken=1b03e6acf1164f73' or one of its dependencies. The module was expected to contain an assembly manifest.
System.BadImageFormatException: Could not load file or assembly 'ICSharpCode.SharpZipLib, Version=0.86.0.518, Culture=neutral, PublicKeyToken=1b03e6acf1164f73' or one of its dependencies. The module was expected to contain an assembly manifest.
File name: 'ICSharpCode.SharpZipLib, Version=0.86.0.518, Culture=neutral, PublicKeyToken=1b03e6acf1164f73'
at NzbDrone.Common.ArchiveService.ExtractZip(String compressedFile, String destination)
at NzbDrone.Common.ArchiveService.Extract(String compressedFile, String destination) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\ArchiveService.cs:line 33
at NzbDrone.Core.Update.InstallUpdateService.InstallUpdate(UpdatePackage updatePackage) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Update\InstallUpdateService.cs:line 107
at NzbDrone.Core.Update.InstallUpdateService.Execute(ApplicationUpdateCommand message) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Update\InstallUpdateService.cs:line 206
at NzbDrone.Core.Messaging.Commands.CommandExecutor.ExecuteCommand[TCommand](TCommand command, CommandModel commandModel) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Messaging\Commands\CommandExecutor.cs:line 91
at CallSite.Target(Closure , CallSite , CommandExecutor , Object , CommandModel )
at System.Dynamic.UpdateDelegates.UpdateAndExecuteVoid3[T0,T1,T2](CallSite site, T0 arg0, T1 arg1, T2 arg2)
at CallSite.Target(Closure , CallSite , CommandExecutor , Object , CommandModel )
at NzbDrone.Core.Messaging.Commands.CommandExecutor.ExecuteCommands() in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Messaging\Commands\CommandExecutor.cs:line 41
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].
I found a topic where someone had a similar problem and just needed to turn off their anti-virus during the update, I tried this and it didn’t work. I’m not sure where to begin here. Any suggestions? Thanks!
The problem with the anti-virus is that file has already been removed, disabling it won’t bring it back, there are a few things you can try:
restore the file through your AV program, usually the file gets put into a quarantine instead of being totally removed to recover from false positives
Manually upgrade by re-installing Sonarr
Restore the missing file from the zip file and try to update again http://download.sonarr.tv/v2/master/latest/NzbDrone.master.zip is the zip you want, and ICSharpCode.SharpZipLib.dll is the file that needs to be restored to C:\ProgramData\NzbDrone\bin
I downloaded the zip file and went to copy that file over, and saw it was already there. I replaced it anyway and tried to update and got the same error. Will try a re-install now - will this reset all my settings?
Error occurred while executing task Backup: Could not load file or assembly 'ICSharpCode.SharpZipLib, Version=0.86.0.518, Culture=neutral, PublicKeyToken=1b03e6acf1164f73' or one of its dependencies. The module was expected to contain an assembly manifest.
System.BadImageFormatException: Could not load file or assembly 'ICSharpCode.SharpZipLib, Version=0.86.0.518, Culture=neutral, PublicKeyToken=1b03e6acf1164f73' or one of its dependencies. The module was expected to contain an assembly manifest.
File name: 'ICSharpCode.SharpZipLib, Version=0.86.0.518, Culture=neutral, PublicKeyToken=1b03e6acf1164f73'
at NzbDrone.Common.ArchiveService.CreateZip(String path, String[] files)
at NzbDrone.Core.Backup.BackupService.Backup(BackupType backupType) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Backup\BackupService.cs:line 76
at NzbDrone.Core.Backup.BackupService.Execute(BackupCommand message) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Backup\BackupService.cs:line 170
at NzbDrone.Core.Messaging.Commands.CommandExecutor.ExecuteCommand[TCommand](TCommand command, CommandModel commandModel) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Messaging\Commands\CommandExecutor.cs:line 91
at CallSite.Target(Closure , CallSite , CommandExecutor , Object , CommandModel )
at System.Dynamic.UpdateDelegates.UpdateAndExecuteVoid3[T0,T1,T2](CallSite site, T0 arg0, T1 arg1, T2 arg2)
at CallSite.Target(Closure , CallSite , CommandExecutor , Object , CommandModel )
at NzbDrone.Core.Messaging.Commands.CommandExecutor.ExecuteCommands() in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Messaging\Commands\CommandExecutor.cs:line 41
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].
OK I backed up manually and re-installed, everything is working now. Hopefully I don’t have to manually re-install for every update, but at least it’s working properly. Thanks for your help!