title: C# web application causes 404 error in Azure when deployed from one computer, but not from another
body: <p>We have built a C# web application on .Net Framework 4, using MVC3 and Entity Framework 4.1. The application is running in Windows Azure and is working against a SQL-Azure database. When we deploy the application, we run in to a somewhat weird problem.</p>
  
  <p>Using the exact same code, checked out from our svn, when deploying the application through Visual Studio on one computer everything works fine, however, doing the exact same thing on another computer causes the application to return a 404 error, no matter what controller/action you are trying to reach. The application works smooth in the Cloud Emulator on both computers. We have also tried to package the application on the erroneous computer, and deploy it through the Azure web portal, but that doesn't work either.</p>
  
  <p>Both computers are running Windows 7 64-bit, with Visual Studio 2010 Ultimate and the Azure SDK installed.</p>
  
  <p>Any ideas on why this could be?</p>
  
  <p>Regards,
  Christofer</p>
  
  <p><strong>Edit:</strong>
  Using RDP (thanks for the tip! @Ben) I think we've got a bit closer to the solution. On the server, the following exception is thrown:</p>
  
  <pre><code>Exception information: 
          Exception type: InvalidOperationException 
          Exception message: The pre-application start initialization method Start on type System.Web.WebPages.PreApplicationStartCode threw an exception with the following error message: Could not load file or assembly 'Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified..
         at System.Web.Compilation.BuildManager.InvokePreStartInitMethods(ICollection`1 methods)
         at System.Web.Compilation.BuildManager.CallPreStartInitMethods()
         at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException)
  
  Could not load file or assembly 'Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
         at System.Web.WebPages.PreApplicationStartCode.Start()
  </code></pre>
  
  <p>The weird thing is that that particular dll - Microsoft.Web.Infrastructure.dll is included in my _bin_deployableAssemblies folder.</p>