Server Error in '/' Application.

Could not find file 'C:\Websites\SeeInside\xml_data\5092.xml'.

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:\Websites\SeeInside\xml_data\5092.xml'.

Source Error:


Line 20:     		Dim doc As XmlDocument = New XmlDocument(), docTransform As XslTransform = New XslTransform(), docStream As New MemoryStream()
Line 21:     		Dim pageList As XmlNodeList
Line 22:             doc.Load(HostingEnvironment.MapPath("/xml_data/" & Request("xml").Trim()))
Line 23:             docTransform.Load(HostingEnvironment.MapPath("/xml_data/xsl/page_sort.xsl"))
Line 24:             docTransform.Transform(doc, Nothing, docStream)

Source File: C:\Websites\SeeInside\common_code\create_spread.aspx    Line: 22

Stack Trace:


[FileNotFoundException: Could not find file 'C:\Websites\SeeInside\xml_data\5092.xml'.]
   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) +124
   System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy) +116
   System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn) +77
   System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver) +71
   System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) +0
   System.Threading.CompressedStack.Run(CompressedStack compressedStack, ContextCallback callback, Object state) +112
   System.Xml.XmlTextReaderImpl.OpenUrl() +396
   System.Xml.XmlTextReaderImpl.Read() +296
   System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) +158
   System.Xml.XmlDocument.Load(XmlReader reader) +134
   System.Xml.XmlDocument.Load(String filename) +146
   ASP.common_code_create_spread_aspx.Page_Load(Object sender, EventArgs e) in C:\Websites\SeeInside\common_code\create_spread.aspx:22
   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.4087.0