从azure运行网站时出错

从azure运行网站时出错,azure,model-view-controller,Azure,Model View Controller,我已经用webApi构建了我的mvc5项目,当从VS2013运行时,该网站运行良好,我已将我的项目部署到azure,因此当我从azure运行该网站时,它会给出一个错误: Could not load file or assembly 'System.Web.Mvc, Version=5.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot fin

我已经用webApi构建了我的mvc5项目,当从VS2013运行时,该网站运行良好,我已将我的项目部署到azure,因此当我从azure运行该网站时,它会给出一个错误:

Could not load file or assembly 'System.Web.Mvc, Version=5.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

出了什么问题?我遗漏了什么

您正在使用哪些库?属性下的项目检查引用的System.Web.Mvc的版本是什么?当前版本为5.2.2,因此您的网站正在使用的其他库可能取决于较旧版本的System.Web.Mvcthank您的问题已解决我必须将copy local设置为True这解决了问题,但您最好在部署期间让azure还原包。那么您就不需要将本地复制为true。