Error : Request for the permission of type 'System.Security.Permissions.FileI OPermission, mscorlib, Version=2.0.0.0, Culture=neu
Hi Friends,
i am having a problem in create directory on local machine through Asp.net source codeand coping file from website folder to my local machinethrough source code. by using
File
.Copy(DPath, savePath, true); that code generating
Error : Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
the problem is Only occure only when i runwebsite on web. but on local machine its working fine.
Thanks in Advance
Email Id: dhemittal@gmail.com
May 8th, 2008 5:15pm