[Mono-list] Type MyApp.Service.StockService not found error after every few days

Andrus kobruleht2 at hot.ee
Wed Jul 7 12:08:44 EDT 2010

I installed Mono + mod_mono + asmx web service in Fedora, added

LogLevel Debug
MonoAutoRestartMode Time
MonoAutoRestartTime 00:03

to mod_mono.conf

Service was not used for few days.
Trying to re-use it returns 500 error with exception

System.Web.HttpException: Type MyApp.Service.StockService not found.

with stack trace below.

If everything is re-started service works again. After few days the same
issue occurs again and again.

How to fix or debug this issue ?
apache error_log does not contain any information.


[System.Web.HttpException]: Type MyApp.Service.StockService not found.
  at System.Web.UI.SimpleWebHandlerParser.GetTypeFromBin (System.String
tname) [0x00000]
  at System.Web.Compilation.SimpleBuildProvider.LoadTypeFromBin
(System.Web.Compilation.BaseCompiler compiler,
System.Web.UI.SimpleWebHandlerParser parser) [0x00000]
  at System.Web.Compilation.GenericBuildProvider`1[TParser].GetGeneratedType
(System.CodeDom.Compiler.CompilerResults results) [0x00000]
  at System.Web.Compilation.BuildManager+BuildCacheItem..ctor
(System.Reflection.Assembly assembly, System.Web.Compilation.BuildProvider
bp, System.CodeDom.Compiler.CompilerResults results) [0x00000]
  at System.Web.Compilation.BuildManager.GenerateAssembly
(System.Web.Compilation.AssemblyBuilder abuilder,
System.Collections.Generic.List`1 buildItems, System.Web.VirtualPath
virtualPath, BuildKind buildKind) [0x00000]
  at System.Web.Compilation.BuildManager.BuildAssembly
(System.Web.VirtualPath virtualPath) [0x00000]

uname -a returns

Linux mysite.com #1 SMP Thu Feb 11 07:06:34
UTC 2010 x86_64 x86_64 x86_64 GNU/Linux

More information about the Mono-list mailing list