Error : Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.



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: dhemittal@xxxxxxxxx
.



Relevant Pages

  • Re: incorrect log on parameters error
    ... > My company has a deployed ASP.net website in VB.net that needs changes. ... so I don't know if I have the current set of source code. ... > Everything seems to work but the Crystal report functionality. ... > getting "incorrect log on parameters" whenever I try to do an export. ...
    (microsoft.public.vb.crystal)
  • Re: NCUA website
    ...  The easiest (and I emphasize easiest) ... tournament in christendom is contolled by them).. ... Website goes down. ... While you might call stealing source code smart, ...
    (rec.sport.disc)
  • Re: Schematic Diagram database -- access problem
    ... I viewed the source code for that page but found no PDFs. ... The fact that you are seeing this page indicates that the website you ... For information on Fedora Core, please visit the Fedora Project website. ...
    (sci.electronics.repair)
  • how to implement "view selection source"
    ... i'm looking for a way to get the "selection source" from the IE control used in my programm, it in c# ... this is displaying the source code ... this is the usage of the IE control ... PS. how to make the IE control only display the website i want, and not to react for any clicks on hiperlinks on this website? ...
    (comp.programming)
  • RE: VBA code to read weather
    ... Adding a weather moniter into the app would be quite convenient ... data was available through the source code, and was suprised to find that it ... Access the Source Code and save that to disk ... code for any website you visit is available to anyone that knows how to find ...
    (microsoft.public.access.modulesdaovba)