[Mono-aspnet-list] How to fix ArgumentNullException exception running MVC application

2011-04-01 Thread Andrus
Trying to run MVC2 application returns 500 error.
Apache error_log content is below.

How to fix or debug this issue ?

Mono 2.10.1 is installed from official packages in plain centos.
Simple 1.aspx page from appl directory is opened OK.

Andrus.


[Fri Apr 01 19:04:59 2011] [notice] suEXEC mechanism enabled (wrapper:
/usr/sbin/suexec)
[Fri Apr 01 19:04:59 2011] [notice] Digest: generating secret for digest
authentication ...
[Fri Apr 01 19:04:59 2011] [notice] Digest: done
[Fri Apr 01 19:05:00 2011] [notice] Apache/2.2.3 (CentOS) configured --
resuming normal operations
Listening on: /tmp/mod_mono_server_global
Root directory: /
System.ArgumentNullException: Argument cannot be null.
Parameter name: path
  at System.IO.FileSystemInfo.CheckPath (System.String path) [0x0] in
filename unknown:0
  at System.IO.DirectoryInfo..ctor (System.String path, Boolean
simpleOriginalPath) [0x0] in filename unknown:0
  at System.IO.DirectoryInfo..ctor (System.String path) [0x0] in
filename unknown:0
  at (wrapper remoting-invoke-with-check) System.IO.DirectoryInfo:.ctor
(string)
  at Mono.WebServer.ModMonoWorker.GetOrCreateApplication (System.String
vhost, Int32 port, System.String filepath, System.String virt) [0x0] in
filename unknown:0
  at Mono.WebServer.ModMonoWorker.InnerRun (System.Object state) [0x0]
in filename unknown:0
  at Mono.WebServer.ModMonoWorker.Run (System.Object state) [0x0] in
filename unknown:0
[Fri Apr 01 19:05:06 2011] [error] (70014)End of file found: read_data
failed
[Fri Apr 01 19:05:06 2011] [error] Command stream corrupted, last command
was -1




[root@centos5-1 ~]# mono --version
Mono JIT compiler version 2.10.1 (tarball Wed Feb 23 20:24:20 UTC 2011)
Copyright (C) 2002-2011 Novell, Inc and Contributors. www.mono-project.com
TLS:   __thread
SIGSEGV:   altstack
Notifications: epoll
Architecture:  x86
Disabled:  none
Misc:  debugger softdebug
LLVM:  supported, not enabled.
GC:Included Boehm (with typed GC and Parallel Mark)

___
Mono-aspnet-list mailing list
Mono-aspnet-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-aspnet-list


Re: [Mono-aspnet-list] issues with intermittent apache hangups

2011-04-01 Thread Dan
Still seeing the problem, enabled debugging on our test server and so here's
the stacktrace with line numbers:


System.IndexOutOfRangeException: Array index is out of range.
  at (wrapper stelemref) object:virt_stelemref_class (intptr,object)
  at System.Web.Caching.CacheItemPriorityQueue.Enqueue
(System.Web.Caching.CacheItem item) [0x00019] in
/home/dan/mono/mono-2.10.1/mcs/class/System.Web/System.Web.Caching/CacheItemPriorityQueue.cs:125
 
  at System.Web.Caching.Cache.EnqueueTimedItem (System.Web.Caching.CacheItem
item) [0x000b2] in
/home/dan/mono/mono-2.10.1/mcs/class/System.Web/System.Web.Caching/Cache.cs:369 
  at System.Web.Caching.Cache.SetItemTimeout (System.Web.Caching.CacheItem
ci, DateTime absoluteExpiration, TimeSpan slidingExpiration,
System.Web.Caching.CacheItemRemovedCallback onRemoveCallback,
System.Web.Caching.CacheItemUpdateCallback onUpdateCallback, System.String
key, Boolean doLock) [0x000b0] in
/home/dan/mono/mono-2.10.1/mcs/class/System.Web/System.Web.Caching/Cache.cs:336 
  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,
System.Web.Caching.CacheItemUpdateCallback onUpdateCallback, Boolean doLock)
[0x000cc] in
/home/dan/mono/mono-2.10.1/mcs/class/System.Web/System.Web.Caching/Cache.cs:287 
  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) [0x0] in
/home/dan/mono/mono-2.10.1/mcs/class/System.Web/System.Web.Caching/Cache.cs:261 
  at System.Web.SessionState.SessionInProcHandler.InsertSessionItem
(System.Web.SessionState.InProcSessionItem item, Int32 timeout,
System.String id) [0x00012] in
/home/dan/mono/mono-2.10.1/mcs/class/System.Web/System.Web.SessionState_2.0/SessionInProcHandler.cs:111
 
  at System.Web.SessionState.SessionInProcHandler.SetAndReleaseItemExclusive
(System.Web.HttpContext context, System.String id,
System.Web.SessionState.SessionStateStoreData item, System.Object lockId,
Boolean newItem) [0x00135] in
/home/dan/mono/mono-2.10.1/mcs/class/System.Web/System.Web.SessionState_2.0/SessionInProcHandler.cs:388
 


--
View this message in context: 
http://mono.1490590.n4.nabble.com/issues-with-intermittent-apache-hangups-tp3264509p3421339.html
Sent from the Mono - ASP.NET mailing list archive at Nabble.com.
___
Mono-aspnet-list mailing list
Mono-aspnet-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-aspnet-list