Deploy your MVC To IIS, Error: Unrecognized attribute 'targetFramework'.
4/1/2014
If you have trouble for this error, probably this article could resovle.
The fix for this error to me, it was IIS Application Pools' version.
After I deploy my MVC's application to IIS 7, then my Application Pool's setting was .NET Framework v2.0.50727. Which my MVC's .NET Framework Version was v4.0.
So, here's step to change IIS 7 Application Pools' .NET Framework Version.
- Open Internet Information Services(IIS) Manager
- Open Application Pools
- Right Click Web Site application you deploy and select Basic Setting...
- Change .NET Framework version to match your MVC's .NET Framework Version.
- You might need to restart your Application Pools and WebSites
here's the image of IIS 7's Application Pools' setting.