System.IO.FileLoadException: 找到的名为“log4net”的程序集清单定义与程序集引用不匹配

try13698903461 2009-03-23 04:08:28
如题 C#.NET 在浏览网页的时候出现这个错误,请高手指导下。谢谢!
...全文
383 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
try13698903461 2009-03-23
  • 打赏
  • 举报
回复
全部错误如下:


找到的名为“log4net”的程序集清单定义与程序集引用不匹配。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.IO.FileLoadException: 找到的名为“log4net”的程序集清单定义与程序集引用不匹配。

源错误:


[没有相关的源行]


源文件: c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\ffpclub\81285b2e\7f033b91\jxyrco-a.0.cs 行: 0

程序集加载跟踪: 下列信息有助于确定程序集“log4net”无法加载的原因。


=== Pre-bind state information ===
LOG: DisplayName = log4net, Version=1.2.9.0, Culture=neutral, PublicKeyToken=b32731d11ce58905
(Fully-specified)
LOG: Appbase = file:///D:/Web/FFPCLub/FFPCLUB
LOG: Initial PrivatePath = bin
Calling assembly : HNAS.FFPClub, Version=1.0.3365.26413, Culture=neutral, PublicKeyToken=null.
===

LOG: Publisher policy file is not found.
LOG: No redirect found in host configuration file (C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet.config).
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\config\machine.config.
LOG: Post-policy reference: log4net, Version=1.2.9.0, Culture=neutral, PublicKeyToken=b32731d11ce58905
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/ffpclub/81285b2e/7f033b91/log4net.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/ffpclub/81285b2e/7f033b91/log4net/log4net.DLL.
LOG: Attempting download of new URL file:///D:/Web/FFPCLub/FFPCLUB/bin/log4net.DLL.
WRN: Comparing the assembly name resulted in the mismatch: Build Number



堆栈跟踪:


[FileLoadException: 找到的名为“log4net”的程序集清单定义与程序集引用不匹配。]
HNAS.FFPClub.Front.doChange.OrderOnline.WirtePassengerInfo..ctor() +0
ASP.WirtePassengerInfo_aspx..ctor() in c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\ffpclub\81285b2e\7f033b91\jxyrco-a.0.cs:0

[TargetInvocationException: 调用的目标发生了异常。]
System.RuntimeType.CreateInstanceImpl(Boolean publicOnly) +0
System.Activator.CreateInstance(Type type, Boolean nonPublic) +66
System.Web.UI.TemplateControlParser.GetCompiledInstance(String virtualPath, String inputFile, HttpContext context) +164

[HttpException (0x80004005): 未能创建类型为“ASP.WirtePassengerInfo_aspx”的页。]
System.Web.UI.TemplateControlParser.GetCompiledInstance(String virtualPath, String inputFile, HttpContext context) +341
System.Web.UI.PageParser.GetCompiledPageInstanceInternal(String virtualPath, String inputFile, HttpContext context) +43
System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String url, String path) +44
System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, String path, String pathTranslated, Boolean useAppConfig) +699
System.Web.HttpServerUtility.ExecuteInternal(String path, TextWriter writer, Boolean preserveForm) +551

[HttpException (0x80004005): 为 WirtePassengerInfo.aspx 执行子请求时出错。]
System.Web.HttpServerUtility.ExecuteInternal(String path, TextWriter writer, Boolean preserveForm) +1814
System.Web.HttpServerUtility.Transfer(String path, Boolean preserveForm) +24
System.Web.HttpServerUtility.Transfer(String path) +27
HNAS.FFPClub.Front.doChange.OrderOnline.SearchResult.ibtSubmit_Click(Object sender, ImageClickEventArgs e)
System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +109
System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +69
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1292




--------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:1.1.4322.2407; ASP.NET 版本:1.1.4322.2407

111,126

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Creator Browser
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧