[Mono-list] How should I run asp-state2 as service

Albert Ritmeester aritmeester at gmail.com
Wed Nov 26 10:20:16 EST 2008

I am trying to use asp-state2 to store session data. I can't get
asp-state2 running in the background.

When starting asp-state2 with nohup (nohup asp-state2) I get the
following exception;

Unhandled Exception: System.UnauthorizedAccessException: Access to the
path "[Unknown]" is denied.
  at System.IO.FileStream.ReadData (IntPtr handle, System.Byte[] buf,
Int32 offset, Int32 count) [0x00000]
  at System.IO.FileStream.ReadInternal (System.Byte[] dest, Int32
dest_offset, Int32 count) [0x00000]
  at System.IO.FileStream.Read (System.Byte[] dest, Int32 dest_offset,
Int32 count) [0x00000]
  at System.IO.StreamReader.ReadBuffer () [0x00000]
  at System.IO.StreamReader.ReadLine () [0x00000]
  at System.IO.UnexceptionalStreamReader.ReadLine () [0x00000]
  at System.IO.SynchronizedReader.ReadLine () [0x00000]
  at System.Console.ReadLine () [0x00000]
  at Mono.ASPNET.Tools.StateServer.Main (System.String[] args) [0x00000]

Can anyone help me to get the stateserver running in the background?

Albert Ritmeester

More information about the Mono-list mailing list