[Mono-aspnet-list] Thread being aborted on xsp2 on FreeBSD trying to use ASP.NET MVC

Gonzalo Paniagua Javier gonzalo.mono at gmail.com
Sun Jul 19 13:35:54 EDT 2009


On Sun, 2009-07-19 at 16:02 +0200, Patrick Kristiansen wrote:
[...]
> I used the workaround. Now xsp doesn't terminate with an exception,
> but I still receive the 'Thread was being aborted' error, and it seems
> to happen most of the time at:
> 
> System.Web.Mvc.WebFormViewEngine.FileExists
> (System.Web.Mvc.ControllerContext controllerContext, System.String
> virtualPath)
> 
> Here is the full stack trace:
> 
> System.Threading.ThreadAbortException: Thread was being aborted
>   at System.Web.Mvc.WebFormViewEngine.FileExists
> (System.Web.Mvc.ControllerContext controllerContext, System.String
> virtualPath) [0x00000]

You are getting that ThreadAbortException because for some reason the
application thinks it needs to restart and the AppDomain is being
unloaded. If you can compile System.Web.dll from sources, modify
HttpApplicationFactory, before the call to HttpRuntime.UnloadAppDomain()
to print args.Name and watcher.Filter. That way you will know which file
change is triggering the application restart.

-Gonzalo




More information about the Mono-aspnet-list mailing list