usvpn Posted July 16, 2010 Posted July 16, 2010 Hi everyone, I have a strange problem in my VB.NET project when I want to compile it as x64. If I set the target CPU to Any CPU, it will be fine and on x64 systems it will run as x64. But if I set the target CPU to only x64, my project will show up some error/warnings and won't compile at all, here are them: - Error 1 : An attempt was made to load an assembly with an incorrect format Warning 2 : Possible problem detected while building assembly 'x': Referenced assembly 'mscorlib.dll' targets a different processor Warning 3 : Possible problem detected while building assembly 'x': Referenced assembly 'System.Data.dll' targets a different processor Warning 4 : Possible problem detected while building assembly 'x': Referenced assembly 'System.EnterpriseServices.dll' targets a different processor - This is very strange, those are system assemblies and my project is .NET Framework 2.0. How they can run when my application is set to any CPU but not at x64 only?! If anyone had this problem or know a solution please help me :confused: Quote
Administrators PlausiblyDamp Posted July 16, 2010 Administrators Posted July 16, 2010 Are you using a 32 or 64 bit OS? Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Administrators PlausiblyDamp Posted July 17, 2010 Administrators Posted July 17, 2010 Does it actually fail to compile then? I have seen the warnings before but that seems to be something about VS building it, they can normally be ignored and the end result will run just fine. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.