0

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

2
  • 2
    Is your site running under a .Net 4 application pool? Commented Aug 1, 2011 at 16:03
  • What IIS version? have you run aspnet_regiis? .net "allowed" etc etc? Commented Aug 1, 2011 at 16:16

1 Answer 1

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.

Sign up to request clarification or add additional context in comments.

2 Comments

Thanks it helps but now I have problem this: "Could not load file or assembly 'System.Web.Helpers' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded."
@Bibo: ask a new question then about "Could not load file or assembly 'System.Web.Helpers' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.". Although, the clue is in the error. You built in for CLR 4 but this isn't on the server or enabled correctly.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.