Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Iis runs a 32-bit website program on a win2008 64w-bit system (iis7.5 opens 32-bit)

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Because the website called a third-party 32bit's dll, there was an unsuccessful error loading the dll when visiting the website after it was published in 64-bit 2008.

Solution:

Set the site to run in 32-bit mode on iis.

The steps are as follows:

1. Find the application pool referenced by the site.

2. In the advanced settings of the application pool-"General -" enable 32-bit applications, and set the value to true

Problem solved.

Here are some additions from other netizens:

When deploying a WEB project, there is no problem with both the local server and the local server, but after deploying to the remote server, it is prompted that a DLL cannot be loaded:

Server Error in'/ 'Application.

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

First of all, it is certain that the system claims that the DLL that cannot be loaded does exist.

Secondly, there is no problem with both the local server and the local server, and it seems that the most likely reason is that there is something wrong with the environment of the remote server. However, the remote server is installed with. Net 4.5.2, and there is no problem running other WEB projects. The application pool corresponding to the WEB project is also 4.0, excluding the reason for choosing 2.0.

Later, the developers of the WEB project turned on 32-bit support on IIS's application pool, and the problem was solved. It turns out that the remote server is 64-bit WIN SERVER 2008.

In IIS 7.x, to "enable 32bit application support", you need to configure the Application Pool. Set "enable32BitAppOnWin64" to "True". This sets the worker process of the application pool to WOW64 mode, while in WOW64 mode, the worker process will load only 32-bit processes of 32-bit applications. To avoid affecting other Web sites, you can create a separate application pool for the 32bit application's Web site. The following gOxiA will guide you through how to enable 32bit application support under IIS 7.x.

Create a separate application pool for the website of the 32bit application, omitting the operation.

Open the Internet Information Services (IIS) Manager and expand the list of servers in the left form to find the application pool for the site

Select the application pool and click Advanced Settings in the action form on the right. "

Find "enable 32-bit applications" in the "(General)" setting and change its setting to "True". In addition, we can also use the command line to set it. The command line reference is as follows:

Appcmd set apppool / apppool.name:My32bitApp / enable32bitapponwin64:true

If you have a similar fault, you can use this method to solve it.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report