Server Error in '/' Application.

Could not find file 'c:\inetpub\strategypageroot\gallery\docs\military_photos_200773212455.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\strategypageroot\gallery\docs\military_photos_200773212455.htm'.

Source Error:


Line 61:         if (fileName != null)
Line 62:         {
Line 63:             content = ContentBuilder.Build(spUtil.ContentType.PhotoPage, fileName.Replace("military_photos_", ""));
Line 64:             paginationPanel.Visible = true;
Line 65:             angleRight.Visible = false;

Source File: C:\inetpub\StrategyPageRoot\military_photos\photos.aspx.cs    Line: 63

Stack Trace:


[FileNotFoundException: Could not find file 'c:\inetpub\strategypageroot\gallery\docs\military_photos_200773212455.htm'.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +1404
   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) +1242
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) +146
   System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost) +177
   System.IO.StreamReader..ctor(String path, Encoding encoding) +33
   System.IO.File.InternalReadAllLines(String path, Encoding encoding) +109
   spUtil.PhotoContent.GetRawContent(String pathFileName) +164
   spUtil.ContentBuilder.Build(ContentType ct, String filename) +319
   photos.display() in C:\inetpub\StrategyPageRoot\military_photos\photos.aspx.cs:63
   photos.OnPreRender(EventArgs e) in C:\inetpub\StrategyPageRoot\military_photos\photos.aspx.cs:34
   System.Web.UI.Control.PreRenderRecursiveInternal() +132
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3671


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