• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 5889
  • 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 JacksonCommented:
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 JacksonCommented:
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

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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