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

未能找到文件“E:\wwwroot\trainertec_3ern1g\web\Config\Global.config”。

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

异常详细信息: System.IO.FileNotFoundException: 未能找到文件“E:\wwwroot\trainertec_3ern1g\web\Config\Global.config”。

源错误:


行 63: 
行 64:         string str = "";
行 65:         Dictionary<string, string> Dictionary = ConfigAll.selectAllConfig("Config//Global.config");
行 66:         foreach (var item in Dictionary)
行 67:         {

源文件: e:\wwwroot\trainertec_3ern1g\web\news_details.aspx.cs    行: 65

堆栈跟踪:


[FileNotFoundException: 未能找到文件“E:\wwwroot\trainertec_3ern1g\web\Config\Global.config”。]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +10842978
   System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) +1305
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize) +63
   System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy) +77
   System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn) +69
   System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver) +54
   System.Threading.CompressedStack.runTryCode(Object userData) +70
   System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) +0
   System.Threading.CompressedStack.Run(CompressedStack compressedStack, ContextCallback callback, Object state) +92
   System.Xml.XmlTextReaderImpl.OpenUrl() +132
   System.Xml.XmlTextReaderImpl.Read() +308
   System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) +145
   System.Xml.XmlDocument.Load(XmlReader reader) +107
   System.Xml.XmlDocument.Load(String filename) +122
   GreatPublish.ConfigAll.selectAllConfig(String url) in E:\Mywork家旺\r_瑞社\r_net\GreatPublish\ConfigAll.cs:72
   news_details.Page_Load(Object sender, EventArgs e) in e:\wwwroot\trainertec_3ern1g\web\news_details.aspx.cs:65
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
   System.Web.UI.Control.OnLoad(EventArgs e) +92
   System.Web.UI.Control.LoadRecursive() +54
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772


版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.0.30319.34274