Select the Create in Configuration Manager check box for your executable file, for which processor it works, maybe you have some kind of CPU assembly. Restart Visual Studio so as not to complain that it could not debug the assembly.
Right-click the project and open "Properties-> Compile-> Advanced Compilation Settings-> Target CPU: it must correspond to the" Platform "that you are building. That is, if you are building" Any processor ", then" Target processor "should say “Any processor.” Go through all your platforms, make them active, and check this setting.
If you try to run 32-bit applications on IIS 7 (and / or a 64-bit operating system), you will get the same error. So, from IIS 7, right-click on the application pool and go to “advanced settings” and change “Enable 32-bit applications” to “TRUE”.
Restart your site and it should work.
4pie0
source share