문제

2013-05-03 2 views
-1

내 문제는 내가 내 솔루션을 실행할 때문제

다음

서비스 출력

enter image description here

모습입니다, 나는 아무 문제가 없었다이다 형성 그리고 내 링크는이

enter image description here

좋아하는 그리고 그것은 올바른

하지만이 솔루션을 배포 할 때, 내가

난 아직도 액세스하지만 출력이

enter image description here

처럼가는 수를 만든 설치 프로그램에서 설치 프로그램을 사용하여 설치 내가 그것을 그것을 이동하려고 이처럼 보이는 그것은

enter image description here

내가 그것을 어떻게 해결할 수있는 출력이 없기 때문에 그것은 옳지 않아? Visual Studio에서 실행할 때 예상되는 결과를 얻을 수 있지만 배포 할 때가 아니므로 이미 확인되었습니다.

서비스의 app.config

당신이

 <serviceBehaviors> 
      <behavior name="NewSVCBehavior0"> > 
       <serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" /> 
       <serviceDebug includeExceptionDetailInFaults="true" /> 
      </behavior> 
      </serviceBehaviors> 

그리고 대신

  <service name="WcfServiceLibrary.Service"> 

쓰기를 추가해야 <behaviors> 섹션에서

<?xml version="1.0"?> 
<configuration> 

    <configSections> 
    <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" > 
     <section name="WcfServiceLibrary.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /> 
    </sectionGroup> 
    </configSections> 
    <system.web> 
    <compilation debug="true"/> 
    </system.web> 

<startup> 
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/> 
</startup> 
    <system.serviceModel> 
    <behaviors> 
     <endpointBehaviors> 
     <behavior name="NewBehavior0"> 
      <webHttp defaultOutgoingResponseFormat="Json" /> 
     </behavior> 
     </endpointBehaviors> 
    </behaviors> 
    <services> 
     <service name="WcfServiceLibrary.Service"> 
     <endpoint address="" behaviorConfiguration="NewBehavior0" binding="webHttpBinding" 
      bindingConfiguration="" name="Basic" contract="WcfServiceLibrary.IService" /> 
     <host> 
      <baseAddresses> 
      <add baseAddress="http://PHWS13:8080/service" /> 
      </baseAddresses> 
     </host> 
     </service> 
    </services> 
    </system.serviceModel> 
</configuration> 
+0

이 서비스에 대한 web.config를 공유 할 수 있습니까? 메시지마다 서비스 동작 태그에 를 추가해야합니다. –

+0

@SandeepKumar, 업데이트 됨. – SHINHAN

+0

관리자 모드에서 winforms 응용 프로그램을 실행 해보십시오. (마우스 오른쪽 버튼으로 클릭하고 관리자 권한으로 실행) –

답변

1

  <service name="WcfServiceLibrary.Service" behaviorConfiguration="NewSVCBehavior0"> 

그리고 config에서이 변경을 시도하십시오.

+0

여전히, 액세스 할 수 없습니다 내가 배포 할 때 – SHINHAN

+0

이제 IIS에서 오른쪽 권한 문제가 될 수 있습니다. 사용중인 IIS 버전은 무엇입니까? IIS 5.2에서는 홈 디렉터리 탭에 실행 권한을 설정할 수있는 옵션이 있습니다. "스크립트 및 실행 파일"에 대한 실행 권한 설정 –

+0

iis 7의 경우 [여기] [http://technet.microsoft.com/en-us/library/cc725855(v=ws.10).aspx]에서 확인할 수 있습니다 –