64-bit win2008 IIS does not turn on 32-bit support causes DLL to fail to load

Source: Internet
Author: User

Deploy a Web project that has no problems with native, local server, but after deploying to a remote server, prompting a DLL to fail to load:

Server Error in '/' Application.

Could not load file or assembly ' Common.Component.Repository ' or one of its dependencies. An attempt is made to load a program with an incorrect format.


The first thing to be sure is that DLLs that the system claims cannot be loaded are real


Second, there is no problem from native or local servers, and it seems that the most likely cause is a problem with the remote server's environment. However, the remote server is installed. NET4.5.2, and running other Web projects is okay. The application pool corresponding to the Web project is also 4.0, excluding the reason for selecting 2.0.


Later, the developer of the Web project turned on 32-bit support on the application pool for IIS and resolved the problem. Originally, the remote server was a 64-bit win Server 2008.


The way to turn on 32-bit support is:

Select the application pool corresponding to the Web project, right-click, advanced Settings, Enable 32-bit application = True.


Similar articles on the web

Http://goxia.maytide.net/read.php/1541.htm

64-bit win2008 IIS does not turn on 32-bit support causes DLL to fail to load

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.