Idea about running ASP. NET 4 website in Mono 3.0

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.