[Mono-winforms-list] System.UnauthorizedAccessException: Access to the path to folder is denied on Linux
Rafael Teixeira
monoman at gmail.com
Thu Jan 22 08:49:11 EST 2009
Normally there is a Desktop directory in the home folder (with capital D),
so probably you doesn't have a desktop directory there and you won't be able
access a file inside a non existing directory.
Try at a console window:
ls /home/jose
to see if there is a desktop directory there.
Remember, in Linux and most other OSes, except Windows, the filesystem is
case sensitive so Desktop and desktop are 2 different folders or files.
Hope it helps,
On Thu, Jan 22, 2009 at 4:18 AM, aifaz <aifaz.khan at gmail.com> wrote:
>
> hello
>
> i have developed appliaction in c# .net 2005 to generate pdf file
> it worked fine on MONO 2.0 On WINDOWS, but i am trying to run on
> mono on Linux i got an error
>
> System.UnauthorizedAccessException: Access to the path
> '/home/jose/desktop/teste' is denied. at System.IO.FileStream..ctor
> (System.String path, FileMode mode, FileAccess access, FileShare share,
> Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] at
> System.IO.FileStream..ctor (System.String path, FileMode mode)
>
> i have all admin writes on Linux but Access to the path to perticular
> folder where some image file is located is DENIED.
>
> Please tell me how can i resolve this issue.
>
> i have been hoping for earliar response.
>
> Thank You
> --
> View this message in context:
> http://www.nabble.com/System.UnauthorizedAccessException%3A-Access-to-the-path--to-folder-is-denied-on-Linux-tp21598557p21598557.html
> Sent from the Mono - WinForms mailing list archive at Nabble.com.
>
> _______________________________________________
> Mono-winforms-list maillist - Mono-winforms-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-winforms-list
>
--
Rafael "Monoman" Teixeira
---------------------------------------
"I myself am made entirely of flaws, stitched together with good
intentions."
Augusten Burroughs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-winforms-list/attachments/20090122/70f1f353/attachment.html
More information about the Mono-winforms-list
mailing list