Server Error in '/' Application.

Could not find file 'C:\Inetpub\vhosts\selenasys.com\_selenasys.com\Help\4.2.1.htm'.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.FileNotFoundException: Could not find file 'C:\Inetpub\vhosts\selenasys.com\_selenasys.com\Help\4.2.1.htm'.

Source Error:


Line 77:     public static string GetHelpPage(string page)
Line 78:     {
Line 79:         string text = File.ReadAllText(page, Encoding.GetEncoding(1251));
Line 80:         text = Regex.Replace(text, @"src=""(\.\./)*Resource/", @"src=""Help/Resource/", RegexOptions.IgnoreCase);
Line 81:         text = Regex.Replace(text, @"href=""(\.\./)*", @"href=""Help.aspx?p=", RegexOptions.IgnoreCase);

Source File: c:\inetpub\vhosts\selenasys.com\_selenasys.com\App_Code\Globals.cs    Line: 79

Stack Trace:


[FileNotFoundException: Could not find file 'C:\Inetpub\vhosts\selenasys.com\_selenasys.com\Help\4.2.1.htm'.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +1344
   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) +1217
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) +144
   System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost) +174
   System.IO.File.InternalReadAllText(String path, Encoding encoding, Boolean checkHost) +84
   Globals.GetHelpPage(String page) in c:\inetpub\vhosts\selenasys.com\_selenasys.com\App_Code\Globals.cs:79
   Help.Page_Load(Object sender, EventArgs e) in c:\inetpub\vhosts\selenasys.com\_selenasys.com\Help.aspx.cs:17
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3930.0