<分区>
当我编写如下代码时,
protected void Page_Load(object sender, eventAgrs e)
{
string xDoc ="Durgesh kumar rao";
File.Create(Server.MapPath("~/XML"));
File.WriteAllText(Server.MapPath("~/XML"), xDOC);
}
这个抛出异常,
The process cannot access the file, because it is being used by another process.
我是不是做错了什么,或者文件静态方法预制安全检查,即它抛出异常的原因。