您好,我是新的 ASP.NET MVC。目前正在从asp.net官方网站学习MVCmusicstore教程。但是在其中实现基于角色的授权后执行项目时出现错误。堆栈跟踪如下。请指教
堆栈跟踪:
[FileLoadException:无法加载文件或程序集“System.Runtime.DurableInstancing,版本=4.0.0.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35”或其依赖项之一。
句柄无效。(来自 HRESULT 的异常:0x80070006 (E_HANDLE))] System.RuntimeTypeHandle.CreateInstance(RuntimeType 类型,Boolean publicOnly,Boolean noCheck,Boolean& canBeCached,RuntimeMethodHandleInternal& ctor,Boolean& bNeedSecurityCheck)+0
System.RuntimeType.CreateInstanceSlow(布尔publicOnly,布尔skipCheckThis,布尔fillCache)+98
System.RuntimeType.CreateInstanceDefaultCtor(布尔publicOnly,布尔skipVisibilityChecks,布尔skipCheckThis,布尔fillCache)+241
System.Activator.CreateInstance(类型类型,布尔非公共)+69
System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr,Binder binder,Object[] args,CultureInfo 文化,Object[] activationAttributes)+1136
System.Activator.CreateInstance(类型类型,BindingFlags bindingAttr,Binder binder,Object[] args,CultureInfo 文化,Object[] activationAttributes)+111
System.Activator.CreateInstance(类型类型,BindingFlags bindingAttr,Binder binder,Object[] args,CultureInfo 文化)+23
System.Web.HttpRuntime.CreateNonPublicInstance(类型类型,Object[] args)+60
System.Web.Configuration.HttpModulesSection.CreateModules() +221
System.Web.HttpApplication.InitModules() +28
System.Web.HttpApplication.InitInternal(HttpContext 上下文,HttpApplicationState 状态,MethodInfo[] 处理程序)+828
System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext 上下文) +304
System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext 上下文)+107
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest WR) +327