Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 05-29-2011, 05:01 PM   #1
Registered: Apr 2009
Location: El Salvador
Distribution: Slackware -current
Posts: 166

Rep: Reputation: 17
[C#] monodevelop acces to the path is denied??

i'm trying to run some code i had written a couple of weeks ago in windows :$, the program has to create and copy some files and when i try to run this code in monodevelop i get this error:
Unhandled Exception: System.UnauthorizedAccessException: Access to the path '/tmp' is denied.

i've tried to change the path where i know i have read/write permissions but it doesn't seem to work, the code was originally written to create a file in the Temp folder in windows.
Old 05-31-2011, 05:14 PM   #2
Senior Member
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,114
Blog Entries: 2

Rep: Reputation: 112Reputation: 112
can you post the pertinent section of code?

You can do something like this that'll work in both windows and linux for application specific data (might even be per user, iirc)

string filename = System.IO.Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData),"filenam e");


error, monodevelop, programing

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Acces Denied when upgrading to RHEL 4.8 swepic Red Hat 2 09-02-2009 12:04 PM
samba [profiles] acces denied enboig Linux - Networking 1 03-09-2009 02:24 AM
acces denied error when opening dvd mocean SUSE / openSUSE 6 06-15-2007 05:08 PM
MPLAYER not working, acces denied PKR6000 SUSE / openSUSE 2 09-29-2006 05:54 PM
Samba, acces denied ommmmid Linux From Scratch 10 09-22-2005 02:34 AM

All times are GMT -5. The time now is 04:23 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration