When a 32-bit Asp.net web application is running on a 64-bit Windows operating system, a solution that tries to load incorrectly formatted programs appears.

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.