error like 'Unrecognized attribute 'targetFramework'. [Resolved]

Posted by hareeshkumarkr-16190 under ASP.NET on 9/19/2013 | Points: 10 | Views : 1513 | Status : [Member] | Replies : 5
Hi All,

After reinstalling the IIS 7 i am getting error like 'Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive'
how to resolve this isuue ?


Regards,
Hareesh




Responses

Posted by: Bandi on: 9/19/2013 [Member] [MVP] Platinum | Points: 50

Up
0
Down

Resolved
The problem could be:

the Application Pool for your site is configured for .NET Framework Version = v2.0.XXXXX
.NET 4 isn't installed on your server.
See also
Unrecognized attribute 'targetFramework' ... http://stackoverflow.com/questions/7530725/unrecognized-attribute-targetframework-note-that-attribute-names-are-case-sen
How to add ASP.NET 4.0 ... http://stackoverflow.com/questions/4890245/how-to-add-asp-net-4-0-as-application-pool-on-iis-7-windows-7

Mark This Response as Answer
--
Chandu
http://www.dotnetfunda.com/images/dnfmvp.gif

hareeshkumarkr-16190, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: hareeshkumarkr-16190 on: 9/19/2013 [Member] Starter | Points: 25

Up
0
Down

Hi,

Thank you for your valueable replay, but after run the command i am getting error like
'failed with HRESULT 80070003 : the system cannot find the path specified'


Regards,
Hareesh

hareeshkumarkr-16190, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Bandi on: 9/19/2013 [Member] [MVP] Platinum | Points: 25

Up
0
Down
Refer these links for latest error...
http://forums.iis.net/t/1190129.aspx
http://johnnycode.com/2011/09/05/cant-reinstall-iis-issue/

Fixed by calling the registration script with these options:


aspnet_regiis.exe -iru
from the framework directory:

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\


Referhttps://support.venafi.com/entries/23674977-Error-Install-Certificate-failed-with-error-The-system-cannot-find-the-path-specified-Exception-from

Mark This Response as Answer
--
Chandu
http://www.dotnetfunda.com/images/dnfmvp.gif

hareeshkumarkr-16190, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: hareeshkumarkr-16190 on: 9/19/2013 [Member] Starter | Points: 25

Up
0
Down

hi Bandi ,

Thank You..


Regards,
Hareesh

hareeshkumarkr-16190, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Bandi on: 9/19/2013 [Member] [MVP] Platinum | Points: 25

Up
0
Down
You are welcome :)

Mark This Response as Answer
--
Chandu
http://www.dotnetfunda.com/images/dnfmvp.gif

hareeshkumarkr-16190, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response