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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
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…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

707 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now