Solved

IIS 6 need to run in x86 (32 bit mode) but on a Windows 2003 x64 server

Posted on 2008-09-30
2
2,197 Views
Last Modified: 2012-05-05
Hi there,

Our development environment is a Windows 2003 x86 server but production is Windows 2003 x64 server. I've tested a webservice fine on the dev server now when I attempt to get to work on the live server I keep getting:

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

I think this is because my solution and all projects target x86, we need to specifically do rather than Any CPU due a Crystal Reports XI 2 dependency, the dlls don't work on x64. Anyway when I deploy to the x64 production server I get these errors.

http://support.microsoft.com/kb/894435/en-us
tells me how to switch but I'll have to do for all IIS websites I can't do selectively so am reluctant to yet. Is there any other was I can do this short of setting up another x64 server in vmware or something and testing?

Also http://support.microsoft.com/kb/894435/en-us tells me how to switch between modes but what is the actual command to run to tell what version is currently running?

Thanks
0
Comment
Question by:craigdev
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 12

Accepted Solution

by:
Pugglewuggle earned 250 total points
ID: 22611630
I believe that IIS runs as 32-bit (WOW) on Windows Server 2003 x64. I don't think it's IIS causing this problem.
However, ASP.NET runs separately and you need to configure it as required in either 32-bit or 64-bit mode.
You might check this out: 32-bit DLLs go in a different place in Windows x64 and require some special commands to register them. I'm not 100% sure of how this works but that is a start!
I hope this helps!
0
 
LVL 26

Assisted Solution

by:Anurag Thakur
Anurag Thakur earned 250 total points
ID: 22639882
I am assuming that you want to make your code compatible with x86 (32 bit) Platforms only and not with any other platforms

in that case you might need to do a rebuild of your solution and then publish your website

for doing so go to the configuration manager, there is a drop down for active solution platforms and in that select <new> a new window for new solution platform comes

in that form in the combobox Type or select the new platform select x86 and click ok
build in this configuration and test it
it should do a build for x86 platforms only
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question