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

未能找到文件“f:\usr\LocalUser\xyw8085300001\Config\MembershipContract.txt”。

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

异常详细信息: System.IO.FileNotFoundException: 未能找到文件“f:\usr\LocalUser\xyw8085300001\Config\MembershipContract.txt”。

源错误:


行 263:                    </h4>
行 264:                    <div id="divContract" style="display: none;">
行 265:                        <textarea id="txtContract" style="width: 99%;" rows="20"><%= NSW.OConfig.GlobalConfig.MembershipContract %></textarea>
行 266:                    </div>
行 267:                    <div style="height: 50px;">

源文件: f:\usr\localuser\xyw8085300001\User\Register.aspx    行: 265

堆栈跟踪:


[FileNotFoundException: 未能找到文件“f:\usr\LocalUser\xyw8085300001\Config\MembershipContract.txt”。]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +305
   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) +1162
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options) +65
   System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize) +87
   System.IO.StreamReader..ctor(String path, Encoding encoding) +15
   System.IO.File.ReadAllText(String path, Encoding encoding) +55
   NSW.OConfig.GlobalConfig.get_MembershipContract() +93
   ASP.user_register_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in f:\usr\localuser\xyw8085300001\User\Register.aspx:265
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +256
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
   System.Web.UI.Page.Render(HtmlTextWriter writer) +29
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1266


版本信息: Microsoft .NET Framework 版本:2.0.50727.8806; ASP.NET 版本:2.0.50727.8762