Problem with bin Deploying ASP.NET MVC 3

2019-08-30 02:50发布

问题:

I have problem with deploying my website to a server (which is not mine). I have one application that is running on this server and it is working (mvc 3, EF4). It was some time ago so I don´t know exactly what I changed to run it on that server but I think it was just adding referencies to bin folder. Now when I am trying on same server run my second app I did what is here: http://midnightprogrammer.net/post/Bin-Deploy-ASPNET-MVC-3-Application-With-SQL-CE-40-Entity-Framework.aspx and It says problem with: "Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive." and the problem is on this line:

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

I tried use google but every help that I found was with changing IIS but I am not administrator.

Thanks for help

回答1:

Simply take out the targetFramework="4.0" bit as per What happens if I don't specify targetFramework="4.0"?

It could be fixed in this patch as per KB 2468871, "Update for the .NET Framework 4", issue 9.