Illegal characters in path.

Abdul Rehman 10 Reputation points
2023-03-27T02:41:25.43+00:00

I am trying to create a new project through following procedure but visual studio is throwing exception

01

03

02


Developer technologies ASP.NET ASP.NET Core
Developer technologies Visual Studio Other
{count} vote

4 answers

Sort by: Most helpful
  1. Melton, Tim 5 Reputation points
    2024-03-19T14:57:10.7966667+00:00

    I have the same issue as the OP.

    I am using Visual Studio Pro 2022, 17.9.3

    Trying to create a project using the "Angular and ASP.NET Core" template.

    I get: Illegal characters in path.

    It creates some folders and a .sln file, but the .sln file is empty

    there are no files in the folders it creates.

    User's image

    User's image

    1 person found this answer helpful.
    0 comments No comments

  2. Martijn Coppoolse | DGMR 5 Reputation points
    2024-09-25T10:44:29.9366667+00:00

    I found the solution, described here on Stack Overflow: https://stackoverflow.com/questions/65281107/visual-studio-2019-illegal-characters-in-path

    The problem I had was that there was an empty entry in my user PATH. (Shown in the ‘Environment Variables’ dialog as one entry starting with a ‘;’ semicolon). I fixed that, quit Visual Studio and started it again (restarting it didn’t work), and then the problem went away.

    1 person found this answer helpful.

  3. Martijn Coppoolse | DGMR 5 Reputation points
    2024-09-25T10:34:52.8466667+00:00

    I have the same problem, using Visual Studio 2022 17.11.4 (64-bit).

    I’m trying to add a new Angular App project to my existing solution, but all I get is the error message ‘Illegal characters in path.’ No file or directory is written to disk.

    0 comments No comments

  4. Mohammad Reza Golab 0 Reputation points
    2025-03-14T17:42:49.6433333+00:00

    I had same error, i used dotnet command line:

    dotnet new angular -o MyAngularApp
    
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.