954,595 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Error : Request for the permission of type 'System.Security.Permissions.FileIOPermiss

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:

dheeraj mittal
Newbie Poster
1 post since May 2008
Reputation Points: 10
Solved Threads: 0
 

Hi there and welcome to DaniWeb! I think you may find the answer here:

http://www.msnewsgroups.net/group/microsoft.public.dotnet.languages.csharp/topic34774.aspx
Hope this helps you out!

majestic0110
Nearly a Posting Virtuoso
1,328 posts since Oct 2007
Reputation Points: 256
Solved Threads: 72
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You