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
460 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

Suggested Solutions

Title # Comments Views Activity
Close form "before" open 3 49
Generate Numbers in JQuery file 11 66
Looping through datagridview and dataset ? 6 24
Crystal reports login after closing form 3 19
In Easy String Encryption Using CryptoAPI in C++ (http://www.experts-exchange.com/viewArticle.jsp?aid=1193) I described how to encrypt text and recommended that the encrypted text be stored as a series of hexadecimal digits -- because cyphertext may…
Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

821 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