Error 1 The Resolveassemblyreference Task Failed Unexpectedly
Studio Development > the target resolveassemblyreferences does not exist in the project MSBuild General discussion 0 Sign in to vote Hi, my error is: The "ResolveAssemblyReference" task failed unexpectedly. System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.Build.Tasks.ReferenceTable.GetReference(AssemblyNameExtension assemblyName) at Microsoft.Build.Tasks.Reference.SetFinalCopyLocalState(AssemblyNameExtension assemblyName, String[] frameworkPaths, ProcessorArchitecture targetProcessorArchitecture, GetAssemblyRuntimeVersion getRuntimeVersion, Version targetedRuntimeVersion, FileExists fileExists, Boolean copyLocalDependenciesWhenParentReferenceInGac, ReferenceTable referenceTable, CheckIfAssemblyInGac checkIfAssemblyInGac) at Microsoft.Build.Tasks.ReferenceTable.GetReferenceItems(ITaskItem[]& primaryFiles, ITaskItem[]& dependencyFiles, ITaskItem[]& relatedFiles, ITaskItem[]& satelliteFiles, ITaskItem[]& serializationAssemblyFiles, ITaskItem[]& scatterFiles, ITaskItem[]& copyLocalFiles) at Microsoft.Build.Tasks.ResolveAssemblyReference.Execute(FileExists fileExists, DirectoryExists directoryExists, GetDirectories getDirectories, GetAssemblyName getAssemblyName, GetAssemblyMetadata getAssemblyMetadata, GetRegistrySubKeyNames getRegistrySubKeyNames, GetRegistrySubKeyDefaultValue getRegistrySubKeyDefaultValue, GetLastWriteTime getLastWriteTime, GetAssemblyRuntimeVersion getRuntimeVersion, OpenBaseKey openBaseKey, CheckIfAssemblyInGac checkIfAssemblyIsInGac) at Microsoft.Build.Tasks.ResolveAssemblyReference.Execute() at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask, Boolean& taskResult)Gordic.Uso.OfficeAddIn2010 I solved this problem that I set flag Local copy to false in properity of assembly. Jaroslav Týma GORDIC Changed type Victor_Chen Tuesday, December 07, 2010 7:30 AM No question Monday, November 29, 2010 3:09 PM Reply | Quote All repl
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 https://social.msdn.microsoft.com/Forums/vstudio/en-US/6cdcff3f-b74e-452f-a985-9ff1186bc082/the-resolveassemblyreference-task-failed-unexpectedly?forum=msbuild this mean? Subscriptions 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 https://channel9.msdn.com/Forums/TechOff/184974-aaarrgh-ResolveAssemblyReference-Error you cansign up for 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.GetAssemblyNa
failed unexpectedly rated http://vbcity.com/forums/t/132257.aspx by 0 users This post has 1 Reply | 1 Follower jpaulino Since 3/16/2006 Posts 9 Reputation 150 Reply Jorge Paulino (jpaulino) Posted: 10/28/2006 7:26 AM rated by 0 users Hi all,I'm migrating from vb2002 to error 1 vb2005 and everything running fine. The problem is that when I tried to change a crystal report it asked me I want to upgrade to CR new version. I have accepted and I got the error 1 the following error message:Error1The "ResolveAssemblyReference" task failed unexpectedly.System.IO.PathTooLongException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.at System.IO.Path.NormalizePathFast(String path, Boolean fullCheck)at System.IO.Path.GetDirectoryName(String path)at Microsoft.Build.Tasks.SystemState.FileExists(String path)at Microsoft.Build.Tasks.Resolver.FileMatchesAssemblyName(AssemblyNameExtension assemblyName, Boolean isPrimaryProjectReference, Boolean wantSpecificVersion, Boolean allowMismatchBetweenFusionNameAndFileName, String pathToCandidateAssembly, ResolutionSearchLocation searchLocation)at Microsoft.Build.Tasks.Resolver.ResolveAsFile(String fullPath, AssemblyNameExtension assemblyName, Boolean isPrimaryProjectReference, Boolean wantSpecificVersion, Boolean allowMismatchBetweenFusionNameAndFileName, ArrayList assembliesConsideredAndRejected)at Microsoft.Build.Tasks.Resolver.ResolveFromDirectory(AssemblyNameExtension assemblyName, Boolean isPrimaryProjectReference, Boolean wantSpecificVersion, String[] executableExtensions, String directory, ArrayList assembliesConsideredAndRejected)at Microsoft.Build.Tasks.DirectoryResolver.Resolve(AssemblyNameExtension assemblyName, String rawFileNameCandidate, Boolean isPrimaryProjectReference, Boolean wantSpecificVersion, String[] executableExtensions, String hintPath, String assemblyFolderKey, ArrayList assembliesConsideredAndRejected, String& foundPath, Boolean& userRequestedSpecificFile)at Microsoft.Build.Tasks.AssemblyResolution.ResolveReference(IEnumerable`1 jaggedResolvers, A