2012-07-19 2 views
0

저는 WCF를 완전히 처음 접했고 이러한 함수를 만들었습니다. 내 로컬 호스트에 완벽하게 작동하지만, IIS에 넣은 후에 errormessage 405 "메서드가 허용되지 않음"을 사용하려고합니다.WCF 메서드가 허용되지 않습니다.

[ServiceContract] 
    public interface IService1 
    { 
     [WebInvoke(Method = "GET")] 
     [OperationContract] 
     string EncryptZonderPaswoord(string tekst); 

     [WebInvoke(Method = "GET")] 
     [OperationContract] 
     string EncryptMetPaswoord(string tekst, string paswoord); 

     [WebInvoke(Method = "GET")] 
     [OperationContract] 
     string DecryptZonderPaswoord(string tekst); 

     [WebInvoke(Method = "GET")] 
     [OperationContract] 
     string DecryptMetPaswoord(string tekst, string paswoord); 
    } 

...

누구 아이디어? IIS에서 설정해야하는 추가 속성이 있습니까?

답변

0

나는 내 문제를 해결했습니다.

  • 는 IIS의 .NET 프레임 워크 서버 측에서
  • 레지스터 프레임 워크 4.0 서버 측
  • 를 WCF를 설치 : 대신 기본 풀의 .NET 4 풀에 내 응용 프로그램을 추가 이 내가해야 할 일을했을 것입니다 .
관련 문제