title: Stuck on an ASP.NET/WCF WSDL Parsing Error
body: <p>I have a WCF Web Service that my ASP.NET app uses.  It has been working fine for quite some time.</p>
  
  <p>I just added in a Dev Express Grid (and the Dev Express DLLs) and a new page that uses them and now I am getting parsing errors on the WSDL.  </p>
  
  <p>But the weird part is that it works <strong>fine on my machine</strong> but <strong>fails on the web server machine</strong>.  (Both are connecting to the same web services WSDL.)</p>
  
  <p>Here is the error message I am getting:</p>
  
  <pre>
  Server Error in '/MyWebAppWebDev' Application.
  --------------------------------------------------------------------------------
  
  Parser Error 
  Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. 
  
  Parser Error Message: Reference.svcmap: Failed to generate code for the service reference 'MyWebAppService'.
  Cannot import wsdl:portType
  Detail: An exception was thrown while running a WSDL import extension: System.ServiceModel.Description.DataContractSerializerMessageContractImporter
  Error: Referenced type 'WebClientApp.MyWebAppService.ReferenceUpdatesDataContract, WebClientApp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' with data contract name 'ReferenceUpdatesDataContract' in namespace 'http://schemas.datacontract.org/2004/07/MyWebAppServiceLibrary.DataContracts' cannot be used since it does not match imported DataContract. Need to exclude this type from referenced types.
  XPath to Error Source: //wsdl:definitions[@targetNamespace='http://tempuri.org/']/wsdl:portType[@name='IMyWebAppReferenceDataServiceLib']
  Cannot import wsdl:binding
  Detail: There was an error importing a wsdl:portType that the wsdl:binding is dependent on.
  XPath to wsdl:portType: //wsdl:definitions[@targetNamespace='http://tempuri.org/']/wsdl:portType[@name='IMyWebAppReferenceDataServiceLib']
  XPath to Error Source: //wsdl:definitions[@targetNamespace='http://tempuri.org/']/wsdl:binding[@name='MyWebAppServicesDefaultEndpoint']
  Cannot import wsdl:port
  Detail: There was an error importing a wsdl:binding that the wsdl:port is dependent on.
  XPath to wsdl:binding: //wsdl:definitions[@targetNamespace='http://tempuri.org/']/wsdl:binding[@name='MyWebAppServicesDefaultEndpoint']
  XPath to Error Source: //wsdl:definitions[@targetNamespace='http://tempuri.org/']/wsdl:service[@name='MyWebAppReferenceDataServiceLib']/wsdl:port[@name='MyWebAppServicesDefaultEndpoint']
  
  Source Error: 
  
  
  [No relevant source lines]
  
  
  Source File: /MyWebAppWebDev/App_WebReferences/MyWebAppService/    Line: 1 </pre>
  
  <p>I am completely stumped on this.  I have checked my web.config endpoint address and it is spot on (and notably is not in the error message above).  </p>
  
  <p>Any ideas would be welcomed.</p>
  
  <hr>
  
  <p>Things I have tried:</p>
  
  <ul>
  <li>Giving permissions to C:\Windows\temp to my Website user name</li>
  <li>Giving permissions to C:\Windows\temp to my App pool user name</li>
  <li>Checking to see that none of my data contracts are generic and have IsReference=true in them.</li>
  </ul>