WCF Distributed Development Common errors (29)

Source: Internet
Author: User

WCF Distributed Development Common error: Unrecognized attribute ' targetframework ' (unrecognized property ' targetframework ')

I'm using the VS2010 and. NET Framework 4.0. A simple WCF service was developed, and this error occurred when deploying to IIS6.

Unrecognized attribute ' targetframework '.

"1" error message:

The information for the WCF service's configuration file is as follows:

<compilation debug="true" targetFramework="4.0">
<assemblies>
</assemblies>
</compilation>

"2" Error screenshot:

"3" Reason analysis:

This error is caused by an incorrect version of. NET Framwork, and the nodes in the configuration file cannot be recognized.

"4" Solution:

In the Web site properties of ASP. NET in the set version is. NET in IIS > right click on WebSite > Properties > ASP.net > Version > "4.0.21006" is not 2.0.

Iis6> Select Site->-> properties-> asp.net-> version-> "4.0.21006". As shown in the figure:

Resources:

1.http://forums.asp.net/t/1491204.aspx

2.http://social.microsoft.com/forums/zh-cn/wcfzhchs/thread/663531f6-5466-4c2b-8450-73135137756b/? Prof=required

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.