5

Using Visual Studio 2012 Premium SP1 11.051106.01 and Emulator version 1.8 I get the following error about ever 3-5 page refreshes. I then have to stop debugging and re-deploy to the emulator.

I have at least 5 developers working on Azure and they all have the same problem when deploying Web Roles to an Azure Emulator. My suspicion is that it has something to do with caching but I'm not sure where to start looking.

I've checked all my file path lengths and don't have any path and file names longer than 220 chars. Win 7 has a maximum of 260 chars so I'm not sure what else to check.

Could not load file or assembly 'Kernel32' or one of its dependencies. The filename or extension is too long.

Could not load file or assembly 'System.ServiceModel.Web.dll' or one of its dependencies. The filename or extension is too long.

Richard J. Ross III
  • 55,009
  • 24
  • 135
  • 201
MattPII
  • 256
  • 3
  • 6
  • I face the same issue with two azure projects, currently I have only one azure project loaded and the other unloaded. Seemed so far not causing this issue anymore. Do you have any news what is casing this? Thanks – Marc Loeb Jan 15 '14 at 09:54

1 Answers1

0

This usually happens when your temp path + solution is too long of a name. There is a setting you can use to actually rebase the path and try to fix it. Read about it here on Jim's blog. Essentially, you set the _CSRUN_STATE_DIRECTORY environment variable to a shorter path.

dunnry
  • 6,858
  • 1
  • 20
  • 20
  • Some fellow devs have tried this, but they still get the above error intermittently. I get it any time I run two cloud deployments side-by-side, even though I have my _CSRUN_STATE_DIRECTORY maped to C:\Z – Craig Smitham Mar 01 '13 at 20:55
  • 1
    Not sure why this got -1. The error is not just jesting. If it says your path is too long, it is too long. Short of renaming your solution files, the answer I gave is accurate. – dunnry Mar 02 '13 at 14:33