locked
Cannot load 32 bit assembly on the Windows 7 (x64) RRS feed

  • Question

  • Hi All,

    I want to load a 32 bit assembly in WCF service on the Windows 7(x64), it is always failed to load, but I have set the  'Enable 32 -Bit Applications' option to 'True' in IIS. Any other things I should do? Thanks in advanced!

    -Hou

    Thursday, August 12, 2010 7:11 AM

Answers

  • Hi,

    Build it as Any CPU should also work. I think you're building it as x64 so w3wp.exe is a x64 process. Because an x64 process can only load x64 assemblies so it doesn't work for you. You can refer to the following article for more details:

    http://thingsthatshouldbeeasy.blogspot.com/2009/08/anycpu-x86-x64-whats-difference.html

     


    Please remember to mark the replies as answers if they help and unmark them if they provide no help. Windows Azure Platform China Blog: http://blogs.msdn.com/azchina/default.aspx
    Monday, August 16, 2010 6:28 AM

All replies

  • Hi,

    When you build your WCF service please build it as x86.


    Please remember to mark the replies as answers if they help and unmark them if they provide no help. Windows Azure Platform China Blog: http://blogs.msdn.com/azchina/default.aspx
    Monday, August 16, 2010 2:31 AM
  • Allen,

     

    Is there another way? I don't want to build as x86.

     

    -Hou

    Monday, August 16, 2010 4:31 AM
  • Hi,

    Build it as Any CPU should also work. I think you're building it as x64 so w3wp.exe is a x64 process. Because an x64 process can only load x64 assemblies so it doesn't work for you. You can refer to the following article for more details:

    http://thingsthatshouldbeeasy.blogspot.com/2009/08/anycpu-x86-x64-whats-difference.html

     


    Please remember to mark the replies as answers if they help and unmark them if they provide no help. Windows Azure Platform China Blog: http://blogs.msdn.com/azchina/default.aspx
    Monday, August 16, 2010 6:28 AM