Windows Azure Start Up Error

Monday, April 5, 2010

When starting up my first Windows Azure project, i kept receiving a System.IO.FileLoadException. The message was saying that the path of the temp directory that the assemblies are being built in was too long. The error message looked like this.

Path Too Long

When starting up, Windows Azure compiles all of the assemblies into a temporary folder. By default the folder is located here: C:\Users\\AppData\Local\dftmp Some of the paths can get very long. If you are getting this message there are really only two things you can do. You can rename all of the your projects to shorter names or you can change the directory name that the assemblies are compiled and run from.

An environmental variable can be set that overrides the default location. The environmental variable is called _CSRUN_STATE_DIRECTORY. This can be set to a shorter path, buying you some more characters.

Environmental Variable

After the variable is set make sure to shutdown the development fabric either by shutting it down through the system tray or at the command line using csrun /devfabric:shutdown. If shortening the path doesn’t do the trick, the only option may be to rename your project and assemblies.

Top