Go Premium for a chance to win a PS4. Enter to Win

x
?
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
Medium Priority
?
645 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:Michael Fowler
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:
Michael Fowler earned 2000 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
Integration Management Part 2
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

972 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