Quantcast
Channel: Node.js Tools for Visual Studio
Viewing all articles
Browse latest Browse all 4630

Commented Unassigned: cannot debug project anymore [1340]

$
0
0
I can no longer debug one of my projects. The build output window shows the following. I'm not exactly sure what has changed, but it used to debug fine. I didn't change the path, so I can't imagine how there are any illegal characters in it. Please let me know if there is any more information I can give.

```

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\Node.js Tools\Microsoft.NodejsTools.targets(137,5): error MSB4018: The "AssignTargetPath" task failed unexpectedly.
System.ArgumentException: Illegal characters in path.
at System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional)
at System.Security.Permissions.FileIOPermission.CheckIllegalCharacters(String[] str)
at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, AccessControlActions control, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList)
at System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, String[] pathList, Boolean checkForDuplicates, Boolean needFullPath)
at System.IO.Path.GetFullPath(String path)
at Microsoft.Build.Tasks.AssignTargetPath.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext()
Done building project "api-server.njsproj" -- FAILED.

Build FAILED.

```
Comments: It sounds like this is also the MAX_PATH issue that is floating around. I believe the problem started when I added gulp to devDependencies. I've moved my code to a really short folder name off of C:\ and it seems to be working again.

Viewing all articles
Browse latest Browse all 4630


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>