[Mono-aspnet-list] Parameter name: slidingExpiration

Nils Schaetti n.schaetti at gmail.com
Thu Oct 22 10:09:37 EDT 2009


Hi

For a work in my company, i need to port an ASP.NET application on
Linux/Mono. I use Mono since 4 years but not for ASP.NET application
so I know nothing on this subject.

I can compile the application with Mono and MonoDevellop (by importing
VS project). But when I tested it with XSP2, my browser responds this
after several seconds :

Server Error in '/' Application

Argument cannot be null. Parameter name: slidingExpiration

Description: HTTP 500. Error processing request.

Stack Trace:

System.ArgumentNullException: Argument cannot be null.
Parameter name: slidingExpiration
- at System.Web.Caching.Cache.Insert (System.String key, System.Object
value, System.Web.Caching.CacheDependency dependencies, DateTime
absoluteExpiration, TimeSpan slidingExpiration, CacheItemPriority
priority, System.Web.Caching.CacheItemRemovedCallback
onRemoveCallback, Boolean doLock) [0x00000]
- at System.Web.Caching.Cache.Insert (System.String key, System.Object
value, System.Web.Caching.CacheDependency dependencies, DateTime
absoluteExpiration, TimeSpan slidingExpiration, CacheItemPriority
priority, System.Web.Caching.CacheItemRemovedCallback
onRemoveCallback) [0x00000]
- at System.Web.SessionState.SessionInProcHandler.InsertSessionItem
(System.Web.SessionState.InProcSessionItem item, Int32 timeout,
System.String id) [0x00000]
- at System.Web.SessionState.SessionInProcHandler.SetAndReleaseItemExclusive
(System.Web.HttpContext context, System.String id,
System.Web.SessionState.SessionStateStoreData item, System.Object
lockId, Boolean newItem) [0x00000]

I think that the problem I comes from Web.config but I don't know
much. I tried to modify this file with slidingExpiration="false" on
authentication element but I didn't do anything.

Thanks


More information about the Mono-aspnet-list mailing list