[Mono-aspnet-list] Apache 503, Could not load file or assembly 'Mono.Web,

Damned damnedkrt at gmail.com
Wed Aug 24 11:18:50 UTC 2016


Me and a friend run an asp.net 4 project with mod_mono. 

We currently have a stable release running. However the development branch
has undergone ALOT of changes the past months. Now in hindsight, we should
probably have set up auto-build and deploy within Jenkins ...

Anyway. As you suspect stuff has stopped working. 
After restarting apache2 the error log shows:

[ERROR] FATAL UNHANDLED EXCEPTION: System.IO.FileNotFoundException: Could
not load file or assembly 'Mono.Web, Version=, Culture=neutral,
PublicKeyToken=0738eb9f132ed756' or one of its dependencies.
File name: 'Mono.Web, Version=, Culture=neutral,
  at (wrapper xdomain-invoke) System.AppDomain:DoCallBack
  at (wrapper remoting-invoke-with-check) System.AppDomain:DoCallBack
  at System.Web.Hosting.ApplicationHost.CreateApplicationHost (System.Type
hostType, System.String virtualDir, System.String physicalDir) <0x41d91690 +
0x00b6a> in <filename unknown>:0
  at Mono.WebServer.VPathToHost.CreateHost (Mono.WebServer.ApplicationServer
server, Mono.WebServer.WebSource webSource) <0x41d907e0 + 0x000bf> in
<filename unknown>:0
  at Mono.WebServer.Apache.Server.RealMain (System.String[] args, Boolean
root, IApplicationHost ext_apphost, Boolean v_quiet) <0x41d2f490 + 0x007e1>
in <filename unknown>:0
  at (wrapper remoting-invoke-with-check)
  at Mono.WebServer.Apache.Server.Main (System.String[] args) <0x41d2ed90 +
0x000f7> in <filename unknown>:0
[Wed Aug 24 12:24:12.751654 2016] [:error] [pid 12741] Failed to connect to
mod-mono-server after several attempts to spawn the process.

The production copy of the app works fine. It's running on the same host
(Debian Jessie), but within another folder and vhost-file. According to the
virtualhost file we are using mod-mono-server4. But I think that one in turn
pointed to 4.5 somewhere.

Because of stupid reasons, we cannot deploy older versions in order to
narrow it down to a specific change. 
What we have to compare are the current broken test-build and the working

I've run a diff between the two published folders. Where Test is broken.
FifaTournamentApp works fine. Its output:

Only in Test_FifaTournamentApp/app: directives
Only in Test_FifaTournamentApp/app/stats: playersMarathonTable
Only in Test_FifaTournamentApp/app/stats: teamsMarathonTable
Only in Test_FifaTournamentApp/app/tours: yourStats.html
Only in Test_FifaTournamentApp/bin: FluentValidation.dll
Only in Test_FifaTournamentApp/bin: Microsoft.CSharp.dll
Only in FifaTournamentApp/bin: MySql.Data.dll
Only in Test_FifaTournamentApp/bin:
Only in Test_FifaTournamentApp/bin: System.Configuration.dll
Only in Test_FifaTournamentApp/bin: System.Data.DataSetExtensions.dll
Only in Test_FifaTournamentApp/bin: System.Data.dll
Only in Test_FifaTournamentApp/bin: System.dll
Only in Test_FifaTournamentApp/bin: System.Drawing.dll
Only in Test_FifaTournamentApp/bin: System.EnterpriseServices.dll
Only in Test_FifaTournamentApp/bin: System.Web.ApplicationServices.dll
Only in Test_FifaTournamentApp/bin: System.Web.dll
Only in Test_FifaTournamentApp/bin: System.Web.DynamicData.dll
Only in Test_FifaTournamentApp/bin: System.Web.Extensions.dll
Only in Test_FifaTournamentApp/bin: System.Web.Services.dll
Only in Test_FifaTournamentApp/bin: System.Xml.dll
Only in Test_FifaTournamentApp/bin: System.Xml.Linq.dll
Only in Test_FifaTournamentApp/Content/images: favicons
Only in Test_FifaTournamentApp/Content/images: FTA_logo_no_bg_grey.png
Only in Test_FifaTournamentApp/Content/images: FTA_logo_noBg_grey_sm.png
Only in Test_FifaTournamentApp/Content/images: FTA_logo_no_bg.png
Only in Test_FifaTournamentApp/Content/images: FTA_logo.png
Only in Test_FifaTournamentApp/Content/images: FTA_logo_text.png
Only in Test_FifaTournamentApp/Scripts: ng-fitText
The files Test_FifaTournamentApp/bin/FifaTour.Data.dll and
FifaTournamentApp/bin/FifaTour.Data.dll differs
The files Test_FifaTournamentApp/bin/FifaTour.Data.dll.mdb and
FifaTournamentApp/bin/FifaTour.Data.dll.mdb differs
The files Test_FifaTournamentApp/bin/FifaTour.dll and
FifaTournamentApp/bin/FifaTour.dll differs
The files Test_FifaTournamentApp/bin/FifaTour.dll.mdb and
FifaTournamentApp/bin/FifaTour.dll.mdb differs

I have a hard time error searching this. Could someone give me some hints on
how to proceed?

View this message in context: http://mono.1490590.n4.nabble.com/Apache-503-Could-not-load-file-or-assembly-Mono-Web-tp4668531.html
Sent from the Mono - ASP.NET mailing list archive at Nabble.com.

More information about the Mono-aspnet-list mailing list