Close the tag
<compilation debug="true" targetframework="4.0"></compilation>
replace above tags by
<compilation debug="true" targetframework="4.0" />
And also check the framework you are working
means if your are working with 3.5 then set that one as 3.5 .and if 4.0 then set as 4.0
You can remove that tag.