title: WCF Data Service deployment issues
body: <p>I have built a WCF Data Service that works when I run it on my development machine, but when I move it to a Windows 2008 VM running on Azure, I get the following error when I attempt to navigate to the .svc URL:</p>
  
  <blockquote>
    <p><strong>Request Error</strong><br>
    <strong>The server encountered an error processing the request. The exception message is 'The type initializer for 'System.Data.Services.Providers.ResourceType' threw an exception.'. See server logs for more details. The exception stack trace is:</strong> </p>
    
    <p>at System.Data.Services.Providers.ResourceType.get_PrimitiveResourceTypeMap() at System.Data.Services.Providers.ObjectContextServiceProvider.PopulateMetadata(IDictionary<code>2 knownTypes, IDictionary</code>2 childTypes, IDictionary<code>2 entitySets) at System.Data.Services.Providers.BaseServiceProvider.LoadMetadata() at System.Data.Services.DataService</code>1.CreateMetadataAndQueryProviders(IDataServiceMetadataProvider&amp; metadataProviderInstance, IDataServiceQueryProvider&amp; queryProviderInstance, BaseServiceProvider&amp; builtInProvider, Object&amp; dataSourceInstance) at System.Data.Services.DataService<code>1.CreateProvider() at System.Data.Services.DataService</code>1.HandleRequest() at System.Data.Services.DataService`1.ProcessRequestForMessage(Stream messageBody) at SyncInvokeProcessRequestForMessage(Object , Object[] , Object[] ) at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]&amp; outputs) at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc&amp; rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc&amp; rpc) at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc&amp; rpc) at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)</p>
  </blockquote>
  
  <p>I deployed by creating a web application under the default website on the server and copying my files directly into the folder.  The .aspx pages in the same location work as expected.</p>
  
  <p>I found <a href="http://johonline.wordpress.com/2012/07/24/wcf-data-services-5-0-request-error/" rel="nofollow">this</a> post, which suggests it is a problem with not having the proper DLL files on the server.  My bin folder contains the following DLLs in addition to the ones specific to my service, but it still does not work:</p>
  
  <p>EntityFramework.dll 5.0.0.net40<br>
  Microsoft.Data.Edm.dll 5.0.0.50808<br>
  Microsoft.Data.OData.dll 5.0.0.50808<br>
  Microsoft.Data.Services.Client.dll 5.0.0.50808<br>
  Microsoft.Data.Services.dll 5.0.0.50808<br>
  System.Spatial.dll 5.0.2.50815  </p>
  
  <p>I've exhausted my limited knowledge and what I consider pretty good search ability, so if anyone can steer me in the right direct, it would be appreciated.</p>
  
  <p>Thanks!</p>