473,320 Members | 1,841 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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

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(Str ing assemblyFile)
at Microsoft.Build.Shared.AssemblyNameExtension.GetAs semblyNameEx(String
path)
at Microsoft.Build.Tasks.SystemState.GetAssemblyName( String path)
at
Microsoft.Build.Tasks.Resolver.FileMatchesAssembly Name(AssemblyNameExtension
assemblyName, Boolean isPrimaryProjectReference, Boolean
wantSpecificVersion, Boolean allowMismatchBetweenFusionNameAndFileName,
String pathToCandidateAssembly, ResolutionSearchLocation searchLocation)
at Microsoft.Build.Tasks.Resolver.ResolveAsFile(Strin g fullPath,
AssemblyNameExtension assemblyName, Boolean isPrimaryProjectReference,
Boolean wantSpecificVersion, Boolean
allowMismatchBetweenFusionNameAndFileName, ArrayList
assembliesConsideredAndRejected)
at
Microsoft.Build.Tasks.Resolver.ResolveFromDirector y(AssemblyNameExtension
assemblyName, Boolean isPrimaryProjectReference, Boolean
wantSpecificVersion, String[] executableExtensions, String directory,
ArrayList assembliesConsideredAndRejected)
at Microsoft.Build.Tasks.DirectoryResolver.Resolve(As semblyNameExtension
assemblyName, String rawFileNameCandidate, Boolean
isPrimaryProjectReference, Boolean wantSpecificVersion, String[]
executableExtensions, String hintPath, String assemblyFolderKey, ArrayList
assembliesConsideredAndRejected, String& foundPath, Boolean&
userRequestedSpecificFile)
at
Microsoft.Build.Tasks.AssemblyResolution.ResolveRe ference(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.ResolveRefere nce(AssemblyNameExtension
assemblyName, String rawFileNameCandidate, Reference reference)
at Microsoft.Build.Tasks.ReferenceTable.ResolveAssemb lyFilenames()
at Microsoft.Build.Tasks.ReferenceTable.ComputeClosur e()
at Microsoft.Build.Tasks.ResolveAssemblyReference.Exe cute(FileExists
fileExists, DirectoryExists directoryExists, GetDirectories getDirectories,
GetAssemblyName getAssemblyName, GetAssemblyMetadata getAssemblyMetadata,
GetRegistrySubKeyNames getRegistrySubKeyNames, GetRegistrySubKeyDefaultValue
getRegistrySubKeyDefaultValue, GetLastWriteTime getLastWriteTime)
at Microsoft.Build.Tasks.ResolveAssemblyReference.Exe cute()
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\Micr osoft.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.
Oct 12 '06 #1
3 4654
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" <a@a.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
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(Str ing assemblyFile)
at Microsoft.Build.Shared.AssemblyNameExtension.GetAs semblyNameEx(String
path)
at Microsoft.Build.Tasks.SystemState.GetAssemblyName( String path)
at
Microsoft.Build.Tasks.Resolver.FileMatchesAssembly Name(AssemblyNameExtension
assemblyName, Boolean isPrimaryProjectReference, Boolean
wantSpecificVersion, Boolean allowMismatchBetweenFusionNameAndFileName,
String pathToCandidateAssembly, ResolutionSearchLocation searchLocation)
at Microsoft.Build.Tasks.Resolver.ResolveAsFile(Strin g fullPath,
AssemblyNameExtension assemblyName, Boolean isPrimaryProjectReference,
Boolean wantSpecificVersion, Boolean
allowMismatchBetweenFusionNameAndFileName, ArrayList
assembliesConsideredAndRejected)
at
Microsoft.Build.Tasks.Resolver.ResolveFromDirector y(AssemblyNameExtension
assemblyName, Boolean isPrimaryProjectReference, Boolean
wantSpecificVersion, String[] executableExtensions, String directory,
ArrayList assembliesConsideredAndRejected)
at Microsoft.Build.Tasks.DirectoryResolver.Resolve(As semblyNameExtension
assemblyName, String rawFileNameCandidate, Boolean
isPrimaryProjectReference, Boolean wantSpecificVersion, String[]
executableExtensions, String hintPath, String assemblyFolderKey, ArrayList
assembliesConsideredAndRejected, String& foundPath, Boolean&
userRequestedSpecificFile)
at
Microsoft.Build.Tasks.AssemblyResolution.ResolveRe ference(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.ResolveRefere nce(AssemblyNameExtension
assemblyName, String rawFileNameCandidate, Reference reference)
at Microsoft.Build.Tasks.ReferenceTable.ResolveAssemb lyFilenames()
at Microsoft.Build.Tasks.ReferenceTable.ComputeClosur e()
at Microsoft.Build.Tasks.ResolveAssemblyReference.Exe cute(FileExists
fileExists, DirectoryExists directoryExists, GetDirectories
getDirectories, GetAssemblyName getAssemblyName, GetAssemblyMetadata
getAssemblyMetadata, GetRegistrySubKeyNames getRegistrySubKeyNames,
GetRegistrySubKeyDefaultValue getRegistrySubKeyDefaultValue,
GetLastWriteTime getLastWriteTime)
at Microsoft.Build.Tasks.ResolveAssemblyReference.Exe cute()
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\Micr osoft.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.

Oct 12 '06 #2
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" <a@a.comwrote in message
news:uX**************@TK2MSFTNGP02.phx.gbl...
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" <a@a.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
>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(Str ing assemblyFile)
at
Microsoft.Build.Shared.AssemblyNameExtension.GetA ssemblyNameEx(String
path)
at Microsoft.Build.Tasks.SystemState.GetAssemblyName( String path)
at
Microsoft.Build.Tasks.Resolver.FileMatchesAssembl yName(AssemblyNameExtension
assemblyName, Boolean isPrimaryProjectReference, Boolean
wantSpecificVersion, Boolean allowMismatchBetweenFusionNameAndFileName,
String pathToCandidateAssembly, ResolutionSearchLocation searchLocation)
at Microsoft.Build.Tasks.Resolver.ResolveAsFile(Strin g fullPath,
AssemblyNameExtension assemblyName, Boolean isPrimaryProjectReference,
Boolean wantSpecificVersion, Boolean
allowMismatchBetweenFusionNameAndFileName, ArrayList
assembliesConsideredAndRejected)
at
Microsoft.Build.Tasks.Resolver.ResolveFromDirecto ry(AssemblyNameExtension
assemblyName, Boolean isPrimaryProjectReference, Boolean
wantSpecificVersion, String[] executableExtensions, String directory,
ArrayList assembliesConsideredAndRejected)
at
Microsoft.Build.Tasks.DirectoryResolver.Resolve(A ssemblyNameExtension
assemblyName, String rawFileNameCandidate, Boolean
isPrimaryProjectReference, Boolean wantSpecificVersion, String[]
executableExtensions, String hintPath, String assemblyFolderKey,
ArrayList assembliesConsideredAndRejected, String& foundPath, Boolean&
userRequestedSpecificFile)
at
Microsoft.Build.Tasks.AssemblyResolution.ResolveR eference(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.ResolveRefer ence(AssemblyNameExtension
assemblyName, String rawFileNameCandidate, Reference reference)
at Microsoft.Build.Tasks.ReferenceTable.ResolveAssemb lyFilenames()
at Microsoft.Build.Tasks.ReferenceTable.ComputeClosur e()
at Microsoft.Build.Tasks.ResolveAssemblyReference.Exe cute(FileExists
fileExists, DirectoryExists directoryExists, GetDirectories
getDirectories, GetAssemblyName getAssemblyName, GetAssemblyMetadata
getAssemblyMetadata, GetRegistrySubKeyNames getRegistrySubKeyNames,
GetRegistrySubKeyDefaultValue getRegistrySubKeyDefaultValue,
GetLastWriteTime getLastWriteTime)
at Microsoft.Build.Tasks.ResolveAssemblyReference.Exe cute()
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\Mic rosoft.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.


Oct 12 '06 #3
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" <a@a.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
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" <a@a.comwrote in message
news:uX**************@TK2MSFTNGP02.phx.gbl...
>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" <a@a.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
>>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(Str ing assemblyFile)
at
Microsoft.Build.Shared.AssemblyNameExtension.Get AssemblyNameEx(String
path)
at Microsoft.Build.Tasks.SystemState.GetAssemblyName( String path)
at
Microsoft.Build.Tasks.Resolver.FileMatchesAssemb lyName(AssemblyNameExtension
assemblyName, Boolean isPrimaryProjectReference, Boolean
wantSpecificVersion, Boolean allowMismatchBetweenFusionNameAndFileName,
String pathToCandidateAssembly, ResolutionSearchLocation searchLocation)
at Microsoft.Build.Tasks.Resolver.ResolveAsFile(Strin g fullPath,
AssemblyNameExtension assemblyName, Boolean isPrimaryProjectReference,
Boolean wantSpecificVersion, Boolean
allowMismatchBetweenFusionNameAndFileName, ArrayList
assembliesConsideredAndRejected)
at
Microsoft.Build.Tasks.Resolver.ResolveFromDirect ory(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.Resolve Reference(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.ResolveRefe rence(AssemblyNameExtension
assemblyName, String rawFileNameCandidate, Reference reference)
at Microsoft.Build.Tasks.ReferenceTable.ResolveAssemb lyFilenames()
at Microsoft.Build.Tasks.ReferenceTable.ComputeClosur e()
at Microsoft.Build.Tasks.ResolveAssemblyReference.Exe cute(FileExists
fileExists, DirectoryExists directoryExists, GetDirectories
getDirectories, GetAssemblyName getAssemblyName, GetAssemblyMetadata
getAssemblyMetadata, GetRegistrySubKeyNames getRegistrySubKeyNames,
GetRegistrySubKeyDefaultValue getRegistrySubKeyDefaultValue,
GetLastWriteTime getLastWriteTime)
at Microsoft.Build.Tasks.ResolveAssemblyReference.Exe cute()
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\Mi crosoft.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.



Oct 12 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: SenthilSS | last post by:
My application produces XML Data files which have XML namespace qualified XML elements (nodes), but the namespace itself is not declared in the data file. My task is to read these data files in a...
4
by: WantedToBeDBA | last post by:
Hi Friends, I am running a stored procedure in Windows 2000 box (version 8.1.0) and i am getting following error in db2diag.log repeatly. The scenerio is as follows. I am inserting 55000...
2
by: VB Programmer | last post by:
I created a ASP.NET app locally and it works great. Uploaded it to my server and I get this error when trying to view a page. Any ideas? Server Error in '/earlyalert3' Application....
10
by: Rider | last post by:
Hi, simple(?) question about asp.net configuration.. I've installed ASP.NET 2.0 QuickStart Sample successfully. But, When I'm first start application the follow message shown. ========= Server...
0
by: Diffident | last post by:
Hello All, I am trying to do a "build" of all files of my web app on my local machine. I know that there is an "aspnet_wp.exe" running forever on my machine and to my knowledge each web app is...
0
by: rawu | last post by:
last week , i get my db version from DB2/AIX64 8.1.10 down to DB2/AIX64 8.1.5 . After that , a application called "CalRate" has something wrong . when it tries to open a cursor , it presents...
3
by: rawu | last post by:
last week , i get my db version from DB2/AIX64 8.1.10 down to DB2/ AIX64 8.1.5 . After that , a application called "CalRate" has something wrong . when it tries to open a cursor , it presents...
4
by: mshoham | last post by:
visual studio creates a temporary batch file during build and fails to run the file using cmd.exe. I'm getting the following error message on te output window: "error executing...
2
by: sdanda | last post by:
Hi, I am working on C#. We have a tool called WHOST.exe which is a VC++ MFC application. Recently I modified the application and regenerated the WHOST.exe in Visual Studio 2008. If i open the...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.