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

Patrick Kristiansen patrick.kristiansen at gmail.com
Sun Jul 19 10:02:54 EDT 2009


2009/7/19 Gonzalo Paniagua Javier <gonzalo.mono at gmail.com>:
> On Sun, 2009-07-19 at 12:24 +0200, Patrick Kristiansen wrote:
> [...]
>>   Error: System.Net.Sockets.SocketException: Address already in use
>>     at System.Net.Sockets.Socket.Bind (System.Net.EndPoint local_end) [0x00000]
>>     at Mono.WebServer.XSPWebSource.CreateSocket () [0x00000]
>>     at Mono.WebServer.ApplicationServer.Start (Boolean bgThread) [0x00000]
>>     at Mono.WebServer.ApplicationServer.Start (Boolean bgThread,
>> System.Exception initialException) [0x00000]
>>     at (wrapper remoting-invoke-with-check)
>> Mono.WebServer.ApplicationServer:Start (bool,System.Exception)
>>     at Mono.WebServer.XSP.Server.RealMain (System.String[] args,
>> Boolean root, IApplicationHost ext_apphost, Boolean quiet) [0x00000]
>>
>> I use the following command to start xsp:
>>
>>   xsp2 --address 192.168.1.90 --root /home/patrick/monotest/www \
>>     --applications '/:.'
>>
>> I'm running FreeBSD 7.2, Mono 2.4.2.1 and xsp 2.4.2.0.
>>
>> Can anybody help?
>
> There were a couple of issues that have been fixed in the 2.4 branch and
> HEAD. One involves your application writing to the toplevel web.config,
> the other, creating new folders under the physical root path of your
> application.
>
> Anyway, easy workaround: use --applications
> '/:.,/somethingelse:/someempty/folder/in/your/disk'
>

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]
  at System.Web.Mvc.VirtualPathProviderViewEngine.GetPathFromGeneralName
(System.Web.Mvc.ControllerContext controllerContext, System.String[]
locations, System.String name, System.String controllerName,
System.String cacheKey, System.String[]& searchedLocations) [0x00000]
  at System.Web.Mvc.VirtualPathProviderViewEngine.GetPath
(System.Web.Mvc.ControllerContext controllerContext, System.String[]
locations, System.String locationsPropertyName, System.String name,
System.String controllerName, System.String cacheKeyPrefix, Boolean
useCache, System.String[]& searchedLocations) [0x00000]
  at System.Web.Mvc.VirtualPathProviderViewEngine.FindView
(System.Web.Mvc.ControllerContext controllerContext, System.String
viewName, System.String masterName, Boolean useCache) [0x00000]
  at System.Web.Mvc.ViewEngineCollection+<>c__DisplayClass6.<FindView>b__4
(IViewEngine e) [0x00000]
  at System.Web.Mvc.ViewEngineCollection.Find (System.Func`2
cacheLocator, System.Func`2 locator) [0x00000]
  at System.Web.Mvc.ViewEngineCollection.FindView
(System.Web.Mvc.ControllerContext controllerContext, System.String
viewName, System.String masterName) [0x00000]
  at System.Web.Mvc.ViewResult.FindView
(System.Web.Mvc.ControllerContext context) [0x00000]
  at System.Web.Mvc.ViewResultBase.ExecuteResult
(System.Web.Mvc.ControllerContext context) [0x00000]
  at System.Web.Mvc.ControllerActionInvoker.InvokeActionResult
(System.Web.Mvc.ControllerContext controllerContext,
System.Web.Mvc.ActionResult actionResult) [0x00000]
  at System.Web.Mvc.ControllerActionInvoker+<>c__DisplayClass11.<InvokeActionResultWithFilters>b__e
() [0x00000]
  at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter
(IResultFilter filter, System.Web.Mvc.ResultExecutingContext
preContext, System.Func`1 continuation) [0x00000]

-Patrick


More information about the Mono-aspnet-list mailing list