[Mono-list] .NET 4.5.1 + MVC 5

Daniel Lo Nigro lists at dan.cx
Mon Nov 18 04:24:06 UTC 2013


Hi everyone,

I currently have a site running on ASP.NET 4.0 and MVC 4. I'd like to
upgrade it to ASP.NET 4.5.1 and MVC 5. I tried upgrading the site, and get
the following error message when I access it:

System.TypeLoadExceptionCould not load type
'System.Web.UnvalidatedRequestValuesBase' from assembly 'System.Web,
Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.

*Description:* HTTP 500.Error processing request.

*Details:* Non-web exception. Exception origin (name of application or
object): System.Web.Mvc.
*Exception stack trace:*
at System.Web.Mvc.FormValueProviderFactory.GetValueProvider
(System.Web.Mvc.ControllerContext controllerContext) [0x00000] in <filename
unknown>:0 at
System.Web.Mvc.ValueProviderFactoryCollection.GetValueProvider
(System.Web.Mvc.ControllerContext controllerContext) [0x00000] in <filename
unknown>:0 at System.Web.Mvc.ControllerBase.get_ValueProvider () [0x00000]
in <filename unknown>:0 at
System.Web.Mvc.ControllerActionInvoker.GetParameterValue
(System.Web.Mvc.ControllerContext controllerContext,
System.Web.Mvc.ParameterDescriptor parameterDescriptor) [0x00000] in
<filename unknown>:0 at
System.Web.Mvc.ControllerActionInvoker.GetParameterValues
(System.Web.Mvc.ControllerContext controllerContext,
System.Web.Mvc.ActionDescriptor actionDescriptor) [0x00000] in <filename
unknown>:0 at
System.Web.Mvc.Async.AsyncControllerActionInvoker+<>c__DisplayClass1e.<BeginInvokeAction>b__16
(System.AsyncCallback asyncCallback, System.Object asyncState) [0x00000] in
<filename unknown>:0

Is there a workaround for this issue, like a Web.config flag?

Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20131117/223f4325/attachment.html>


More information about the Mono-list mailing list