webservice. attribute "targetFramework" solution unrecognized data

1, under win10 with Vs2017 create and publish Web service using the service - Column jhycjhyc of - CSDN blog .html ( https://blog.csdn.net/jhycjhyc/article/details/86750269 )

  ZC: create, publish and use C # to call, the main reference of web content

  Then, in the Web.config file published folder content "<compilation targetFramework =" 4.6.1 " />" will complain: targetFramework property is not recognized ( unrecognized attribute "targetFramework" solution ). The actual version is configured here too, while lower settings inside IIS "application pool", and unify them click on it:

  <compilation targetFramework="4.0" />

 

 

2、

3、

4、

5、

 

Guess you like

Origin www.cnblogs.com/csskill/p/11095042.html