Question

I have developed a WCF application in .net framework 3.5. The application is working fine but when I deploy it in iis it is giving blank when I have tried to access the webservice using the url

http://mysite:8086/VpoService.svc

my configuration file is like this.

  <system.serviceModel>
    <behaviors>
      <serviceBehaviors>
        <behavior name="VpoService.VpoServiceTypeBehavior">
          <serviceMetadata httpGetEnabled="true" />
          <serviceDebug includeExceptionDetailInFaults="false" />
        </behavior>
      </serviceBehaviors>
    </behaviors>
    <services>
      <service behaviorConfiguration="VpoService.VpoServiceTypeBehavior"
        name="VpoService.VpoServiceType">
        <endpoint address="" binding="wsHttpBinding" contract="VpoService.IVpoService">
          <identity>
            <dns value="localhost" />
          </identity>
        </endpoint>
        <!--<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />-->
      </service>
    </services>
  </system.serviceModel>

No correct solution

OTHER TIPS

Try modifying your <endpoint>

<host>
      <baseAddresses>
        <add baseAddress="http://MachineIP/VpoService.svc" />
      </baseAddresses>
</host>

It worked for me

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top