title: Azure Tools cannot read Service Definition File
body: <p>I have a hangfire worker role with the following service definition:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;ServiceDefinition name="Company.ServiceA.Cloud.Hangfire" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition" schemaVersion="2015-04.2.6"&gt;
    &lt;WorkerRole name="Company.ServiceA.HangfireWorkerRole" vmsize="Standard_A8_v2"&gt;
      &lt;ConfigurationSettings&gt;
        &lt;Setting name="Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString" /&gt;
        &lt;Setting name="ServiceA.HangfireDb.Server" /&gt;
        &lt;Setting name="ServiceA.HangfireDb.Password" /&gt;
        &lt;Setting name="ServiceA.HangfireDb.User" /&gt;
        &lt;Setting name="ServiceA.HangfireDb.Database" /&gt;
        &lt;Setting name="ServiceA.ReadonlyDB.Server" /&gt;
        &lt;Setting name="ServiceA.ReadonlyDB.Password" /&gt;
        &lt;Setting name="ServiceA.ReadonlyDB.User" /&gt;
        &lt;Setting name="ServiceA.Redis.Progress" /&gt;
        &lt;Setting name="ServiceA.Redis.Progress.DatabaseId" /&gt;
        &lt;Setting name="ServiceA.ReadonlyDB.Database" /&gt;
        &lt;Setting name="ServiceA.DefaultDB.Server" /&gt;
        &lt;Setting name="ServiceA.DefaultDB.Password" /&gt;
        &lt;Setting name="ServiceA.DefaultDB.User" /&gt;
        &lt;Setting name="ServiceA.DefaultDB.Database" /&gt;
        &lt;Setting name="ServiceA.CalculationCache.Disabled" /&gt;
      &lt;/ConfigurationSettings&gt;
    &lt;/WorkerRole&gt;
  &lt;/ServiceDefinition&gt;
  </code></pre>
  
  <p>Some values changed for security reasons.</p>
  
  <p>When I try to debug my cloud project, I see the following error:</p>
  
  <pre><code>Microsoft Azure Tools for Microsoft Visual Studio
  Error reading Service Definition file
  C:/Temp/ServiceDefinition.csdef
  </code></pre>
  
  <p>I'm using Azure Tools 2.7.1. Hangfire 1.6.19.</p>
  
  <p>Is my file misformatted? I've read the documentation on Service Definition files here:</p>
  
  <ul>
  <li><a href="https://docs.microsoft.com/en-us/azure/cloud-services/cloud-services-model-and-package#csdef" rel="noreferrer">https://docs.microsoft.com/en-us/azure/cloud-services/cloud-services-model-and-package#csdef</a></li>
  <li><a href="https://msdn.microsoft.com/en-us/library/azure/gg557552.aspx" rel="noreferrer">https://msdn.microsoft.com/en-us/library/azure/gg557552.aspx</a></li>
  </ul>
  
  <p>and everything seems to match up.</p>
  
  <p>It's quite ridiculous how little error information is given. Surely microsoft can come up with something more specific than this.</p>