我有一個ASP.NET WebForms應用程序,我最近已將其升級到使用VS2013的.NET 4.0 。它最初是在VS2010中構建的。它還使用的DevExpress控制版本16.2無法在ASP.NET Webforms站點中加載文件或程序集「System.Web.WebPages.Deployment或其某個依賴項錯誤
當我嘗試建立網站,我得到了以下錯誤: -
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
我已經加入了相關的裝配參考網站看到了第一個錯誤修復。 ASP.NET MVC中的配置文件,但似乎沒有工作。
我也不知道爲什麼像collection和EventArgs這樣的東西不能被引用。
任何想法?
Regards