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,213 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

623 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