Server Error in '/' Application.

Could not find file 'G:\PleskVhosts\thegriebels.com\httpdocs\App_Data\BlogPosts.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 'G:\PleskVhosts\thegriebels.com\httpdocs\App_Data\BlogPosts.xml'.

Source Error:


Line 289:        ''' <summary>total number of blog posts</summary>
Line 290:        Public Shared Function BlogPostsCount() As Integer
Line 291:            Dim xmlPosts As XElement = XElement.Load(HttpContext.Current.Server.MapPath("~/App_Data/BlogPosts.xml"))
Line 292:            Dim cnt As Integer
Line 293:

Source File: G:\PleskVhosts\thegriebels.com\httpdocs\App_Code\Blog.vb    Line: 291

Stack Trace:


[FileNotFoundException: Could not find file 'G:\PleskVhosts\thegriebels.com\httpdocs\App_Data\BlogPosts.xml'.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +305
   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) +1162
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize) +64
   System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials) +77
   System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn) +54
   System.Xml.XmlReader.Create(String inputUri, XmlReaderSettings settings, XmlParserContext inputContext) +144
   System.Xml.XmlReader.Create(String inputUri, XmlReaderSettings settings) +6
   System.Xml.Linq.XElement.Load(String uri, LoadOptions options) +50
   System.Xml.Linq.XElement.Load(String uri) +6
   TheGriebels.Blog.BlogPostsCount() in G:\PleskVhosts\thegriebels.com\httpdocs\App_Code\Blog.vb:291
   Rss.Page_Load(Object sender, EventArgs e) in G:\PleskVhosts\thegriebels.com\httpdocs\Rss.aspx.vb:23
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


Version Information: Microsoft .NET Framework Version:2.0.50727.9061; ASP.NET Version:2.0.50727.9062