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.
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.
Why would you have a 32bit only DLL? well it could be that you are using something that is
Read more at 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.
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.
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.
Yorumlar
Yorum Gönder