I suspect I may be wording this question incorrectly (it’s been a while since I’ve done anything in the Microsoft space) but here goes.
In essence, I’m trying to programmatically access an XML document with the ~/Content directory. I’ve tried to do this along the lines of…
XElement resourceConfigXML = XElement.Load(@"~/Content/resource_configuration.xml");
..but this obviously isn’t correct, as the string isn’t being converted into a path the operating system understands. As such, is there any means of deriving the physical path to this directory at run-time?
Incidentally, if this is a naïve idea destined to failure/a grotesque misunderstanding of the purpose of the Content directory, feel free to let me know – in my defence I’m only getting to grips with .NET (the MVC flavour thankfully).