VS2015 The Final Solution for "detecting asp.net settings that are not applicable in integrated managed piping mode"

Source: Internet
Author: User


Just upgraded the equipment to WIN10 and VS2015 open the previous project a run found the problem came up and went wrong,

"Detects asp.net settings that are not applicable in integrated managed piping mode. ”
Actions you can try:
1, migrate the configuration to the System.webserver/modules section. You can do this manually, or by using Appcmd at the command line. For example, run Appcmd migrate config "Default Web site/" from the IIS Express installation directory. Migrating an application with Appcmd will enable it to work in integrated mode and continue to work in Classic mode and previous versions of IIS.
2, if you are sure that you can ignore this error, you can disable it by setting System.webserver/validation@validateintegratedmodeconfiguration to False.
3, you can also switch applications to the Classic mode application pool. For example, run the Appcmd set app "Default Web site/"/applicationpool: "Clr4classicapppool" from the IIS Express installation directory. This is only done if the application cannot be migrated.


Look at the fog, do not know how to start, but it is certainly very obvious as long as the Classic mode can be opened, can be where to change it.

Ask a question to find the Niang, Baidu a bit, there are many in the VS2013 also encountered such problems, the solution is to C:\Users\Administrator\Documents\IISExpress\config\ ApplicationHost.config change config configuration in iisexpress

<sites>
<site name= "WebSite1" id= "1" serverautostart= "true" >
<application path= "/" >
<virtualdirectory path= "/" physicalpath= "%iis_sites_home%\website1"/>
</application>
<bindings>
<binding protocol= "http" bindinginformation= ": 8080:localhost"/>
</bindings>
</site>
<siteDefaults>
<logfile logformat= "The" directory= "%iis_user_home%\logs"/>
<tracefailedrequestslogging directory= "%iis_user_home%\tracelogfiles" enabled= "true" maxLogFileSizeKB= "1024"/ >
</siteDefaults>

<applicationdefaults applicationpool= "Clr4integratedapppool"/> <-------change this place to Clr4classicapppool, After you try, you won't find it.
<virtualdirectorydefaults allowsubdirconfig= "true"/>

</sites>

And then accidentally right click on the bottom right corner of iisexpress-"Show All Apps-" Click on the Run website instance-"Configuration" in the bottom corner, found in the keyword file path xxxxx\.vs\config\applicationhost.config,
Will it be the configuration of this file, according to the way Baidu to modify the configuration file in the "<applicationdefaults applicationpool=" Clr4integratedapppool/> <------- Change this place to Clr4classicapppool "found or not." It is said that this place has been modified to allow all site instances to run in Classic mode.

Finally carefully observe the contents of this file, I found that the configuration of my program instance name has a set of integrated mode, and then changed, found that it succeeded. Oh
<site name= "Application Engineering Name" id= "2" >
<application path= "/" applicationpool= "Clr4integratedapppool" > "-----This place has a configuration.
<virtualdirectory path= "/" Physicalpath= "Engineering path"/>
</application>
<bindings>
<binding protocol= "http" bindinginformation= "*:5484:localhost"/>
</bindings>
</site>


Finally, the VS2015 generated by the engineering root directory will have a hidden. Vs folder, which contains the Config folder inside the applicationhost.config file, modify the corresponding instance of the file in the application configuration for the Classic mode is OK.
Thanks to the seniors who solved this problem in VS2013.

Related Article

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.