c# - Application.exe is not a valid Win32 application error -



c# - Application.exe is not a valid Win32 application error -

i have written console application client trying run on windows server 2003 r2 machine machine , error message.

if go build -> configuration manager projects set platform of "any cpu" , configuration of

"release"

what else might have missed? don't want run console application double clicking on it, want give windows schedules tasks can pick , rn on times

starting .net 4.5, compiler generates exe that's marked compatible windows version 6.0 , greater. vista , up. such executable fail run when started on xp , server 2003, windows versions 5.0. error before can tell .net 4.5 isn't installed on machine.

you must target .net 4.0 or less. same requirement on dlls have dependency on, including unmanaged ones. more in this post.

c# visual-studio-2012 windows-console

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -