本文介绍了logger.write中的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





无法加载文件或程序集'Microsoft.Practices.ServiceLocation,Version = 1.0.0.0,Culture = neutral,PublicKeyToken = 31bf3856ad364e35'或者它的依赖关系。系统找不到指定的文件。



此错误出现在下面的代码....





Logger.Write(caughtException.Message + Environment.NewLine +User Id:+

HttpContext.Current.User.Identity.Name + Environment .NewLine +角色名称:

+ Environment.NewLine +Type:+ caughtException.GetType()。FullName + Environment.NewLine +

Url: + Convert.ToString(Request.UrlReferrer)+ Environment.NewLine + caughtException.StackTrace);



请解决此问题...

hi

"Could not load file or assembly 'Microsoft.Practices.ServiceLocation, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified."

this error appear the below code....


Logger.Write(caughtException.Message + Environment.NewLine + "User Id: " +
HttpContext.Current.User.Identity.Name + Environment.NewLine + "Role Name: "
+ Environment.NewLine + "Type: " + caughtException.GetType().FullName + Environment.NewLine +
"Url: " + Convert.ToString(Request.UrlReferrer) + Environment.NewLine + caughtException.StackTrace);

pls solve this...

推荐答案


File Details:
Namespace: Microsoft.Practices.ServiceLocation

Assembly: Microsoft.Practices.ServiceLocation (in Microsoft.Practices.ServiceLocation.dll) Version: 1.0.0.0 (1.0.0.0)





[]


这篇关于logger.write中的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-24 18:57