간단한 WCF 서비스 응용 프로그램이 있습니다 (이 자습서 기준 : Getting Started). 나는 결과를 다음 얻을재부팅하지 않고 서비스 모델 메타 데이터를 생성하는 방법
C:\kod>svcutil.exe /language:cs /out:Proxy.cs /config:app.config http://localhos t:8000/PBMB
: 내 문제는 내가 내 응용 프로그램에 기능을 추가하고 싶을 때 아래의 명령을 사용하여 Proxy.cs 파일을 다시 생성하는 것입니다. 이러한 파일을 다시 생성하려면 컴퓨터를 재부팅해야합니다. 그러나 내가 무엇인가를 바꿀 때마다 이렇게하는 것은 실망 스럽습니다. 누구든지 도울 수 있니? 결과
:이
Microsoft (R) Service Model Metadata Tool [Microsoft (R) Windows (R) Communication Foundation, Version 4.0.30319.1] Copyright (c) Microsoft Corporation. All rights reserved.
Attempting to download metadata from ' http://localhost:8000/PBMB ' using WS-Metad ata Exchange or DISCO. Error: Cannot import wsdl:portType Detail: An exception was thrown while running a WSDL import extension: System.Se rviceModel.Description.DataContractSerializerMessageContractImporter Error: Schema with target namespace ' http://PBMB ' could not be found. XPath to Error Source: //wsdl:definitions[@targetNamespace=' http://PBMB ']/wsdl:p ortType[@name='IService']
Error: Cannot import wsdl:binding Detail: There was an error importing a wsdl:portType that the wsdl:binding is de pendent on. XPath to wsdl:portType: //wsdl:definitions[@targetNamespace=' http://PBMB ']/wsdl: portType[@name='IService'] XPath to Error Source: //wsdl:definitions[@targetNamespace=' http://tempuri.org/ ' ]/wsdl:binding[@name='WSHttpBinding_IService']
Error: Cannot import wsdl:port Detail: There was an error importing a wsdl:binding that the wsdl:port is depend ent on. XPath to wsdl:binding: //wsdl:definitions[@targetNamespace=' http://tempuri.org/ ' ]/wsdl:binding[@name='WSHttpBinding_IService'] XPath to Error Source: //wsdl:definitions[@targetNamespace=' http://tempuri.org/ ' ]/wsdl:service[@name='PBMBService']/wsdl:port[@name='WSHttpBinding_IService']
Generating files... Warning: No code was generated. If you were trying to generate a client, this could be because the metadata docu ments did not contain any valid contracts or services or because all contracts/services were discovered to exist in /reference assembl ies. Verify that you passed all the metadata documents to the tool.
Warning: If you would like to generate data contracts from schemas make sure to use the /dataContractOnly option.
, IIS, CASINI? 프록시를 재생성하는 동안 오류가 발생하면 호스트 프로세스를 종료하고 다시 시작할 수 있습니까? –
나는 나의 호스트 confiuration을 모른다. 진지하게. 나는 내가 링크를 준 튜토리얼에서 모든 것을했다. 그리고 닫는 응용 프로그램은 도움이되지 않습니다. – Ichibann