[Mono-list] Re: sessionState on Linux

Robert Jordan robertj at gmx.net
Thu Jun 1 05:58:01 EDT 2006

Andrey Tkach wrote:
> Dear Mono Users,
> This is newbie questions.
> Does anybody have working http session on Linux? I need to have whether
> InProc or asp_state working. Spent 3 days searching; now I beg for some
> advice.
> I'm porting asp.net web project to mono. Initially I was doing it on
> Windows XP + mono 1.1.15 + xsp. Had a little problem with sessionState,
> which was originally set to "StateServer". I've just set it up to
> "InProc" & cookieless="false" and everything worked well.
> Now I'm deploying application to SuSe Linux 10.0 + mono 1.1.15_2 + xsp
> and faced with the same problem as I had with misconfigured sessionState
> on Windows, even with "InProc" & cookieless="true".
> Second thing, I've tried to run asp-state tool, but got the exception:
> Unhandled Exception: System.Runtime.Remoting.RemotingException:
> Configuration file '/usr/lib/xsp/1.0/asp-state.exe.config' could not be
> loaded: Error in element wellknown: System.Web --->
> System.Runtime.Remoting.RemotingException: Error in element wellknown:
> System.Web ---> System.IO.FileNotFoundException: System.Web : System.Web
> in <0x00000> <unknown method>
> in (wrapper managed-to-native) System.AppDomain:LoadAssembly
> (string,System.Security.Policy.Evidence,bool)
> in <0x00018> System.AppDomain:Load (System.String assemblyString)
> in (wrapper remoting-invoke-with-check) System.AppDomain:Load (string)
> in <0x0001b> System.Reflection.Assembly:Load (System.String
> assemblyString)
> in <0x00034> System.Runtime.Remoting.WellKnownServiceTypeEntry:.ctor
> (System.String typeName, System.String assemblyName, System.String
> objectUri, WellKnownObjectMode mode)
> What is the right way to run it?

Open /usr/lib/xsp/1.0/asp-state.exe.config with you favorite
editor and change the type attribute from

type="System.Web.SessionState.RemoteStateServer, System.Web"


type="System.Web.SessionState.RemoteStateServer, System.Web, 
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"


More information about the Mono-list mailing list