Geeks With Blogs
IUnknown Windows Azure mumblings of IUnknown

Bugged by the irritating "Path is too long after being fully qualified" error while running in the Development Fabric? The solution is pretty funny and not so obvious unfortunately.

The culprit here is not your app, but the Development Fabric. The DevFab accumulates a lot of temporary junk comprising of local storage locations, cached binaries, configuration, diagnostics information and cached compiled web site content files over its lifetime. They are typically stored at C:\Users\<username>\AppData\Local\dftmp. The Azure Tools will periodically clean this up, but some time you have to play janitor and and take the law in your hands ;).

The csrun.exe has quite a few tricks up its sleeve. One of them is the ability to clean the development fabric's temporary junk accumulated over time. You can do this by  running the Azure command prompt with elevated privileges and running

csrun.exe /devfabric:shutdown and then

csrun.exe /devfabric:clean

If the problem still persists then the application directory structure could indeed be too long. A workaround to this is changing the Development Fabric temporary directory to point to a shorter path. The temporary directory path can be addressed by an environment variable _CSRUN_STATE_DIRECTORY. You can try setting its value to something like "C:\WA" or "C:\A" this will reduce some 25+ characters from your path.

Do not forget to close Visual Studio and expressly shutdown the dev fab with csrun.exe /devfabric:shutdown (Under elevated privileges of course).

Posted on Wednesday, February 3, 2010 3:47 PM | Back to top

Comments on this post: No more "Path is too long"

# re: No more "Path is too long"
Requesting Gravatar...
This is a Windows* OS/file system issue.The cause is the directory paths in the system is longer than 255 characters (including spaces).There's a lot of
additional softwares which can fix this problem like Long Path Tool.
Left by GabrielNar89 on Nov 19, 2012 9:53 PM

# re: No more "Path is too long"
Requesting Gravatar...
Try " Long Path Tool " is also useful in situations where you see these error messages: Cannot read from source file or disk, there has been a sharing violation, cannot delete file or folder, the file name you specified is not valid or too long, the source or destination file may be in use and many other file managing errors
Left by stevenkor on Jul 20, 2013 9:51 PM

# re: No more "Path is too long"
Requesting Gravatar...
I just download and use "Long Path Tool" guarantees to fix your error fast and easy.
Left by garrydam on Aug 21, 2013 12:29 AM

# re: No more "Path is too long"
Requesting Gravatar...
Using a dedicated and professional software to solve this issue would be a good idea rather wasting time on finding solutions. I was very irritated with this issue so I decided to try GS Richcopy 360 which works very well for me till now. It solved most of my problems related to file transfer, backup and FTP. Give it a try and save yourself from tension and stress!
Left by coren leo on Aug 22, 2017 9:21 PM

Your comment:
 (will show your gravatar)

Copyright © Sarang | Powered by: