Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

32bit and 64 bit dll together

Posted on 2013-06-18
6
Medium Priority
?
278 Views
Last Modified: 2013-09-20
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
Comment
Question by:praveen1981
[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
  • 3
  • 2
6 Comments
 
LVL 21

Expert Comment

by:Craig Wagner
ID: 39257920
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
 

Author Comment

by:praveen1981
ID: 39258349
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
 
LVL 21

Expert Comment

by:Craig Wagner
ID: 39258405
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
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!

 
LVL 4

Expert Comment

by:jiangsheng
ID: 39260535
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
 

Accepted Solution

by:
praveen1981 earned 0 total points
ID: 39277220
Hi

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

Author Closing Comment

by:praveen1981
ID: 39508586
working fine.
0

Featured Post

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

721 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