title: OData / WCF Data Service - HTTP 500 Error
body: <p>I have created an OData/WCF service using Visual Studio 2010 on Windows XP SP3 with all current patches installed.</p>
  
  <p>When I click on "view in browser", the service opens and I see the 3 tables from my EF model.  However,  when I add a table name ("Commands" in this case) to the end of the query string, rather than seeing the data from the table, I get an HTTP 500 error.
  <em>(This error (HTTP 500 Internal Server Error) means that the website you are visiting had a server problem which prevented the webpage from displaying.)</em>.  </p>
  
  <p>I have not only followed the examples from 2 sites, but have also tried running the sample application that the blog poster sent me (that works on his machine), and still am not having any luck.</p>
  
  <p>The blog post is at <a href="https://web.archive.org/web/20101216021748/http://infinitecodex.com/post/2010/06/10/Exposing-OData-from-an-Entity-Framework-Model.aspx" rel="nofollow noreferrer">Exposing OData from an Entity Framework Model</a></p>
  
  <p>Does anyone have an idea why this is occurring and how to resolve it?</p>
  
  <h1>Here is the output of the "View in Browser":</h1>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" standalone="yes" ?&gt; 
  - &lt;service xml:base="http://localhost:1883/VistaDBCommandService.svc/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:app="http://www.w3.org/2007/app" xmlns="http://www.w3.org/2007/app"&gt;
  - &lt;workspace&gt;
    &lt;atom:title&gt;Default&lt;/atom:title&gt; 
  - &lt;collection href="Commands"&gt;
    &lt;atom:title&gt;Commands&lt;/atom:title&gt; 
    &lt;/collection&gt;
  - &lt;collection href="Databases"&gt;
    &lt;atom:title&gt;Databases&lt;/atom:title&gt; 
    &lt;/collection&gt;
  - &lt;collection href="Statuses"&gt;
    &lt;atom:title&gt;Statuses&lt;/atom:title&gt; 
    &lt;/collection&gt;
    &lt;/workspace&gt;
    &lt;/service&gt;
  </code></pre>
  
  <hr>
  
  <h1>Update:</h1>
  
  <p>In an effort to get this working, I have:</p>
  
  <ol>
  <li>Removed and re-installed IIS</li>
  <li>Ran the %WINDIR%\Microsoft.Net\Framework\v4.0.30319\aspnet_regiis –i –enable command </li>
  <li>Ran the %WINDIR%\Microsoft.Net\Framework\v4.0.30319\ServiceModelReg.exe -r command. </li>
  <li>Created a new solution and followed the instructions very carefully to assure that I 
  didn't mess anything up.</li>
  </ol>
  
  <p>After all of this, I am still getting the same HTTP 500 error, with no entries of any kind in the Event Viewer.</p>
  
  <p>Any other ideas?</p>