Server Error in '/' Application.

Could not find file 'C:\Sites\mimsites\mdpracticeguide1\App_Data\content\en\professions.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:\Sites\mimsites\mdpracticeguide1\App_Data\content\en\professions.xml'.

Source Error:


Line 50:             if (ret == null)
Line 51:             {
Line 52:                 ret = XDocument.Load(fileName, LoadOptions.PreserveWhitespace);
Line 53:                 CacheDocument(fileName, ret);
Line 54:             }

Source File: c:\Sites\mimsites\mdpracticeguide1\App_Code\common\SimpleFileHelper.cs    Line: 52

Stack Trace:


[FileNotFoundException: Could not find file 'C:\Sites\mimsites\mdpracticeguide1\App_Data\content\en\professions.xml'.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +10578269
   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.XmlReader.Create(String inputUri, XmlReaderSettings settings, XmlParserContext inputContext) +200
   System.Xml.Linq.XDocument.Load(String uri, LoadOptions options) +48
   SimpleFileHelper.getCurrentDoc(String fileName) in c:\Sites\mimsites\mdpracticeguide1\App_Code\common\SimpleFileHelper.cs:52
   SimpleFileHelper.GetCurrentDoc(String fileName) in c:\Sites\mimsites\mdpracticeguide1\App_Code\common\SimpleFileHelper.cs:41
   ProfileLookUpLists.readLookUpList(String fileName, String tagName) in c:\Sites\mimsites\mdpracticeguide1\App_Code\common\ProfileLookUpLists.cs:31
   ProfileLookUpLists.GetProfessionList() in c:\Sites\mimsites\mdpracticeguide1\App_Code\common\ProfileLookUpLists.cs:49
   cme_contact.bindProfessions() in c:\Sites\mimsites\mdpracticeguide1\cme\contact.aspx.cs:152
   cme_contact.Page_Load(Object sender, EventArgs e) in c:\Sites\mimsites\mdpracticeguide1\cme\contact.aspx.cs:36
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +42
   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.9055; ASP.NET Version:2.0.50727.9051