C#程序集问题,请高手帮忙解决一下!!

“/”应用程序中的服务器错误。


未能加载文件或程序集“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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值