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

无法将类型为“Eforces.Config.SiteConfigInfo”的对象强制转换为类型“Eforces.Config.CompanyConfigInfo”。

说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.InvalidCastException: 无法将类型为“Eforces.Config.SiteConfigInfo”的对象强制转换为类型“Eforces.Config.CompanyConfigInfo”。

源错误:


[没有相关的源行]

源文件: c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\8fb52edd\4f9a569f\App_Web_73ubeiwx.20.cs    行: 0

堆栈跟踪:


[InvalidCastException: 无法将类型为“Eforces.Config.SiteConfigInfo”的对象强制转换为类型“Eforces.Config.CompanyConfigInfo”。]
   Eforces.Config.CompanyConfig.set_ConfigInfo(IConfigInfo value) +28
   Eforces.Config.CompanyConfig.LoadConfig() +42
   Eforces.Date.SqlServer.DLanmu..ctor() +38
   Eforces.Date.SqlServer.DNews.URL(String url, String lc, String dy, String dt, String filename, String extension, String link) +496
   Eforces.Date.SqlServer.DNews.GetRepl(Int32 type, Int32 lmid, Int32 id, String keys, String newstable) +828
   Eforces.Bll.BNews.GetRepl(Int32 type, Int32 lmid, Int32 id, String keys, String newstable) +26
   Eforces.Web.content.ShowPage() +2753
   Eforces.Components.WebPage..ctor() +910
   Eforces.Web.content..ctor() +76
   ASP.aspx_content_aspx..ctor() in c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\8fb52edd\4f9a569f\App_Web_73ubeiwx.20.cs:0
   __ASP.FastObjectFactory_app_web_73ubeiwx.Create_ASP_aspx_content_aspx() in c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\8fb52edd\4f9a569f\App_Web_73ubeiwx.59.cs:0
   System.Web.Compilation.BuildResultCompiledType.CreateInstance() +32
   System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +119
   System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +33
   System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) +37
   System.Web.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +307
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155


版本信息: Microsoft .NET Framework 版本:2.0.50727.5420; ASP.NET 版本:2.0.50727.5420