“/”应用程序中的服务器错误。
未能加载文件或程序集“Office.BLL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null”或它的某一个依赖项。系统找不到指定的文件。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: System.IO.FileNotFoundException: 未能加载文件或程序集“Office.BLL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null”或它的某一个依赖项。系统找不到指定的文件。
源错误:
行 16: //String fullName = namespaceName + "." + "CreatBLLFactory"; 行 17: string n = System.Reflection.Assembly.GetExecutingAssembly().FullName;//.ToString();//获取当前运行的程序集的 string n = System.Reflection.Assembly.GetExecutingAssembly().ToString();//获取当前运行的程序集的 行 18: return (BLLFactory)System.Reflection.Assembly.Load("Office.BLL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null").CreateInstance("Office.BLL.CreatBLLFactory"); 行 19: } 行 20: //public abstract ObjectOrList CreateAccessoryFileBll();//1 |
源文件: F:/MyOffice/Factory/BLLFactory.cs 行: 18
程序集加载跟踪: 下列信息有助于确定程序集“Office.BLL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null”无法加载的原因。
警告: 程序集绑定日志记录被关闭。 要启用程序集绑定失败日志记录,请将注册表值 [HKLM/Software/Microsoft/Fusion!EnableLog] (DWORD)设置为 1。 注意: 会有一些与程序集绑定失败日志记录关联的性能损失。 要关闭此功能,请移除注册表值 [HKLM/Software/Microsoft/Fusion!EnableLog]。 |
堆栈跟踪:
[FileNotFoundException: 未能加载文件或程序集“Office.BLL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null”或它的某一个依赖项。系统找不到指定的文件。] System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0 System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +54 System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +211 System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +141 System.Reflection.Assembly.Load(String assemblyString) +25 Factory.BLLFactory.Instance() in F:/MyOffice/Factory/BLLFactory.cs:18 Office.UI.index.loginButton_Click(Object sender, ImageClickEventArgs e) in F:/MyOffice/Office.UI/index.aspx.cs:36 System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +86 System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +115 System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746 |
版本信息: Microsoft .NET Framework 版本:2.0.50727.1433; ASP.NET 版本:2.0.50727.1433