When I wtite a code like below one,
protected void Page_Load(object sender, eventAgrs e)
{
string xDoc ="Durgesh kumar rao";
File.Create(Server.MapPath("~/XML"));
File.WriteAllText(Server.MapPath("~/XML"), xDOC);
}
This throw exception,
The process cannot access the file, because it is being used by another process.
Am I doing something wrong, or File Static Method preform security check i.e why it throws exception.