Click here to Skip to main content
15,896,437 members

Please help!!! urgent....

ishandeb asked:

Open original thread
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

Plain Text
ASM
ASP
ASP.NET
BASIC
BAT
C#
C++
COBOL
CoffeeScript
CSS
Dart
dbase
F#
FORTRAN
HTML
Java
Javascript
Kotlin
Lua
MIDL
MSIL
ObjectiveC
Pascal
PERL
PHP
PowerShell
Python
Razor
Ruby
Scala
Shell
SLN
SQL
Swift
T4
Terminal
TypeScript
VB
VBScript
XML
YAML

Preview



When answering a question please:
  1. Read the question carefully.
  2. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
  3. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome.
  4. Don't tell someone to read the manual. Chances are they have and don't get it. Provide an answer or move on to the next question.
Let's work to help developers, not make them feel stupid.
Please note that all posts will be submitted under the http://www.codeproject.com/info/cpol10.aspx.



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900