Win7 IIS下发布站点,可能会碰到如下错误:
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.
<compilation debug="true" targetFramework="4.0">
解决方案:
站点名 --> 基本设置 --> Application pool: 选 ASP.NET V4.0 --> 点击OK