• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 283
  • Last Modified:

32bit and 64 bit dll together

Hi

i have 32 bit dll reference in my project and my project is targetting to 64 bit,  if i deploy this on IIS 7 on Windows server 2008 R2 , while i try to browse these  i am getting could not load assembly error.

so, could you please guide me how to solve this error, but here i don't want to target anyCpu.
0
praveen1981
Asked:
praveen1981
  • 3
  • 2
1 Solution
 
Craig WagnerSoftware ArchitectCommented:
In the application pool there is a setting to enable 32-bit applications. Try setting that to true and see if it solves your problem.
0
 
praveen1981Author Commented:
Hi

If i set enable 32-bit applications to true,  it is allowing only 32 bit dlls, but not 64 bit dlls, but i have both dlls in my project, is it possible to run 32 bit and 64 bit process at same time

Please suggest
0
 
Craig WagnerSoftware ArchitectCommented:
Are you sure about that or are you speculating? Put another way, did you actually try it? I was pretty sure we had both running inside a single process in our application but I could be mistaken.
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
jiangshengCommented:
you can't load 32 bit code in a 64 bit process or load 64 bit code in 32 bit process.

You have to split your project into two applications that will be ran in different application pools, one x86 and one x64. Use any interprocess-communication (WCF, web services, socket, named pipe etc) to communicate between application pools.
0
 
praveen1981Author Commented:
Hi

i set enable 32-bit applications to false , then it started working fine.
0
 
praveen1981Author Commented:
working fine.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now