User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 373,193 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,852 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 249 | Replies: 1
Reply
Join Date: May 2008
Posts: 1
Reputation: dheeraj mittal is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
dheeraj mittal dheeraj mittal is offline Offline
Newbie Poster

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

  #1  
May 8th, 2008
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>
Last edited by peter_budo : May 9th, 2008 at 7:57 am. Reason: Keep It On Site - Do not post asking for an answer to be sent to you via email or PM.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Oct 2007
Location: Bristol, UK
Posts: 1,122
Reputation: majestic0110 is on a distinguished road 
Rep Power: 3
Solved Threads: 46
majestic0110's Avatar
majestic0110 majestic0110 is offline Offline
Veteran Poster

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

  #2  
May 8th, 2008
Hi there and welcome to DaniWeb! I think you may find the answer here:

http://www.msnewsgroups.net/group/mi...opic34774.aspx
Hope this helps you out!
If you have a quality, be proud of it and let it define you. Add it to the world!
If you got your answer, please mark the thread as Solved. It saves time when people are looking to contribute threads or for answers!
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb ASP.NET Marketplace
Thread Tools Display Modes

Other Threads in the ASP.NET Forum

All times are GMT -4. The time now is 10:01 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC