Build/Test Issues

Resolved file has a bad image, no metadata, or is otherwise inaccessible

Started by shyamsundar2007 on 5,707 views

Hi,

I recently started using NCrunch for a project a work. When I try building my project through Visual Studio, it works fine. But when I try to build using NCrunch, I get the following errors. Can someone help guide me to what I'm missing here?

Utilities\BoxWebServiceUtilities.cs (12, 7): The type or namespace name 'MigrationService' could not be found (are you missing a using directive or an assembly reference?)
Utilities\MailboxUtilities.cs (9, 7): The type or namespace name 'MigrationService' could not be found (are you missing a using directive or an assembly reference?)
Utilities\WebServiceUtilities.cs (52, 37): The type or namespace name 'FolderFilterManager' does not exist in the namespace 'BitTitan.Processing' (are you missing an assembly reference?)


WARNING - ..\..\..\..\program files (x86)\microsoft visual studio\2017\professional\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets (2110, 5): MSB3246: Resolved file has a bad image, no metadata, or is otherwise inaccessible. Could not load file or assembly 'MigrationCommonClient.dll' or one of its dependencies. File is corrupt. (Exception from HRESULT: 0x8013110E)


I have ensured the namespaces are being properly imported (if not the project would fail to build on Visual Studio). I've also tried to add the 'MigrationCommonClient.dll' file manually to the project using the NCrunch project config. Would appreciate any help on this. Thanks.
Hi,

Sorry you're having this issue!

Which version of NCrunch are you using? Do you have optimised set for the instrumentation mode?
Hi,

Thanks for the quick response. I'm using version 4.2.0.7 and yes I am using the optimized set for the instrumentation mode.
Thanks for the reply. We've just released a new version. There were some fixes in this area. Would you mind trying that build?

https://www.ncrunch.net/download

Or the direct download links:

NCrunch_Console_4.3.0.13.msi
NCrunch_Console_4.3.0.13.zip
NCrunch_GridNodeServer_4.3.0.13.msi
NCrunch_GridNodeServer_4.3.0.13.zip
NCrunch_LicenseServer_4.3.0.13.zip
NCrunch_VS2008_4.3.0.13.msi
NCrunch_VS2010_4.3.0.13.msi
NCrunch_VS2010_4.3.0.13.zip
NCrunch_VS2012_4.3.0.13.msi
NCrunch_VS2012_4.3.0.13.zip
NCrunch_VS2013_4.3.0.13.msi
NCrunch_VS2013_4.3.0.13.zip
NCrunch_VS2015_4.3.0.13.msi
NCrunch_VS2015_4.3.0.13.msi.7z
NCrunch_VS2015_4.3.0.13.zip
NCrunch_VS2017_4.3.0.13.msi
NCrunch_VS2017_4.3.0.13.msi.7z
NCrunch_VS2017_4.3.0.13.zip
NCrunch_VS2019_4.3.0.13.msi
NCrunch_VS2019_4.3.0.13.msi.7z
NCrunch_VS2019_4.3.0.13.zip
Wow I installed the latest version and my problem magically disappeared! Thanks for the help!

Post a reply

Log in to reply.