Server Error in '/' Application.

Could not find file '\\nawinfs05\home\users\web\b154\ipw.tonyerns\xml\aventure.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 '\\nawinfs05\home\users\web\b154\ipw.tonyerns\xml\aventure.xml'.

Source Error:


Line 23: 		_portfolioFileName = Request.QueryString["portfolio"];
Line 24: 		XmlDocument xml = new XmlDocument();
Line 25: 		xml.Load(Server.MapPath("xml/" + _portfolioFileName + ".xml"));
Line 26: 
Line 27: 		XmlNode portfolioNode = xml.SelectSingleNode("portfolio");

Source File: \\nawinfs05\home\users\web\b154\ipw.tonyerns\portfolio.aspx    Line: 25

Stack Trace:


[FileNotFoundException: Could not find file '\\nawinfs05\home\users\web\b154\ipw.tonyerns\xml\aventure.xml'.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +10909597
   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) +2580
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy) +138
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize) +94
   System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials) +121
   System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn) +65
   System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver) +76
   System.Threading.CompressedStack.runTryCode(Object userData) +118
   System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) +0
   System.Threading.CompressedStack.Run(CompressedStack compressedStack, ContextCallback callback, Object state) +122
   System.Xml.XmlTextReaderImpl.OpenUrl() +5047756
   System.Xml.XmlTextReaderImpl.Read() +152
   System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) +165
   System.Xml.XmlDocument.Load(XmlReader reader) +134
   System.Xml.XmlDocument.Load(String filename) +95
   ASP.portfolio_aspx.Page_Load() in \\nawinfs05\home\users\web\b154\ipw.tonyerns\portfolio.aspx:25
   System.Web.Util.CalliHelper.ArglessFunctionCaller(IntPtr fp, Object o) +12
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +11138254
   System.Web.UI.Control.OnLoad(EventArgs e) +132
   System.Web.UI.Control.LoadRecursive() +66
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428


Version Information: Microsoft .NET Framework Version:2.0.50727.9174; ASP.NET Version:2.0.50727.9175