About running a 32-bit Asp.net web application on a 64-bit Windows Operating SystemProgramAppears
Attackers try to load programs with incorrect format. (Exception from hresult: 0x8007000b)
The various versions can be found on the Internet. Sometimes I can't believe them without self-verification. But one thing is true, that is. net does not support mixed processes, that is, the x64 and x86 compiled assembly cannot be executed simultaneously in the same process. It is said that. net framework4 is improved and can coexist. Currently, there is no basis for confirmation, because most applications are compiled by anycpu.
When the desktop application developed by. Net depends on the Assembly compiled on the X86 platform, the host environment still needs to be compiled on the x86 Platform for normal execution. Here I have recorded the problems encountered when deploying web applications on iis7 and above servers.
Problem scenario:
An Asp.net web project (which is a Web project rather than a Web site) is used to convert wav files to MP3 files. It contains three sets: yeti.mmdia.dll, yeti?. DLL and lame_enc.dll. The entire project is compiled on the anycpu platform. On the Windows 6.0 32-bit operating system, the IIS server is deployed normally, but migrated to the Windows R2 64-bit operating system, on the iis7 server, the above program "trying to load incorrectly formatted" appears." . After suffering, I found that the 32-bit application program is disabled by default in the iis7 application pool. Set it to true. You don't have to bother compiling the WEB Project on the platform.