What does this warning message mean?

When I build a project, the system present me a warning message:

Load of property 'RootNamespace' failed. The string for the root namespace must be a valid identifier.

But my program runs well.

Anybody can tell me what should I do to avoid this warning message

Thanks in advance!




Answer this question

What does this warning message mean?

  • Neno

    Hi,

    Check if your namespace contains a period ".". You get this error when there are invalid characters in your namespace.

    Regards,

    Thayil


  • Traveler2

    Well, no. The period '.' should be valid for the root namespace.

    What is the current value of your root namespace



  • MrSlim

    It looks like your the root namespace of your assembly (project) contains characters that aren't valid for identifiers.

    To change your root namespace, do the following:

    1. In Solution Explorer, right-click on your project and click Properties
    2. The root namespace is contained within the Default Namespace textbox, simply check that it doesn't contain any invalid characters such as , ', ., :, ;, etc


  • ayman

    It also can't START with a number (something I learned when we were converting our 3D WebCam application to .NET 2005)
  • vineethjpillai

    Hi David,

    The dot (.) is also an invalid character, right



  • Pike

    Can you open your project file with a text editor and post the contents of it

  • Mariano Iglesias

    I use project property form setting the default namespace to MSDN.Tutorial.Chapter6, and also set the default assembly name to Section1.exe

  • RonnyV

    I'm sorry David, my computer is corrupt when I install the Windows Vista SDK, all the file in my system driver is lost, so I can't post anything at this moment. Also my company decide to use VSTS in the future, so I think if I have time, I will try my best to re-do my previous job at my home machine, maybe when I encountered this problem again, I will post my project file here.

    Thanks for your time and I appreciate your help.



  • What does this warning message mean?