• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 6137
  • Last Modified:

<compilation debug="true" strict="false" explicit="true" targetFramework="4.0" />

Hi

I try to run a project on my computer (localhost) and get the following error:
 <compilation debug="true" strict="false" explicit="true" targetFramework="4.0" />
It works OK with VS2010.

Please let me know how to fix this problem.
Thanks,
Dave
0
Yucel Altingoz
Asked:
Yucel Altingoz
  • 2
1 Solution
 
Paul JacksonSoftware EngineerCommented:
Are you running it in a local IIS? It sounds like you haven't installed or set the website to use .Net 4.0. which is set on the .net tab in the website properties.
0
 
Yucel AltingozAuthor Commented:
The sulution is:

In IIS >  Right click on WebSite > Properties > ASP.NET > Version > "Should read 4.0.21006" not 2.0

Thanks,
0
 
Paul JacksonSoftware EngineerCommented:
The solution was given by me in comment 35484036. The question should not be deleted anyway as a valid solution has been posted and should be accepted as the solution.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now