У меня есть приложение ASP.NET WebForms, которое я недавно обновил до .NET 4.0, который использует VS2013 , Первоначально он был построен в VS2010. Он также использует DevExpress управления Версии 16.2Не удалось загрузить файл или сборку «System.Web.WebPages.Deployment или одна из ошибок зависимостей на сайте ASP.NET Webforms
Когда я пытаюсь построить сайт, я получаю следующие ошибки: -
Error 1 Could not load file or assembly 'System.Web.WebPages.Deployment, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
Error 3 Type 'EventArgs' is not defined. App_Code\Global.asax.vb 41 62 Optima Online V2
Error 5 Type 'Object' is not defined. App_Code\Global.asax.vb 52 48 Optima Online V2
Error 6 'DateTime' is not declared. It may be inaccessible due to its protection level. App_Code\Global.asax.vb 59 61 Optima Online V2
Error 7 Type 'EventArgs' is not defined. App_Code\Global.asax.vb 71 62 Optima Online V2
Error 8 Type 'EventArgs' is not defined. App_Code\Global.asax.vb 77 73 Optima Online V2
Error 9 Type 'EventArgs' is not defined. App_Code\Global.asax.vb 83 80 Optima Online V2
Error 10 Type 'EventArgs' is not defined. App_Code\Global.asax.vb 88 66 Optima Online V2
Error 13 'ServerErrorSection' is not declared. It may be inaccessible due to its protection level. App_Code\Global.asax.vb 98 98 Optima Online V2
Error 14 Type 'EmailException' is not defined. App_Code\Global.asax.vb 102 25 Optima Online V2
Error 15 Type 'EventArgs' is not defined. App_Code\Global.asax.vb 108 56 Optima Online V2
Error 16 Type 'EventArgs' is not defined. App_Code\Global.asax.vb 112 60 Optima Online V2
Error 17 Type 'ArrayList' is not defined. App_Code\OptimaOnlineBLL.vb 345 167 Optima Online V2
Error 18 Type 'ArrayList' is not defined. App_Code\OptimaOnlineBLL.vb 345 205 Optima Online V2
Error 19 Type 'ArrayList' is not defined. App_Code\OptimaOnlineBLL.vb 348 27 Optima Online V2
Error 20 Type 'ArrayList' is not defined. App_Code\OptimaOnlineBLL.vb 351 32 Optima Online V2
Error 21 Type 'ArrayList' is not defined. App_Code\OptimaOnlineBLL.vb 356 37 Optima Online V2
Error 22 Type 'ArrayList' is not defined. App_Code\OptimaOnlineBLL.vb 358 38 Optima Online V2
Error 23 Type 'ArrayList' is not defined. App_Code\OptimaOnlineBLL.vb 362 42 Optima Online V2
Error 24 Type 'Collection' is not defined. App_Code\personalisedItem.vb 13 33 Optima Online V2
Error 25 'HttpContext' is not declared. It may be inaccessible due to its protection level. App_Code\personalisedItem.vb 31 23 Optima Online V2
Error 26 Type 'ArrayList' is not defined. App_Code\personalisedItem.vb 104 38 Optima Online V2
Error 27 Type 'Collection' is not defined. App_Code\personalisedItem.vb 106 51 Optima Online V2
Error 28 'Convert' is not declared. It may be inaccessible due to its protection level. App_Code\personalisedItem.vb 125 41 Optima Online V2
Error 31 Type 'ArrayList' is not defined. App_Code\personalisedItem.vb 132 42 Optima Online V2
Error 33 Type 'Collection' is not defined. App_Code\personalisedItem.vb 137 54 Optima Online V2
Error 34 Type 'Collection' is not defined. App_Code\personalisedItem.vb 505 80 Optima Online V2
Error 35 Type 'ArrayList' is not defined. App_Code\personalisedItem.vb 505 95 Optima Online V2
Error 36 Type 'ArrayList' is not defined. App_Code\personalisedItem.vb 506 26 Optima Online V2
Error 37 Type 'ArrayList' is not defined. App_Code\personalisedItem.vb 532 63 Optima Online V2
Error 38 Type 'ArrayList' is not defined. App_Code\personalisedItem.vb 533 28 Optima Online V2
Error 39 'ConfigurationManager' is not declared. It may be inaccessible due to its protection level. App_Code\personalisedItem.vb 579 57 Optima Online V2
Error 40 'ConfigurationManager' is not declared. It may be inaccessible due to its protection level. App_Code\personalisedItem.vb 648 57 Optima Online V2
Error 41 Type 'Collection' is not defined. App_Code\personalisedItem.vb 692 32 Optima Online V2
Error 42 'ConfigurationManager' is not declared. It may be inaccessible due to its protection level. App_Code\personalisedItem.vb 775 57 Optima Online V2
Error 43 'IIf' is not declared. It may be inaccessible due to its protection level. App_Code\personalisedItem.vb 787 43 Optima Online V2
Error 44 'IIf' is not declared. It may be inaccessible due to its protection level. App_Code\personalisedItem.vb 801 43 Optima Online V2
Я видел исправления первой ошибки, добавив зависимую ссылку на сборку в Web. config в ASP.NET MVC, но это не работает.
Я также затрудняюсь понять, почему вещи, подобные коллекциям и EventArgs, не могут быть указаны.
Любые идеи?
С уважением