Hi Friends,

i am having a problem in create directory on local machine through Asp.net source code and coping file from website folder to my local machine through 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 run website on web. but on local machine its working fine.

Thanks in Advance

Email Id: <snipped>

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.