Error : Request for the permission of type 'System.Security.Permissions.FileIOPermission,mscorlib, V

D

dhemittal

Hi Friends,

i am having a problem in create directory on local machine through
Asp.net web application 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.

i think it required setting in web.config file. whats this setting
plase help me.


Thanks in Advance

Email Id: (e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top