日期:2014-05-17  浏览次数:21037 次

怪哉!!! 什么叫做“自定义工具错误”,WHY???
今天更新引用的“WCF”服务,服务可以更新,但是更新完提示出错误信息:“自定义工具错误”。

错误 197
自定义工具错误: 无法生成服务引用“MyChartsService”的代码。请检查其他错误和警告信息,了解详细信息。
C:\Users\Administrator\Desktop\Tj2.0\MyCharts\Service References\MyChartsService\Reference.svcmap
1 1 MyCharts

问题:WCF更新成功,但是生成代理类的时候报错了,WHY???


“Reference.svcmap”文件如下:

<?xml version="1.0" encoding="utf-8"?>
<ReferenceGroup xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ID="9b4f0e3c-198c-4c4e-84c7-ebfc160a8707" xmlns="urn:schemas-microsoft-com:xml-wcfservicemap">
  <ClientOptions>
  <GenerateAsynchronousMethods>true</GenerateAsynchronousMethods>
  <EnableDataBinding>true</EnableDataBinding>
  <ExcludedTypes />
  <ImportXmlTypes>false</ImportXmlTypes>
  <GenerateInternalTypes>false</GenerateInternalTypes>
  <GenerateMessageContracts>false</GenerateMessageContracts>
  <NamespaceMappings />
  <CollectionMappings>
  <CollectionMapping TypeName="System.Collections.ObjectModel.ObservableCollection`1" Category="List" />
  </CollectionMappings>
  <GenerateSerializableTypes>false</GenerateSerializableTypes>
  <Serializer>Auto</Serializer>
  <UseSerializerForFaults>true</UseSerializerForFaults>
  <ReferenceAllAssemblies>true</ReferenceAllAssemblies>
  <ReferencedAssemblies />
  <ReferencedDataContractTypes />
  <ServiceContractMappings />
  </ClientOptions>
  <MetadataSources>
  <MetadataSource Address="http://localhost:29787/Mycems.UI/ChartsService.svc" Protocol="http" SourceId="1" />
  </MetadataSources>
  <Metadata>
  <MetadataFile FileName="ChartsService.xsd" MetadataType="Schema" ID="8274890b-ec00-48aa-acbf-00804b117a72" SourceId="1" SourceUrl="http://localhost:29787/Mycems.UI/ChartsService.svc?xsd=xsd3" />
  <MetadataFile FileName="ChartsService.wsdl" MetadataType="Wsdl" ID="c4fed84a-e116-46dc-b3e1-1215d11744d7" SourceId="1" SourceUrl="http://localhost:29787/Mycems.UI/ChartsService.svc?wsdl=wsdl0" />
  <MetadataFile FileName="ChartsService1.xsd" MetadataType="Schema" ID="96c677e3-1a7b-4dde-bf91-346a5195c839" SourceId="1" SourceUrl="http://localhost:29787/Mycems.UI/ChartsService.svc?xsd=xsd1" />
  <MetadataFile FileName="ChartsService.disco" MetadataType="Disco" ID="20ca4bb2-bf9f-4da6-838a-8f2e5fc010ad" SourceId="1" SourceUrl="http://localhost:29787/Mycems.UI/ChartsService.svc?disco" />
  <MetadataFile FileName="ChartsService2.xsd" MetadataType="Schema" ID="9c7784c8-9d42-4fe8-8d81-f0c1b085d88f" SourceId="1" SourceUrl="http://localhost:29787/Mycems.UI/ChartsService.svc?xsd=xsd0" />
  <MetadataFile FileName="ChartsService3.xsd" MetadataType="Schema" ID="1a4f7235-19df-42ff-9645-bc232522dbaf" SourceId="1" SourceUrl="http://localhost:29787/Mycems.UI/ChartsService.svc?xsd=xsd2" />
  <MetadataFile FileName="ChartsService4.xsd" MetadataType="Schema" ID="90c8f036-18fa-4a6b-ab