Could not load type 'System.Web.Mvc.ValidateInputAttribute' from assembly 'System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.

Mar 16, 2009 at 5:17 PM

Wen I acess the site by 1srt time i get error 500.
In Execption Log I found this information.

How can I solve this problem?

03/16/2009 16:02:41
Type : System.TypeLoadException, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Message : Could not load type 'System.Web.Mvc.ValidateInputAttribute' from assembly 'System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
Source : mscorlib
Help link :
TypeName : System.Web.Mvc.ValidateInputAttribute
Data : System.Collections.ListDictionaryInternal
TargetSite : System.RuntimeTypeHandle ResolveType(Int32, System.RuntimeTypeHandle*, Int32, System.RuntimeTypeHandle*, Int32)
Stack Trace :    at System.ModuleHandle.ResolveType(Int32 typeToken, RuntimeTypeHandle* typeInstArgs, Int32 typeInstCount, RuntimeTypeHandle* methodInstArgs, Int32 methodInstCount)
   at System.ModuleHandle.ResolveTypeHandle(Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)
   at System.Reflection.Module.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
   at System.Reflection.CustomAttribute.FilterCustomAttributeRecord(CustomAttributeRecord caRecord, MetadataImport scope, Assembly& lastAptcaOkAssembly, Module decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, Object[] attributes, IList derivedAttributes, RuntimeType& attributeType, RuntimeMethodHandle& ctor, Boolean& ctorHasParameters, Boolean& isVarArg)
   at System.Reflection.CustomAttribute.IsCustomAttributeDefined(Module decoratedModule, Int32 decoratedMetadataToken, RuntimeType attributeFilterType, Boolean mustBeInheritable)
   at System.Reflection.CustomAttribute.IsDefined(RuntimeMethodInfo method, RuntimeType caType, Boolean inherit)
   at System.Reflection.RuntimeMethodInfo.IsDefined(Type attributeType, Boolean inherit)
   at Microsoft.Practices.ObjectBuilder2.MethodSelectorPolicyBase`1.<SelectMethods>d__0.MoveNext()
   at Microsoft.Practices.ObjectBuilder2.DynamicMethodCallStrategy.PreBuildUp(IBuilderContext context)
   at Microsoft.Practices.ObjectBuilder2.StrategyChain.ExecuteBuildUp(IBuilderContext context)

Thanks

Coordinator
Apr 15, 2009 at 4:14 PM
This has been resolved in the latest version. Pls check the v2.2.