I'm trying to add a custom HTTP Validator as shown here. I want many sites to share this implementation as an external library. That way as I discover newer/better ways to handle validation, I can update the linked assembly and update all related projects.
When I take my class and place it in my web project, all I have to do is add this line and everything works:
<system.web>
<httpRuntime requestValidationType="SampleRequestValidator"/>
However... when I try to reference an external assembly, IIS complains saying that it can't load the type.
Question
Can someone tell me if I need to add my custom type to this section of web.config:
Line 28: <compilation debug="false">
Line 29: <assemblies>
Line 30: <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
Line 31: <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
Question2
Can someone tell me the correct way to get the type string to enter? So far I'm using this
Console.Writeline(typeof(SampleRequestValidator).AssemblyQualifiedName)