Solved

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

Posted on 2015-02-02
5
349 Views
Last Modified: 2015-02-02
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.

Regards,
Leigh
0
Comment
Question by:LeighWardle
  • 2
  • 2
5 Comments
 
LVL 23

Expert Comment

by:Michael74
ID: 40585431
Not sure about whitespace. Try "Myapp_6.0"
0
 
LVL 8

Expert Comment

by:Naitik Gamit
ID: 40585432
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
0
 
LVL 23

Accepted Solution

by:
Michael74 earned 500 total points
ID: 40585441
Ah yes of course the full stop is not a valid character as this is used to signify namespace paths try

"Myapp_6-0"
0
 
LVL 8

Expert Comment

by:Naitik Gamit
ID: 40585456
YES,you cannot use that in properties....................
0
 
LVL 1

Author Comment

by:LeighWardle
ID: 40585465
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.
0

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

Suggested Solutions

Title # Comments Views Activity
Custom auto number 6 51
Limiting string to two deciamls 18 32
Get String split 5 33
Convert to Hour/minute textbox and compare 3 35
Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

758 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

18 Experts available now in Live!

Get 1:1 Help Now