G
Guest
Hi,
i have a Web application and i get this error:
The process cannot access the file
"c:\inetpub\wwwroot\dotnet\Soluciones\Calculations\PhoneTariffs\Errors\Log.txt" because it is being used by another
The code that generates this error is the following:
Directory.CreateDirectory("c:\inetpub\wwwroot\Error");
File.Create("c:\inetpub\wwwroot\Error\log.txt");
System.IO.StreamWriter StreamLog=new
System.IO.StreamWriter("c:\inetpub\wwwroot\Error\log.txt");
StreamLog.Write(e.Message);
StreamLog.Close();
How could avoid that error?.
i have a Web application and i get this error:
The process cannot access the file
"c:\inetpub\wwwroot\dotnet\Soluciones\Calculations\PhoneTariffs\Errors\Log.txt" because it is being used by another
The code that generates this error is the following:
Directory.CreateDirectory("c:\inetpub\wwwroot\Error");
File.Create("c:\inetpub\wwwroot\Error\log.txt");
System.IO.StreamWriter StreamLog=new
System.IO.StreamWriter("c:\inetpub\wwwroot\Error\log.txt");
StreamLog.Write(e.Message);
StreamLog.Close();
How could avoid that error?.