Debug: System.NotSupportedException: The given path's format is not supported.


Using AVR Studio 6.1 and also tried on 6.2. Using Arduino v. 1.0.5 -r2 and also tried 1.5.5. Tried all combinations of those listed before. Using Visual Micro v. 1404.1.

My code only uses the pinMode, digitalWrite and delay function calls. Compiles fine using build (F7). When I try to debug(F5) is where I get the error. I've followed the setup guide for debugging, Micro build is set to FULL. I've set the path to the arduino folder and select Arduino UNO as my board on the correct COM port.

I'm getting this error in the Micro Build output window:
Compiling 'testExample' for 'Arduino Uno'
Binary sketch size: 1,064 bytes (used 3% of a 32,256 byte maximum) (0.36 secs)
Compiling debug version of 'testExample' for 'Arduino Uno'
System.NotSupportedException: The given path's format is not supported.
   at System.Security.Util.StringExpressionSet.CanonicalizePath(String path, Boolean needFullPath)
   at System.Security.Util.StringExpressionSet.CreateListFromExpressions(String[] str, Boolean needFullPath)
   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.FileInfo.Init(String fileName, Boolean checkHost)
   at System.IO.FileInfo..ctor(String fileName)
   at processing.app.SketchCompiler.CreateFileTimeListXml(String fileType, DirectoryInfo folder, String outputPath)
   at processing.app.SketchCompilerArduino.compileLibrary(DirectoryInfo outputPath, DirectoryInfo libraryFolder, List`1 includePaths)
   at processing.app.SketchCompilerArduino.compileLibraries(List`1 includePaths)
   at processing.app.SketchCompilerArduino.compile(SketchBuilder lsketch, String primaryClassName, Boolean verbose, Boolean isDebug)
   at Visual.Micro.Visual.Studio.Arduino.AddInApp.CompileDo(Project oProject, Boolean IsDebugStartCommand)
   at Visual.Micro.Visual.Studio.Arduino.AddInApp.Compile(Project oProject, Boolean IsDebugStartCommand)
And here is my very simple code I was trying to test with "testExample.ino"
void setup()

  pinMode(13, OUTPUT);


void loop()

  digitalWrite(13, HIGH);
Also attached are screen shot of the properties of the project.

file attachments


visualmicro wrote Apr 13, 2014 at 6:17 PM

Hi there,

Did I regsiter you for the forum at http://www.visualmicro.com/forums? That's effeminately the quickest and best place to get a response for any questions. There are thousands of members and you will see that this issues list is not used.

The error looks like Visual Micro has encountered a problem with the name of a certain file in a library folder. There certainly have been many lib changes during the past few months in Visual Micro because the Arduino lib structure has changed a lot. generally people are finding the latest release works well so it would be great to nail this issue.

You will have read in the forum that "tools>options>compiler>show build properties" and "tools>options>compiler>verbose" provide useful diagnostic info for the build process. Please switch on these options then email the resulting output to info [at] visualmicro.com.

After switching on the options and prior to a build please click "Build>Clean Solution" which removes any previous build cache and will give a full compile.

If you don't mind using the Visual Micro forum for the next stage of this conversation and future ones it would be much appreciated.