Server Error in '/' Application.

Could not find file 'F:\Prosvet\www.prosvet.ee\banners.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 'F:\Prosvet\www.prosvet.ee\banners.xml'.

Source Error:


Line 236:        Try
Line 237:            'If Not doc Is Nothing Then doc.LoadXml(contents)
Line 238:            doc.Load(Server.MapPath("banners.xml"))
Line 239:            'doc.LoadXml(contents)
Line 240:        Catch ex As SqlException

Source File: F:\Prosvet\www.prosvet.ee\ArtNews9.aspx    Line: 238

Stack Trace:


[FileNotFoundException: Could not find file 'F:\Prosvet\www.prosvet.ee\banners.xml'.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +10907437
   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() +5045084
   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.artnews9_aspx.__RenderContentClient1(HtmlTextWriter __w, Control parameterContainer) in F:\Prosvet\www.prosvet.ee\ArtNews9.aspx:238
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +115
   ASP.masterclient_master.__Renderform1(HtmlTextWriter __w, Control parameterContainer) in F:\Prosvet\www.prosvet.ee\MasterClient.master:603
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +115
   System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +253
   System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +87
   System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +53
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240
   System.Web.UI.Page.Render(HtmlTextWriter writer) +38
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4240


Version Information: Microsoft .NET Framework Version:2.0.50727.8974; ASP.NET Version:2.0.50727.8975