2011-05-10 3 views
7

간단한 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.

+0

, IIS, CASINI? 프록시를 재생성하는 동안 오류가 발생하면 호스트 프로세스를 종료하고 다시 시작할 수 있습니까? –

+0

나는 나의 호스트 confiuration을 모른다. 진지하게. 나는 내가 링크를 준 튜토리얼에서 모든 것을했다. 그리고 닫는 응용 프로그램은 도움이되지 않습니다. – Ichibann

답변

3

(면책 조항, 나는 더가있어이 분야의 전문가를 의미하지만 호기심과 약간의 주위 봤있어)

이 가능인가요 계정에서 서비스를 변경하고 다시 시작할 때 서비스가 실행 중인지 여부 컴퓨터를 시작할 때 기본적으로 IIS에서 실행되지만 수정하면 카시니 또는 그와 비슷한 것으로 시작됩니까?

this blog post에 따르면 WCF 서비스는 동적 코드 생성을 수행하고 저장할 위치가 필요하기 때문에 임시 폴더에 대한 쓰기 권한이 있어야합니다.

생각해 볼 가치가있는 것.

더 자세히 :

관련 문제