I added a new Web Site and onLoad Event of the Page I try to Load Xml
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load(@"D:\languages\Lang-Ru.xml"); //ERROR
}
}
When I start the site, there is an error:
An exception of type 'System.NotSupportedException' occurred in mscorlib.dll but was not handled in user code
Additional information: The given path's format is not supported
StackTrace:
в System.Security.Util.StringExpressionSet.CanonicalizePath(String path, Boolean needFullPath) в System.Security.Util.StringExpressionSet.CreateListFromExpressions(String[] str, Boolean needFullPath) в System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, AccessControlActions control, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList) в System.IO.Path.GetFullPath(String path) в System.Xml.XmlResolver.ResolveUri(Uri baseUri, String relativeUri)
в System.Xml.XmlTextReaderImpl..ctor(String url, XmlNameTable nt) в System.Xml.XmlDocument.Load(String filename) в _Default.Page_Load(Object sender, EventArgs e) в d:\sample\Default.aspx.cs:строка 14 в System.Web.UI.Control.LoadRecursive() в System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Can anybody help me? Maybe there is some illegal settings in IIS.