title: Azure Basic ASP.NET WCF Data Service generating HTTP 500.0
body: <p>First off, I would like to say thank you in advance for your advice and guidance.  I am new to the Microsoft .Net stack.</p>
  
  <p>I have created a very simple WCF Service that is hosted on a Azure website and that should create endpoints to an Azure SQL datasource.</p>
  
  <p>In VS 2013, I first created an ADO.NET EDM point to my Azure SQL:</p>
  
  <pre class="lang-cs prettyprint-override"><code>namespace WorkOrderIntegration
  {
      using System;
      using System.Data.Entity;
      using System.Data.Entity.Infrastructure;
  
      public partial class WorkOrderEntities : DbContext
      {
          public WorkOrderEntities()
              : base("name=WorkOrderEntities")
          {
          }
  
          protected override void OnModelCreating(DbModelBuilder modelBuilder)
          {
              throw new UnintentionalCodeFirstException();
          }
  
          public DbSet&lt;WorkOrder&gt; WorkOrders { get; set; }
      }
  }
  </code></pre>
  
  <p>I then added the [WCF Data Service 5.6] to the project and only made a few changes to the InitializeService method:</p>
  
  <pre class="lang-cs prettyprint-override"><code>namespace WorkOrderIntegration
  {
      //Added my Entity to the class declaration
      public class WorkOrderService : DataService&lt;WorkOrderEntities&gt;
      {
          public static void InitializeService(DataServiceConfiguration config)
          {
              //Added these next 2 lines
              config.UseVerboseErrors = true;
              config.SetEntitySetAccessRule("*", EntitySetRights.All);
  
              config.DataServiceBehavior.MaxProtocolVersion = DataServiceProtocolVersion.V3;
          }
      }
  } 
  </code></pre>
  
  <p>I then publish my project to my Azure hosted <a href="http://workordertest.azurewebsites.net/" rel="nofollow">website</a> and navigate to the /WorkOrderService.svc/WorkOrders, I get a HTTP 500.0 error.</p>
  
  <p>Everything builds fine and I have read through several articles that use this same process to success.  Any help or direction you could provide would be greatly appreciated.  Thank you. </p>