无法在生产服务器上加载文件或程序集objectpooling.dll错误 [英] Could not load file or assembly objectpooling.dll error on production server

查看:97
本文介绍了无法在生产服务器上加载文件或程序集objectpooling.dll错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我们创建一个WCF应用程序,并使用对象池技术来创建对象。在代码和代码上一切正常然后在测试机器上。但是当我们将该应用程序部署到生产服务器时,我们会收到类似错误的错误。

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存在于构建中,同样在不同的地方测试。我们无法追踪生产服务器上的问题。



任何人都可以知道如何克服这个问题或者有什么方法可以解决这个问题? />


我尝试了什么:



我们将dll复制到几个地方,包括C :\ Windows \ System32,C:\ Windows \ microsoft.NET \ Framework \v2.0.50727,C:\ Windows \ Microsoft.NET.NET \ Framework \v4.0.30319等。



但无法解决。


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.

推荐答案

我的问题通过引用正确的DLL解决(问题与32-位/ 64位DLL不匹配)。
My issue is resolved by referencing proper DLL (issue with 32-bit/64-bit DLL mismatch).


这篇关于无法在生产服务器上加载文件或程序集objectpooling.dll错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆