Could not find a part of the path 'C:\Program Files\Common Files\Microsoft Shared\DevServer\10.0\~\bin\XMLStaticData.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.DirectoryNotFoundException: Could not find a part of the path 'C:\Program Files\Common Files\Microsoft Shared\DevServer\10.0\~\bin\XMLStaticData.xml'.
Source Error:
Line 43:
Line 44:
Line 45: XElement xe = XElement.Load("~/bin/XMLStaticData.xml");
Line 46:
Line 47: List<generalentity> lstGeneralEntity = new List<generalentity>();
Source File: D:\Back up of Ishan\Projects\New folder\TMOyeTrivia\BusinessLayer\MiscOperations.cs Line: 45
Stack Trace:
[DirectoryNotFoundException: Could not find a part of the path 'C:\Program Files\Common Files\Microsoft Shared\DevServer\10.0\~\bin\XMLStaticData.xml'.]
System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +224
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) +1142
System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize) +81
System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy) +77
System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn) +69
System.Xml.XmlReaderSettings.CreateReader(String inputUri, XmlParserContext inputContext) +125
System.Xml.XmlReader.Create(String inputUri, XmlReaderSettings settings, XmlParserContext inputContext) +43
System.Xml.Linq.XElement.Load(String uri, LoadOptions options) +52
System.Xml.Linq.XElement.Load(String uri) +6
BusinessLayer.MiscOperations.PopulateStaticDDL(String strEntityName) in D:\Back up of Ishan\Projects\New folder\TMOyeTrivia\BusinessLayer\MiscOperations.cs:45
TMOyeTrivia.Default1.PopulateCountryDDL() in D:\Back up of Ishan\Projects\New folder\TMOyeTrivia\TMOyeTrivia\Default.aspx.cs:65
TMOyeTrivia.Default1.Page_Load(Object sender, EventArgs e) in D:\Back up of Ishan\Projects\New folder\TMOyeTrivia\TMOyeTrivia\Default.aspx.cs:35
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) +91
System.Web.UI.Control.LoadRecursive() +74
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
Tags: C#, XML, ASP.NET, XML documentation