[Mono-list] Reset mono

Andrus Moor kobruleht2 at hot.ee
Wed Jun 17 08:59:23 EDT 2009


>> System.IO.Directory.Move("/tmp/www-data-temp-aspnet-0",
>>  "/tmp/www-data-temp-aspnet-0.old");
> 
> Have you called this from an ASP.NET app? Otherwise it won't
> work.

I called it from asmx web service:

[WebMethod]
public string Test()  {
    try
    {
     System.IO.Directory.Move("/tmp/www-data-temp-aspnet-0",
 "/tmp/www-data-temp-aspnet-0.old");
    }
    catch (Exception ex)
    {
     return "Move error " + ex.ToString();
    }
return "moved";
}

Andrus.


More information about the Mono-list mailing list