Click here to Skip to main content
15,886,873 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi All,

We create one WCF application and used technique of Object Pooling for object creation. Everything works fine on code & then on testing machines. But when we deploy that application to production server, we get error like
System.IO.FileNotFoundException: Could not load file or assembly 'ObjectPooling.dll' or one of its dependencies. The specified module could not be found.
File name: 'ObjectPooling.dll'

ObjectPooling.dll is present in the build also same build tested on various places. We can't track down the issue on production server.

Can anyone have an idea how to overcome this issue OR what are the possible ways to tackle this?

What I have tried:

We copy dll into several places including C:\Windows\System32 , C:\Windows\Microsoft.NET\Framework\v2.0.50727 , C:\Windows\Microsoft.NET\Framework\v4.0.30319 and more.

But not able to resolve.
Posted
Updated 19-Mar-18 2:07am
v2
Comments
Nagaraj Muthuchamy 12-Mar-18 11:56am    
Could it be that DLL version is not matching in PROD?
Richard Deeming 13-Mar-18 12:41pm    
Could be a 64-bit / 32-bit issue?
Umesh AP 19-Mar-18 8:05am    
Thanks Nagaraj & Richard for your replies.
Yes, its the issue with 32-bit/64-bit DLL compatibility. My issue is resolved by referencing proper DLL.
Still I am confused that on some systems it works properly and on production server its not worked.

1 solution

My issue is resolved by referencing proper DLL (issue with 32-bit/64-bit DLL mismatch).
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900