[Mono-aspnet-list] Application randomly stops with get_InputValidationEnabled () is inaccessible exception

Andrus kobruleht2 at hot.ee
Wed May 8 07:14:20 UTC 2013


Application was upgraded from MVC2 NET 3.5 to MVC3  .NET 4
Apache + mod_mono are used.

Application randomly stops working with exception 
System.Web.HttpRequest:get_InputValidationEnabled ()' is inaccessible from 
method 
`Microsoft.Web.Infrastructure.DynamicValidationHelper.ValidationUtility:IsValidationEnabled
below.

apache access_log below shows that suddenly 500 error codes starts returned 
for every request.
After restarting Apache application works again.

How to fix ? mono 2.10.8.1 is used in Debian.

Microsoft.Web.Infrastructure assembly is not in bin directory so mono 
version of it is used.

Andrus.

Server Error in '/myapp' Application
--------------------------------------------------------------------------------

Method `System.Web.HttpRequest:get_InputValidationEnabled ()' is 
inaccessible from method 
`Microsoft.Web.Infrastructure.DynamicValidationHelper.ValidationUtility:IsValidationEnabled 
(System.Web.HttpContext)'

Description: HTTP 500. Error processing request.

Stack Trace:

System.MethodAccessException: Method 
`System.Web.HttpRequest:get_InputValidationEnabled ()' is inaccessible from 
method 
`Microsoft.Web.Infrastructure.DynamicValidationHelper.ValidationUtility:IsValidationEnabled 
(System.Web.HttpContext)'

  at System.Web.Mvc.MvcHandler.ProcessRequestInit 
(System.Web.HttpContextBase httpContext, IController& controller, 
IControllerFactory& factory) [0x00000] in <filename unknown>:0
  at System.Web.Mvc.MvcHandler+<>c__DisplayClass6.<BeginProcessRequest>b__2 
() [0x00000] in <filename unknown>:0
  at 
System.Web.Mvc.SecurityUtil+<>c__DisplayClassb`1[System.IAsyncResult].<ProcessInApplicationTrust>b__a 
() [0x00000] in <filename unknown>:0
  at System.Web.Mvc.SecurityUtil.<GetCallInAppTrustThunk>b__0 (System.Action 
f) [0x00000] in <filename unknown>:0
  at System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust (System.Action 
action) [0x00000] in <filename unknown>:0
  at System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust[IAsyncResult] 
(System.Func`1 func) [0x00000] in <filename unknown>:0
  at System.Web.Mvc.MvcHandler.BeginProcessRequest 
(System.Web.HttpContextBase httpContext, System.AsyncCallback callback, 
System.Object state) [0x00000] in <filename unknown>:0
  at System.Web.Mvc.MvcHandler.BeginProcessRequest (System.Web.HttpContext 
httpContext, System.AsyncCallback callback, System.Object state) [0x00000] 
in <filename unknown>:0
  at 
System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.BeginProcessRequest 
(System.Web.HttpContext context, System.AsyncCallback cb, System.Object 
extraData) [0x00000] in <filename unknown>:0
  at System.Web.HttpApplication+<Pipeline>c__Iterator3.MoveNext () [0x00000] 
in <filename unknown>:0
  at System.Web.HttpApplication.Tick () [0x00000] in <filename unknown>:0


--------------------------------------------------------------------------------
Version information:  Mono Runtime Version: 2.10.8.1 (mono-2-10/70a5c95 Wed 
Feb 8 18:11:45 CET 2012); ASP.NET Version: 4.0.30319.1

access_log:


[07/May/2013:18:42:40 +0300] "GET 
/pureva/Store/Thumb?product=2440586&size=128 HTTP/1.1" 200 2618 
"http://mysite/Store/Browse?category=373&root=2&open=True" "Mozilla/5.0 
(compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)"
[07/May/2013:18:42:40 +0300] "GET 
/pureva/Store/Thumb?product=2440588&size=128 HTTP/1.1" 200 2555 
"http://mysite/Store/Browse?category=373&root=2&open=True" "Mozilla/5.0 
(compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)"
[07/May/2013:18:42:40 +0300] "GET 
/pureva/Store/Thumb?product=2441320&size=128 HTTP/1.1" 500 602 
"http://mysite/Store/Browse?category=373&root=2&open=True" "Mozilla/5.0 
(compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)"
[07/May/2013:18:42:40 +0300] "GET 
/pureva/Store/Thumb?product=430101&size=128 HTTP/1.1" 500 602 
"http://mysite/Store/Browse?category=373&root=2&open=True" "Mozilla/5.0 
(compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)"
... 



More information about the Mono-aspnet-list mailing list