Ninject System.Web.Mvc, Version=3.0.0.0 错误
来源:互联网 发布:叉叉助手软件更新 编辑:程序博客网 时间:2024/06/04 01:35
我在运行 资料书附件的 程序的时候 出现了这个错误 , 在网上找了下解决方法
Could not load file or assembly 'System.Web.MVC, Version=3.0.0.0 in WCF project .NET framework 4
In .NET 4.0 - wcf APPLICAITOn project, I have added - DI using- nInject.WCF.Extension package.
VErsio is : Ninject.Extensions.Wcf.3.2.1.0
when try to run the WCF service on browser, some times it throws below exception.
Could not load file or assembly 'System.Web.MVC, Version=3.0.0.0 in WCF project .NET framework 4
Some time also throw below exception:
CanNot:null root. Argument exception
Please help me, how to resolve this.
Thanks
Update the Application web.config File.
Be sure to make these changes in the app web.config file, not the web.config file in the Views folder.
(更新应用程序web。配置文件。 要确保这些变化在应用程序的web。配置文件,而不是网络。配置文件在文件夹视图。) <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" /> <bindingRedirect oldVersion="1.0.0.0-5.0.0.0" newVersion="5.0.0.0" /> </dependentAssembly> </assemblyBinding></runtime>
This example referes to MVC 5.Set oldVersion and newVersion according to your project's MVC version.
(这个例子参考MVC 5。设置oldVersion和新版本根据您的项目的MVC的版本。)
- Ninject System.Web.Mvc, Version=3.0.0.0 错误
- 错误:”未能加载文件或程序集“System.Web.Mvc, Version=2.0.0.0” 解决方法
- 错误:”未能加载文件或程序集“System.Web.Mvc, Version=5.2.3.0” 解决方法
- asp.net MVC错误:uses 'System.Web.WebPages, Version=2.0.0.0, ....which has a higher version...
- 未能加载文件或程序集 Ninject.Web.Common, Version=3.2.0.0
- Could not load file or assembly 'System.Web.Mvc, Version=3.0.0.0' or one of its dependencies
- could not load file or assembly 'system.web.mvc version=1.0.0.0'
- 未能从程序集“System.ServiceModel, Version=3.0.0.0”中加载类型“System.ServiceModel.Activation.HttpModule” 的错误解决方法
- 配置错误 <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral,
- System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
- 未能加载文件或程序集“System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35”或它的某一个依
- 無法載入檔案或組件 'System.Web.Mvc, Version=2.0.50727.3082, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
- 由vs 2005升级到vs 2008后,运行时出现错误:未能加载文件或程序集“System.Web.Extensions, Version=2.0.0.0, 怎么办?
- .net framework 4.0 mvc 应用部署 System.Web.Mvc 错误 Could not load file or assembly 'System.Web.Mvc
- .net framework 4.0 mvc 应用部署 System.Web.Mvc 错误 Could not load file or assembly 'System.Web.Mvc .
- System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 运行却出现这个错误
- System.Web.Mvc 找不到
- 调用WebServices报错,请求“System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, Pub
- Android动态加载之热修复与插件化
- HP大中华区总裁孙振耀退休感言
- 条件编译
- Bitmap为什么要调用recycle()方法来显示释放内存
- java synchronized 关键字(2)对象监视器为class
- Ninject System.Web.Mvc, Version=3.0.0.0 错误
- 解决Ubuntu 14.04下CodeBlocks缩进异常问题
- Ubuntu16.04安装myeclipse2014时出现insufficient memory
- java2D~创建一个全屏应用程序,还有修改显示模式
- 通过内核HOOK处理某个进程对SetCursorPos的调用
- Spring4.2+整合FastJson
- Leetcode278. First Bad Version
- Spring AOP 实战运用
- 黄埔一期培训总结