LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 05-29-2011, 05:01 PM   #1
michaelinux
Member
 
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
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,094
Blog Entries: 2

Rep: Reputation: 111Reputation: 111
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");
...
 
  


Reply

Tags
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/Novell 6 06-15-2007 05:08 PM
MPLAYER not working, acces denied PKR6000 Suse/Novell 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 03:08 PM.

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