Since mono3.0 starts ,. net4 is. net4.5 is the default environment. Therefore, after the server is upgraded to mono3, the original ASP. net4 websites may have problems, such as "system. argumentnullexception "errors. To make the original ASP. net4 website run normally in the mono3 (Asp. net4.5) environment, you need to do the following:
1. About web. config:
1. In the <assemblies> section. web. in webpages, the version value is changed from 1.0.0.0 to 2.0.0.0. Similarly, in views, the web. in the "configsections" section of the config file, version 1.0.0.0 must be changed to 2.0.0.0.
2. Change the value of uiculture in the <globalization> section to "En-us". The value of culture can be set to "ZH-CN ".
Ii. Processing of ASP. net4 Class Libraries
Because mono3 already contains a 4.5 class library compatible with ASP. net4, the original ASP. net4/mvc3/razor class library in the bin folder of the Website Cannot be reused and all of them must be deleted.
Original article: http://linuxdot.net/bbsfile-3202