Error 4 The Resolveassemblyreference Task Failed Unexpectedly
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta
The Target Resolveassemblyreferences Does Not Exist In The Project
Discuss the workings and policies of this site About Us Learn more resolveassemblyreferences target about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up “ResolveAssemblyReference” task fails and System.BadImageFormatException, but assembly isn't used anywhere! up vote 2 down vote favorite I am getting an error about the assembly "C:\Ora10g\bin\Zip.exe". The trouble is this solution does NOT use anything in Oracle at all. I could not find a single reference to 10g anywhere in the project. I inherited this from another person who left our group. He never had this issue. Another member of my team said he got this before but reinstalling the client portion of 10g fixed it. No such luck there. I even tried using WinGrep to search the entire solution folder for "Ora10g" but it wasn't there. Any ideas? I can't build this solution until I can figure out how to get rid of this false reference to Oracle. VS 2005 solution. Contains a couple WinForm apps, a couple class libraries, and a web service. The error occurs in the main class library project. Here is the error message: Error 1 The "ResolveAssemblyReference" task failed unexpectedly. System.BadImageFormatException: Could not load file or assembly 'C:\Ora10g\bin\Zip.exe' or one of its dependencies. The module was expected to contain an assembly manifest. File name: 'C:\Ora10g\bin\Zip.exe' at System.Reflection.AssemblyName.nGetFileInformation(String s) at System.Reflection.AssemblyName.GetAssemblyName(String assemblyFile) at Microsoft.Build.Shared.AssemblyNameExtension.GetAssemblyNameEx(String path) at Microsoft.Build.Tasks.SystemState.GetAssemblyName(String path) at Microsoft.Build.Tasks.Resolver.FileMatchesAssemblyName(AssemblyNameExtension assemblyName, Boolean isPrimaryProjectReference, Boolean wantSpecificVersion, Boolean allowMismatchBetweenFusionNameAndFileName, String pathToCandidateAssembly, ResolutionSearchLocation searchLocation) at
information from MSDN Visual Studio Achievements Latest Achievement: Loading Visual Studio Achievements Something went wrong getting the Visual Studio Achievements Follow us @ch9 Subscribe to Channel 9 Sign In Channel9 Browse Tags Shows Series Blogs Authors Events Topics Coding4Fun Windows Azure Visual Studio DevOps Microsoft Mechanics MVPs Forums Coffeehouse Site Feedback Tech Off Build Events WinHEC Visual Studio TechEd Build Microsoft Ignite Azure Speakers ForumsTechOff aaarrgh! ResolveAssemblyReference Error Subscribe Oops, something didn't work. Try again? Sign In to subscribe to this conversation What does this mean? Subscriptions http://stackoverflow.com/questions/2507645/resolveassemblyreference-task-fails-and-system-badimageformatexception-but-as allow us send you email notifications when new content is added. You need to be signed in to Channel 9 to use this feature. Getting subscription Unsubscribe to this conversation Subscribe to this conversation What does this mean? Subscriptions allow us send you email notifications when new content is added. Unsubscribing Subscribing Did you know you cansign up for https://channel9.msdn.com/Forums/TechOff/184974-aaarrgh-ResolveAssemblyReference-Error email notifications? RSS reddit Tweet phreaks May 05, 2006 at7:53AM EDIT: I resolved the issue. It was one of those , 'too early in the morning with no coffee' problems. My reference path was pointing to the wrong folder. :O Somehow all my project references got hosed. I was using the enterprise library from June 2005. So I rebuilt the ELP using vs.net 2005 and now I am so screwed up, I have no idea what to do. It looks like it is still trying to load Microsoft.Practices.EnterpriseLibrary.Configuration.dll, even though I removed that specific reference. ??? Anyone have a clue? Also, it says, "Error 2" , but only this1 error shows up in my VS.NET error window. Error2The "ResolveAssemblyReference" task failed unexpectedly. System.BadImageFormatException: Could not load file or assembly 'C:\Program Files\Microsoft Enterprise Library June 2005\bin\Microsoft.Practices.EnterpriseLibrary.Configuration.dll' or one of its dependencies. The module was expected to contain an assembly manifest. File name: 'C:\Program Files\Microsoft Enterprise Library June 2005\bin\Microsoft.Practices.EnterpriseLibrary.Configuration.dll' at System.Reflection.AssemblyName.nGetFileInformation(String s) at System.Reflection.AssemblyName.GetAssemblyName(String assemblyFile) at Microsoft.Build.Shared.AssemblyNameExtension.GetAssemblyNameEx(String path) at Microsoft.Build.Tasks.SystemState.GetAssemblyName(String path) at Microsoft.Build.Tasks.Resolver.FileMatchesAssembly
"ResolveAssemblyReference" task failed unexpectedly by Castano » http://www.yqcomputer.com/4_73636e3d93b87241_1.htm Mon, 20 Aug 2007 20:23:36 Hi, I have a project that has been building perfectly for months. I have been a couple of weeks without working with Visual Studio, and today I'm finding the below error when trying to error 4 build the project. I havent touched anything at all in the application since the last time it built correctly. Anyone knows what maybe going on This is really frustrating .... Thanks Jesus Error 1 The "ResolveAssemblyReference" task failed unexpectedly.System.NullReferenceException: Object error 4 the reference not set to an instance of an object. at System.Globalization.CultureTableRecord.AdjustSyntheticCalendars(CultureData& data, CompositeCultureData& compositeData) at System.Globalization.CultureTableRecord.GetCultureDataSize(Int32 cultureID, CultureData& data, CompositeCultureData& compositeData) at System.Globalization.CultureTableRecord.GetSyntheticCulture(Int32 cultureID) at System.Globalization.CultureTableRecord..ctor(String cultureName, Boolean useUserOverride) at System.Globalization.CultureTableRecord.GetCultureTableRecord(String name, Boolean useUserOverride) at System.Globalization.CultureTableRecord.GetCultureTableRecord(Int32 cultureId, Boolean useUserOverride) at System.Globalization.CultureInfo..ctor(Int32 culture, Boolean useUserOverride) at System.Globalization.CultureInfo..ctor(Int32 culture) at System.Globalization.CultureTable.GetCultures(CultureTypes types) at Microsoft.Build.Tasks.CultureStringUtilities.PopulateCultureInfoArray() at Microsoft.Build.Tasks.ReferenceTable.FindSatellites(Reference reference) at Microsoft.Build.Tasks.ReferenceTable.FindAssociatedFiles() at Microsoft.Build.Tasks.ReferenceTable.ComputeClosure() at Microsoft.Build.Tasks.ResolveAssemblyReference.Execute(FileExists fileExists, DirectoryExists directoryExists, GetDirectories getDirectories, GetAssemblyName getAssemblyName, GetAssemblyMetadata getAssemblyMetadata, GetRegistrySubKeyNames getRegistrySubKeyNames, GetRegistrySubKeyDefaultValue getRegistrySubKeyDefaultValue, GetLastWriteTime getLastWriteTime) at Microsoft.Build.Tasks.ResolveAssemblyReference.Execute() at Microsoft.Build.BuildEngine.TaskEngine.ExecuteTask(ExecutionMode howToExecuteTask, Hashtable projectItemsAvailableToTask, BuildPropertyGroup projectPropertiesAvailableToTask, Boolean& taskClassWasFound) PILLS Top Eugene Zakhareye Problem building solution: The "ResolveAssemblyReference" task failed unexpectedly by Eugene Zakhareye » Wed, 22 Aug 2007 21:24:37 Just a guess - do you have Windo