Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 710
  • Last Modified:

Visual Studio 2013 vb.net Project Properties error: "The string for the root namespace must be a valid identifier"

Hi Experts,

I am running Visual Studio 2013.

I have a vb.net Project for which I want to change Properties | Application | Root namespace to "Myapp 6.0"

I am getting this error:

 "The string for the root namespace must be a valid identifier"

I did some googling and understand this is a valid string, but I cannot get it to work.

  • 2
  • 2
1 Solution
Michael FowlerSolutions ConsultantCommented:
Not sure about whitespace. Try "Myapp_6.0"
Naitik GamitSoftware DeveloperCommented:
To change your root namespace, do the following:

In Solution Explorer, right-click on your project and click Properties

The root namespace is contained within the Default Namespace textbox, simply check that it doesn't contain any invalid characters such as ?, ', ., :, ;, etc
Michael FowlerSolutions ConsultantCommented:
Ah yes of course the full stop is not a valid character as this is used to signify namespace paths try

Naitik GamitSoftware DeveloperCommented:
YES,you cannot use that in properties....................
LeighWardleAuthor Commented:
Hi Michael,

I tried (all  without quotes):

 "Myapp_6-0" - still get the same error.
 "Myapp-6-0" - still get the same error.

But  "Myapp_6_0" without quotes - works!
So "-" is also an invalid character.

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now