none
namespace not recognized (even though it is there) in c# console application on Developers command prompt for VS2012 RRS feed

  • Question

  • and this is error 

    Program.cs(9,7): error CS0246: The type or namespace name 'Newtonsoft' could not
            be found (are you missing a using directive or an assembly reference?)
    Program.cs(10,7): error CS0246: The type or namespace name 'PushSharp' could not
            be found (are you missing a using directive or an assembly reference?)
    Program.cs(11,7): error CS0246: The type or namespace name 'PushSharp' could not
            be found (are you missing a using directive or an assembly reference?)
    Program.cs(12,7): error CS0246: The type or namespace name 'PushSharp' could not
            be found (are you missing a using directive or an assembly reference?)

    Friday, April 10, 2015 6:15 AM

Answers

  • Your code isn't inside a namespace or you have a typo some place in the code before the error message are occurring.  These error messages are not real and due to other issues.


    jdweng

    Friday, April 10, 2015 6:49 AM
  • Hello Elumalai G,

    For the Compiler Error CS0246, please refer to this link: https://msdn.microsoft.com/en-us/library/w7xf6dxs.aspx?f=255&MSPPError=-2147217396, it provides a detail explain for why this exception is thrown. If this does not work for you, please show us your whole code if possible.

    Regards.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Monday, April 13, 2015 8:09 AM
    Moderator

All replies

  • Hi ,

    Help me out this error... even though i searched many sites but i can't able fix this error...

    I working on this error for last one week, but i cant .... help me out..

    My communication is little bit bad..please don't mistake me...

    Thanks in advance...

    By Elumalai


    • Edited by Elumalai G Friday, April 10, 2015 6:20 AM
    Friday, April 10, 2015 6:19 AM
  • Your code isn't inside a namespace or you have a typo some place in the code before the error message are occurring.  These error messages are not real and due to other issues.


    jdweng

    Friday, April 10, 2015 6:49 AM
  • Hello Elumalai G,

    For the Compiler Error CS0246, please refer to this link: https://msdn.microsoft.com/en-us/library/w7xf6dxs.aspx?f=255&MSPPError=-2147217396, it provides a detail explain for why this exception is thrown. If this does not work for you, please show us your whole code if possible.

    Regards.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Monday, April 13, 2015 8:09 AM
    Moderator