I'm using VS2010 sp1, MVC3
plese help me
Server Error in '/' Application.
Could not load type 'System.Web.Mvc.AllowHtmlAttribute' from assembly 'System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.TypeLoadException: Could not load type 'System.Web.Mvc.AllowHtmlAttribute' from assembly 'System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
Source Error:
Line 58:
Line 59: //address
Line 60: Mapper.CreateMap<Address, AddressModel>()
Line 61: .ForMember(dest => dest.AddressHtml, mo => mo.Ignore())
Line 62: .ForMember(dest => dest.AvailableCountries, mo => mo.Ignore())
Source File: E:\Hijobs_Related\Working Du project with DB\du\Presentation\Nop.Web\Administration\Infrastructure\AutoMapperStartupTask.cs Line: 60
Stack Trace:
[TypeLoadException: Could not load type 'System.Web.Mvc.AllowHtmlAttribute' from assembly 'System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.]
System.ModuleHandle.ResolveType(RuntimeModule module, Int32 typeToken, IntPtr* typeInstArgs, Int32 typeInstCount, IntPtr* methodInstArgs, Int32 methodInstCount, ObjectHandleOnStack type) +0
System.ModuleHandle.ResolveTypeHandleInternal(RuntimeModule module, Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext) +145
System.Reflection.RuntimeModule.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments) +162
System.Reflection.CustomAttribute.FilterCustomAttributeRecord(CustomAttributeRecord caRecord, MetadataImport scope, Assembly& lastAptcaOkAssembly, RuntimeModule decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, Object[] attributes, IList derivedAttributes, RuntimeType& attributeType, IRuntimeMethodInfo& ctor, Boolean& ctorHasParameters, Boolean& isVarArg) +87
System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes, Boolean isDecoratedTargetSecurityTransparent) +438
System.Reflection.CustomAttribute.GetCustomAttributes(RuntimePropertyInfo property, RuntimeType caType) +106
System.Reflection.RuntimePropertyInfo.GetCustomAttributes(Boolean inherit) +33
AutoMapper.ConfigurationStore.CreateMappingExpression(TypeMap typeMap) +324
AutoMapper.ConfigurationStore.CreateMap(String profileName) +241
AutoMapper.ConfigurationStore.CreateMap() +85
AutoMapper.Mapper.CreateMap() +101
Nop.Admin.Infrastructure.AutoMapperStartupTask.Execute() in E:\Hijobs_Related\Working Du project with DB\du\Presentation\Nop.Web\Administration\Infrastructure\AutoMapperStartupTask.cs:60
Nop.Core.Infrastructure.NopEngine.RunStartupTasks() in E:\Hijobs_Related\Working Du project with DB\du\Libraries\Nop.Core\Infrastructure\NopEngine.cs:50
Nop.Core.Infrastructure.NopEngine.Initialize(NopConfig config) in E:\Hijobs_Related\Working Du project with DB\du\Libraries\Nop.Core\Infrastructure\NopEngine.cs:75
Nop.Core.Infrastructure.EngineContext.Initialize(Boolean forceRecreate) in E:\Hijobs_Related\Working Du project with DB\du\Libraries\Nop.Core\Infrastructure\EngineContext.cs:26
Nop.Web.MvcApplication.Application_Start() in E:\Hijobs_Related\Working Du project with DB\du\Presentation\Nop.Web\Global.asax.cs:57
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18033