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

Posted on 2011-04-28
Last Modified: 2012-08-14

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.
Question by:Yucel Altingoz
    LVL 29

    Accepted Solution

    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.

    Author Comment

    by:Yucel Altingoz
    The sulution is:

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

    LVL 29

    Expert Comment

    by:Paul Jackson
    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.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
    User art_snob ( encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now