Cannot run ASP.NET with .NET 4.0, please help!!!

Discussion in 'ASP.NET / ASP.NET Core' started by ThunderSoul, Apr 18, 2011.

  1. Hi guys, how are you? I'm getting the following error and need help with it:

    ---------
    Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.
    ---------

    I've done everything I could to make it work, but it just won't. Here's my timeline for the past few days:

    1) Running Win Vista IIS 7 .NET FW 2.0.
    2) Formatted computer and installed Win 7 IIS 7.5 as well as all its features as well as VS2008. (in the hopes of targetFramework to work)
    3) Installed .NET 4.0.
    4) Started VS2008 and when I opened the localhost it said the site was using .NET FW 2.0 and asked me if I wanted to switch to 3.5. I said yes and the conversion was a success.
    5) Tried to run site but got same error message.
    6) Spent 3 days on the internet attempting to figure out what went wrong.
    7) http://hashbucket.wordpress.com/2010/05/29/just-so-you-know/ <--- very useful but did not work. aspnet_regiis.exe -iru and setting the App Pool (all 4) to v4.0 did not work. Restarted computer, also did not work. I'm getting desperate. Please help!

    Thank you!
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    i am confused.. are you having problem running .net 4 on your local computer or you seeing this message on your hosting account?
     

Share This Page