Posts Tagged ‘IIS’

How to fix the issue Unrecognized attribute ‘targetFramework’.

October 2, 2014 Leave a comment


Recently, I am having issues with deploying mvc 4 application to Windows Server 2008 R2.After add the necessary role and features and I setup an application in IIS. However , I received the following error message: Unrecognized attribute ‘targetFramework’.


It turns out that this is because App pool is not configured to use .net 4.0, after changing from .net 2.0 to .net 4.0. It works like a charm.

Note if .net v4.0x does not show up under .NET Framework version dropdown, you can need to install .net or re-register .NET 4 with IIS, you can check my previous blogpost to learn how to do it.


How to avoid “The web server process that was being debugged has been terminated by IIS”

March 22, 2012 2 comments


When debugging by attaching w3wp.exe process, you often will see encounter the following error message, the web server process that was being debugged has been terminated by IIS.


This caused Internet Information Services (IIS) to assume that the worker process had stopped responding. Therefore, IIS terminated the worker process.


1. Open IIS manager.

2.Click application Pools>>select the application pool associated with the site>>and click Advanced Settings

3. Click Advanced Settings of the application pool and set the Ping Enabled property from True to False.

Now, reattach the process from Visual Studio, you should not get the error message.



Categories:, Debugging Tags: , , ,