How do I load a file from bin folder in ASP.NET in medium trust

Posted by Andrei Rinea on Stack Overflow See other posts from Stack Overflow or by Andrei Rinea
Published on 2010-05-27T22:34:50Z Indexed on 2010/05/28 1:41 UTC
Read the original article Hit count: 271

Filed under:
|
|
|

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 */))
{

}

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about io