64 Bitlik Windows 2008 Server üzerinde IIS üzerinde 32 Bitlik DLL çalıştırmak için

Aşağıdaki sorun genelde 64Bitlik win 2008 server üzerinde yeni bir websitesi kuruyorsanız karşılaşabileceğiniz bir hadisedir. Yapmanız gereken IIS üzerinde ilgili aplication pool'un özelliklerine girip 32 Bit application sekmesini true olarak işaretlemektir.

Amplify’d from blog.crowe.co.nz


Have you seen the following error?

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

I have seen these a few times lately and the cause is usually that you have the following configuration:

  • IIS running on a 64Bit Operating System
  • The Assembly DLL in question has been compiled for 32Bit - check the project properties under the build tab, if under platform target you have x86 then it is 32bit only.

    x86 

Why would you have a 32bit only DLL? well it could be that you are using something that is



Have you seen the following error?

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

I have seen these a few times lately and the cause is usually that you have the following configuration:

  • IIS running on a 64Bit Operating System
  • The Assembly DLL in question has been compiled for 32Bit - check the project properties under the build tab, if under platform target you have x86 then it is 32bit only.

    x86 

Why would you have a 32bit only DLL? well it could be that you are using something that is not 64bit compatible, such as MAPI or ODBC...

The real problem is that the 64Bit IIS machine is using an Application Pool that is not allowing a 32bit DLL to be processed.

Open IIS Manager and find the application pool for the site and select the Advanced Settings.

AppPoolAdvSettings

 

Notice that there is an option called "Enable 32-Bit Applications" this is the cause of the error. Enable this and you should be good to go.

Here is an example of the full error for this message.

Read more at blog.crowe.co.nz
 

Yorumlar

Bu blogdaki popüler yayınlar

22.06.2020 - 26.06.2020 arası işler

Asp.net RestSharp ile data post etmek

List Box Item içindeki elemanları aşağı veya yukarı taşımak