[Mono-dev] xsp2 won't run when invoked as service

Eddy Zavaleta eddy at mictlanix.org
Wed Jan 12 20:40:11 EST 2011


Hi,

It seems to be an access right (permission) problem.
You should verify what user own the service and if that user has access to
your app's path.

To make sure everyone can read your app's path try executing:
$ chmod -R a+r /path/to/your/web/app


On Wed, Jan 12, 2011 at 4:18 PM, Tomasz Kubacki <tomasz.kubacki at gmail.com>wrote:

> Hi,
> I've sheeva plug box (arm) with default mono 2.6.1 and facing strange
> issue.
> I can run my asp.net app from console without any problems, but when i try
> to run it as a service i've got below error on request.
> What can cause this ?
>
> cheers,
>
> Tomasz Kubacki
> -------------------------------------
>
> Error: System.UnauthorizedAccessException: Access to the path
> "/root/Piecyk/[Unknown]" is denied.
>   at System.IO.FileStream.ReadData (IntPtr handle, System.Byte[] buf, Int32
> offset, Int32 count) [0x00000] in <filename unknown>:0
>   at System.IO.FileStream.ReadInternal (System.Byte[] dest, Int32 offset,
> Int32 count) [0x00000] in <filename unknown>:0
>   at System.IO.FileStream.Read (System.Byte[] array, Int32 offset, Int32
> count) [0x00000] in <filename unknown>:0
>   at System.IO.StreamReader.ReadBuffer () [0x00000] in <filename unknown>:0
>   at System.IO.StreamReader.ReadLine () [0x00000] in <filename unknown>:0
>   at System.IO.UnexceptionalStreamReader.ReadLine () [0x00000] in <filename
> unknown>:0
>   at System.IO.SynchronizedReader.ReadLine () [0x00000] in <filename
> unknown>:0
>   at System.Console.ReadLine () [0x00000] in <filename unknown>:0
>   at Mono.WebServer.XSP.Server.RealMain (System.String[] args, Boolean
> root, IApplicationHost ext_apphost, Boolean quiet) [0x00000] in <filename
> unknown>:0
>
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>


-- 
Eddy Zavaleta
mictlanix.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20110112/b31dc5fd/attachment.html 


More information about the Mono-devel-list mailing list