Problem with bin Deploying ASP.NET MVC 3

和自甴很熟 提交于 2019-12-25 03:46:19

问题


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.



来源:https://stackoverflow.com/questions/6901116/problem-with-bin-deploying-asp-net-mvc-3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!