Application devloped in .Net 3.5 is not working in XP SP3 which has .Net4.0 only RRS feed

  • Question

  • I used following string method to find out the number of substring in a complete string

    Enumerable.Count<TSource> Method (IEnumerable<TSource>, Func<TSource, Boolean>)

    But if I use this application in a XP SP3 PC which has only .Net 4.0 in it then it will thorow an exception.

    In application I am using

    supportedRuntime 2.0 and even I tried with 4.0 also, but in both the case it didn't help..


    Thursday, October 4, 2012 9:28 PM


  • Hi Abhishek,

    Welcome to the MSDN Forum.

    This is obviously. The .net framework is based on the 2.0 runtime. But the .net framework 4.0 is based on the 4.0 runtime. So please install .net framework 4.0 to run your application correctly. About how to install .net framework, please ask here: 

    Best regards,

    Mike Feng
    MSDN Community Support | Feedback to us
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by Mike FengModerator Thursday, October 18, 2012 3:30 AM
    • Unmarked as answer by abhi41186 Tuesday, November 27, 2012 6:11 PM
    • Marked as answer by abhi41186 Tuesday, November 27, 2012 6:11 PM
    Friday, October 5, 2012 8:04 AM