Severe Build error 'System.exe"?!?!

N

NickP

Hi there,

Today I try to compile an application of mine and I am getting a whole
list of bizaar errors....

------------------------------------------------

Error 1 The "ResolveAssemblyReference" task failed unexpectedly.
System.BadImageFormatException: Could not load file or assembly
'C:\System.exe' or one of its dependencies. The module was expected to
contain an assembly manifest.
File name: 'C:\System.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 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, AssemblyNameExtension assemblyName, String
rawFileNameCandidate, Boolean isPrimaryProjectReference, Boolean
wantSpecificVersion, String[] executableExtensions, String hintPath, String
assemblyFolderKey, ArrayList assembliesConsideredAndRejected, String&
resolvedSearchPath, Boolean& userRequestedSpecificFile)
at
Microsoft.Build.Tasks.ReferenceTable.ResolveReference(AssemblyNameExtension
assemblyName, String rawFileNameCandidate, Reference reference)
at Microsoft.Build.Tasks.ReferenceTable.ResolveAssemblyFilenames()
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)

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].
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets 1306
9 ...

------------------------------------------------

I have checked the references for the application this is occuring in
and for some reason or another I have a whole list of items that have "<The
System cannot find the referecne specified>"... Most of these had a
duplicate item below with the correct path in, so I removed the missing ones
but I am now left with "System". If I remove this reference and add it
again it still fails to find it!

Please help! What's goning on? I first noticed things started to go
wrong when the compiler crashed during compilation.

I seriously need to get this working ASAP, has anyone got any words on
this? Thanks loads in advance!

Nick.
 
N

NickP

Hey again,

Well I've manged to fix it, for some reason or another "C:\" was being
added as a reference path, normally that wouldn't matter!

But it appears there is a "System.exe" in that path! WTF?! "File
Compare Utility - Microsoft Corporation", original filename "comp.exe".

Is this a virus targeted at Visual Studio????! WTF?!

Nick.

NickP said:
Hi there,

Today I try to compile an application of mine and I am getting a whole
list of bizaar errors....

------------------------------------------------

Error 1 The "ResolveAssemblyReference" task failed unexpectedly.
System.BadImageFormatException: Could not load file or assembly
'C:\System.exe' or one of its dependencies. The module was expected to
contain an assembly manifest.
File name: 'C:\System.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 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, AssemblyNameExtension assemblyName, String
rawFileNameCandidate, Boolean isPrimaryProjectReference, Boolean
wantSpecificVersion, String[] executableExtensions, String hintPath,
String assemblyFolderKey, ArrayList assembliesConsideredAndRejected,
String& resolvedSearchPath, Boolean& userRequestedSpecificFile)
at
Microsoft.Build.Tasks.ReferenceTable.ResolveReference(AssemblyNameExtension
assemblyName, String rawFileNameCandidate, Reference reference)
at Microsoft.Build.Tasks.ReferenceTable.ResolveAssemblyFilenames()
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)

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].
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets
1306 9 ...

------------------------------------------------

I have checked the references for the application this is occuring in
and for some reason or another I have a whole list of items that have
"<The System cannot find the referecne specified>"... Most of these had a
duplicate item below with the correct path in, so I removed the missing
ones but I am now left with "System". If I remove this reference and add
it again it still fails to find it!

Please help! What's goning on? I first noticed things started to go
wrong when the compiler crashed during compilation.

I seriously need to get this working ASAP, has anyone got any words on
this? Thanks loads in advance!

Nick.
 
N

NickP

Hi again,

Further investigation shows it is only 1 project that was affected.
Hmm..... Just so happens to be the largest app I've got source too...


NickP said:
Hey again,

Well I've manged to fix it, for some reason or another "C:\" was being
added as a reference path, normally that wouldn't matter!

But it appears there is a "System.exe" in that path! WTF?! "File
Compare Utility - Microsoft Corporation", original filename "comp.exe".

Is this a virus targeted at Visual Studio????! WTF?!

Nick.

NickP said:
Hi there,

Today I try to compile an application of mine and I am getting a whole
list of bizaar errors....

------------------------------------------------

Error 1 The "ResolveAssemblyReference" task failed unexpectedly.
System.BadImageFormatException: Could not load file or assembly
'C:\System.exe' or one of its dependencies. The module was expected to
contain an assembly manifest.
File name: 'C:\System.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 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, AssemblyNameExtension assemblyName, String
rawFileNameCandidate, Boolean isPrimaryProjectReference, Boolean
wantSpecificVersion, String[] executableExtensions, String hintPath,
String assemblyFolderKey, ArrayList assembliesConsideredAndRejected,
String& resolvedSearchPath, Boolean& userRequestedSpecificFile)
at
Microsoft.Build.Tasks.ReferenceTable.ResolveReference(AssemblyNameExtension
assemblyName, String rawFileNameCandidate, Reference reference)
at Microsoft.Build.Tasks.ReferenceTable.ResolveAssemblyFilenames()
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)

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].
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets
1306 9 ...

------------------------------------------------

I have checked the references for the application this is occuring in
and for some reason or another I have a whole list of items that have
"<The System cannot find the referecne specified>"... Most of these had
a duplicate item below with the correct path in, so I removed the missing
ones but I am now left with "System". If I remove this reference and add
it again it still fails to find it!

Please help! What's goning on? I first noticed things started to go
wrong when the compiler crashed during compilation.

I seriously need to get this working ASAP, has anyone got any words on
this? Thanks loads in advance!

Nick.
 
N

NickP

Also

VS.NET crashed today after all of this, it seems to be acting like a fat
lump of tar lately to be honest. But the error message made me chuckle, no
i do *not* want to send MS the files I am working on to see if you can
resolve the issue! strangely enough!!!! Call me paranoid but it's not good
business practice to share source code with other companies.

pfft!

NickP said:
Hi again,

Further investigation shows it is only 1 project that was affected.
Hmm..... Just so happens to be the largest app I've got source too...


NickP said:
Hey again,

Well I've manged to fix it, for some reason or another "C:\" was being
added as a reference path, normally that wouldn't matter!

But it appears there is a "System.exe" in that path! WTF?! "File
Compare Utility - Microsoft Corporation", original filename "comp.exe".

Is this a virus targeted at Visual Studio????! WTF?!

Nick.

NickP said:
Hi there,

Today I try to compile an application of mine and I am getting a
whole list of bizaar errors....

------------------------------------------------

Error 1 The "ResolveAssemblyReference" task failed unexpectedly.
System.BadImageFormatException: Could not load file or assembly
'C:\System.exe' or one of its dependencies. The module was expected to
contain an assembly manifest.
File name: 'C:\System.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 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, AssemblyNameExtension assemblyName, String
rawFileNameCandidate, Boolean isPrimaryProjectReference, Boolean
wantSpecificVersion, String[] executableExtensions, String hintPath,
String assemblyFolderKey, ArrayList assembliesConsideredAndRejected,
String& resolvedSearchPath, Boolean& userRequestedSpecificFile)
at
Microsoft.Build.Tasks.ReferenceTable.ResolveReference(AssemblyNameExtension
assemblyName, String rawFileNameCandidate, Reference reference)
at Microsoft.Build.Tasks.ReferenceTable.ResolveAssemblyFilenames()
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)

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].
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets
1306 9 ...

------------------------------------------------

I have checked the references for the application this is occuring in
and for some reason or another I have a whole list of items that have
"<The System cannot find the referecne specified>"... Most of these had
a duplicate item below with the correct path in, so I removed the
missing ones but I am now left with "System". If I remove this
reference and add it again it still fails to find it!

Please help! What's goning on? I first noticed things started to go
wrong when the compiler crashed during compilation.

I seriously need to get this working ASAP, has anyone got any words
on this? Thanks loads in advance!

Nick.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top