[Mono-aspnet-list] AllowHtmlAttribute / MVC3 issue

muizsyed muizsyed at gmail.com
Wed Jun 29 20:00:01 EDT 2011


A bit more info

The attribute uses the interface  IMetadataAware and gets instantiated but
never reaches on POST, the

public void OnMetadataCreated(ModelMetadata metadata)
{

}

bit.

The stack trace shows

at System.Web.HttpRequest.ThrowValidationException (System.String name,
System.String key, System.String value) [0x00040] in
/tmp/monobuild/mono/mcs/class/System.Web/System.Web/HttpRequest.cs:1716 at
System.Web.HttpRequest.ValidateString (System.String key, System.String
value, RequestValidationSource source) [0x00019] in
/tmp/monobuild/mono/mcs/class/System.Web/System.Web/HttpRequest.cs:1727 at
Microsoft.Web.Infrastructure.DynamicValidationHelper.LazyWebROCollection.Validate
(System.String key, System.String value) [0x0000d] in
/tmp/monobuild/mono/mcs/class/Microsoft.Web.Infrastructure/Microsoft.Web.Infrastructure.DynamicValidationHelper/LazyWebROCollection.cs:134
at
Microsoft.Web.Infrastructure.DynamicValidationHelper.LazyWebROCollection.Get
(System.String name) [0x00000] in
/tmp/monobuild/mono/mcs/class/Microsoft.Web.Infrastructure/Microsoft.Web.Infrastructure.DynamicValidationHelper/LazyWebROCollection.cs:86
at
Microsoft.Web.Infrastructure.DynamicValidationHelper.LazyWebROCollection.Get
(System.String name) [0x00000] in
/tmp/monobuild/mono/mcs/class/Microsoft.Web.Infrastructure/Microsoft.Web.Infrastructure.DynamicValidationHelper/LazyWebROCollection.cs:86
at System.Collections.Specialized.NameValueCollection.get_Item
(System.String name) [0x00000] in
/tmp/monobuild/mono/mcs/class/System/System.Collections.Specialized/NameValueCollection.cs:117
at
System.Web.Mvc.NameValueCollectionValueProvider+ValueProviderResultPlaceholder.GetResultFromCollection
(System.String key, System.Collections.Specialized.NameValueCollection
collection, System.Globalization.CultureInfo culture) [0x00000] in <filename
unknown>:0 at
System.Web.Mvc.NameValueCollectionValueProvider+ValueProviderResultPlaceholder+<>c__DisplayClass4.<.ctor>b__1
() [0x00000] in <filename unknown>:0 at
System.Lazy`1[System.Web.Mvc.ValueProviderResult].InitValue () [0x00046] in
/tmp/monobuild/mono/mcs/class/corlib/System/Lazy.cs:116 

but I cant figure out at what point this should be called



--
View this message in context: http://mono.1490590.n4.nabble.com/AllowHtmlAttribute-MVC3-issue-tp3631829p3634376.html
Sent from the Mono - ASP.NET mailing list archive at Nabble.com.


More information about the Mono-aspnet-list mailing list