应用程序错误:无法加载文件或程序集

时间:2012-06-28 11:01:43

标签: c# asp.net web-config configuration-files config

我正在使用.net,当我运行我的应用程序时,我收到此错误。任何人都可以帮助我吗?

Application Error -
MESSAGE: Could not load file or assembly 'ConfigurationMgr, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
SOURCE: BusinessLayer
TARGETSITE: Void .ctor()
STACKTRACE:
  at BusinessLayer.BL..ctor()
  at Marketing_BulkSMS..ctor()
  at ASP.marketing_bulksms_aspx..ctor()
  at __ASP.FastObjectFactory_app_web_q3yaaskd.Create_ASP_marketing_bulksms_aspx()
  at System.Web.Compilation.BuildResultCompiledType.CreateInstance()
  at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert)
  at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
  at System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
  at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig)

1 个答案:

答案 0 :(得分:0)

您在bin文件夹中缺少ConfigurationMgr.dll文件,或者bin文件夹中的ConfigurationMgr.dll与Web.config中指定的版本不同。