ASp.net Access denied
Добавлено: 04 авг 2005, 18:47
запускаю слекуший код
а он мне
Access to the path "C:\WINDOWS\system32\MyFile.bin" is denied.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.UnauthorizedAccessException: Access to the path "C:\WINDOWS\system32\MyFile.bin" is denied.
как настроить винду (или IIS не щнаю точно) что не получать
Access to the path "C:\WINDOWS\system32\MyFile.bin" is denied
и я мог бы создавать , стирать и менять файлы
Код: Выделить всё
System.Data.DataTable dt=new DataTable("test");
IFormatter formatter = new BinaryFormatter();
Stream stream = new FileStream("MyFile.bin", FileMode.Create, FileAccess.Write, FileShare.None);
formatter.Serialize(stream, dt);
stream.Close();
Access to the path "C:\WINDOWS\system32\MyFile.bin" is denied.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.UnauthorizedAccessException: Access to the path "C:\WINDOWS\system32\MyFile.bin" is denied.
как настроить винду (или IIS не щнаю точно) что не получать
Access to the path "C:\WINDOWS\system32\MyFile.bin" is denied
и я мог бы создавать , стирать и менять файлы