Error-ASP.NET: 未能加载文件或程序集“ServiceStack.Common, Version=3.9.70.0, Culture=neutral, PublicKeyToken=null”或它的某一个依赖项。系统找不到指定的文件。

ylbtech-Error-ASP.NET: 未能加载文件或程序集“ServiceStack.Common, Version=3.9.70.0, Culture=neutral, PublicKeyToken=null”或它的某一个依赖项。系统找不到指定的文件。
1.返回顶部
1、
行 54:             //RedisConfigInfo类是记录redis连接信息,此信息和配置文件中的RedisConfig相呼应
行 55:             //支持读写分离,均衡负载 
行 56:             return new PooledRedisClientManager(readWriteHosts, readOnlyHosts,
行 57:                 new RedisClientManagerConfig
行 58:                 {

源文件: D:sp-tbm源代码5.CommonSp.TBM.CacheRedisHelper.cs    行: 56

程序集加载跟踪: 下列信息有助于确定程序集“ServiceStack.Common, Version=3.9.70.0, Culture=neutral, PublicKeyToken=null”未能加载的原因。

警告: 程序集绑定日志记录被关闭。
要启用程序集绑定失败日志记录,请将注册表值 [HKLMSoftwareMicrosoftFusion!EnableLog] (DWORD)设置为 1。
注意: 会有一些与程序集绑定失败日志记录关联的性能损失。
要关闭此功能,请移除注册表值 [HKLMSoftwareMicrosoftFusion!EnableLog]。

堆栈跟踪:

[FileNotFoundException: 未能加载文件或程序集“ServiceStack.Common, Version=3.9.70.0, Culture=neutral, PublicKeyToken=null”或它的某一个依赖项。系统找不到指定的文件。]
   ServiceStack.Redis.PooledRedisClientManager..ctor(IEnumerable`1 readWriteHosts, IEnumerable`1 readOnlyHosts, RedisClientManagerConfig config, Int64 initalDb, Nullable`1 poolSizeMultiplier, Nullable`1 poolTimeOutSeconds) +0
   ServiceStack.Redis.PooledRedisClientManager..ctor(IEnumerable`1 readWriteHosts, IEnumerable`1 readOnlyHosts, RedisClientManagerConfig config) +66
   Sp.TBM.Cache.RedisHelper.CreateManager(String[] readWriteHosts, String[] readOnlyHosts) in D:sp-tbm源代码5.CommonSp.TBM.CacheRedisHelper.cs:56
   Sp.TBM.Cache.RedisHelper..cctor() in D:sp-tbm源代码5.CommonSp.TBM.CacheRedisHelper.cs:68

[TypeInitializationException: “Sp.TBM.Cache.RedisHelper”的类型初始值设定项引发异常。]
   Sp.TBM.Cache.RedisHelper.SetT(String key, T value) in D:sp-tbm源代码5.CommonSp.TBM.CacheRedisHelper.cs:132
   Sp.TBM.Web.index.TestString() in D:sp-tbm源代码1.WebSp.TBM.Webindex.aspx.cs:27
   Sp.TBM.Web.index.btn_Click(Object sender, EventArgs e) in D:sp-tbm源代码1.WebSp.TBM.Webindex.aspx.cs:20
   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +11758656
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +150
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5028


版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.7.3062.0
2、
2.返回顶部
1、
A1:请检查生成的bin文件夹下是否有此dll文件,没有的话项目需要添加该引用。
2、
3.返回顶部
 
4.返回顶部
 
5.返回顶部
 
 
6.返回顶部
 
warn 作者:ylbtech
出处:http://ylbtech.cnblogs.com/
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。
原文地址:https://www.cnblogs.com/storebook/p/12659598.html