XmlTextWriter mywriter=new XmlTextWriter("nj.xml",System.Text.Encoding.UTF8);
怎么报错:System.UnauthorizedAccessException: 对路径“c:\windows\system32\inetsrv\nj.xml”的访问被拒绝。
路径有问题,怎么会是c:\windows\system32\inetsrv\nj.xml,应该是我的当前目录吧!!!
还有个问题
图片上传在存储的时候报错:
System.UnauthorizedAccessException: 对路径“C;\image\1.gif”的访问被拒绝。
怎么回事!!?