[Mono-aspnet-list] Error Starting ASP.NET MVC 4 App on mod-mono-server4

Jason Norris jasonmnorris at gmail.com
Sun Feb 17 05:14:02 UTC 2013


I'm trying to run an ASP.NET MVC4 app on mod mono. Every time I try to run
the app, though, I get this:

System.Web.HttpException:  ---> System.Web.HttpException: The
pre-application start initialization method Start on type
System.Web.Mvc.PreApplicationStartCode threw an exception with the
following error message: Exception has been thrown by the target of an
invocation. ---> System.Reflection.TargetInvocationException: Exception has
been thrown by the target of an invocation. ---> System.TypeLoadException:
Could not load type 'System.Runtime.CompilerServices.ExtensionAttribute'
from assembly 'System.Web.WebPages'.
  at System.Web.Mvc.PreApplicationStartCode.Start () [0x00000] in <filename
unknown>:0
  at (wrapper managed-to-native)
System.Reflection.MonoMethod:InternalInvoke
(System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags
invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
  --- End of inner exception stack trace ---
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags
invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
  at System.Reflection.MethodBase.Invoke (System.Object obj,
System.Object[] parameters) [0x00000] in <filename unknown>:0
  at System.Web.Compilation.BuildManager.CallPreStartMethods () [0x00000]
in <filename unknown>:0
  --- End of inner exception stack trace ---
  at System.Web.Compilation.BuildManager.CallPreStartMethods () [0x00000]
in <filename unknown>:0
  at System.Web.HttpApplicationFactory.InitType (System.Web.HttpContext
context) [0x00000] in <filename unknown>:0

After that, any requests generate the following:

System.Web.HttpException:  ---> System.NullReferenceException: Object
reference not set to an instance of an object
  at System.Web.Util.HttpEncoder.GetCustomEncoderFromConfig () [0x00000] in
<filename unknown>:0
  at System.Lazy`1[System.Web.Util.HttpEncoder].InitValue () [0x00000] in
<filename unknown>:0


Can anyone help me figure out what is causing this?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-aspnet-list/attachments/20130216/c23d34f2/attachment.html>


More information about the Mono-aspnet-list mailing list