How do I load a file from bin folder in ASP.NET in medium trust
- by Andrei Rinea
I need to load an xML file from the bin folder in ASP.NET (MVC, not that it would count). I can't get the bin folder path nor load the file otherwise.. I need to feed the following method :
using(var file = System.IO.File.OpenRead(/* something */))
{
}