"Path is too long...” error using Azure Development Fabric

I was recently telling a colleague about running into the following error while debugging locally my Azure cloud app:  “The path is too long after being fully qualified.”  So I figure I’d share my findings. 

First of all, there’s most likely nothing wrong with your code.  But the Development Fabric does need some help from you.  The culprit behind the error may be a number of things, however let’s assume the error message provided is accurate and the path to the temporary files of the Development Fabric folder is too long, you can either:  (A) shorten your project and file names or (B) set an environment variable to point to a much shorter temporary directory for the Development Fabric.  I’d suggest B, because I  prefer to do things quick and easy.

To do this, you must set an environment variable called _CSRUN_STATE_DIRECTORY.  Try to keep its value short (as that’s the purpose of this exercise), like C:\A or C:\TDF.

_CSRUN_STATE_DIRECTORY

 

The following resources deserve the credit for helping me resolve this issue:

Published Friday, November 05, 2010 11:26 AM by fallen888

Comments

# re: "Path is too long...” error using Azure Development Fabric

Friday, January 28, 2011 12:42 PM by neelamsaxena

I used <a href="http://www.pathTooLongFix.com">www.pathTooLongFix.com</a>, good one

# re: "Path is too long...” error using Azure Development Fabric

Saturday, March 03, 2012 5:14 AM by JoshuaReen

I have used Long Path Tool in this situation and it helped me easily and quickly.

Get this tool from here. http://longpathtool.com/

Leave a Comment

(required) 
(required) 
(optional)
(required)