c# - Issues in deploying wcf service library with windows forms -


my problem when run solution, had no problems

here service output looks like

enter image description here

and when make link this

enter image description here

and correct

but when deploy solution, install using setup installer created

i can still access, output goes this

enter image description here

and try navigate it, looks , not right because has no output

enter image description here

how can fix it? thought ok because when run in visual studio gives me expected output when deploy not.

service app.config

    <?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> 

in <behaviors> section need add

        <servicebehaviors>             <behavior name="newsvcbehavior0"> >                 <servicemetadata httpgetenabled="true" httpsgetenabled="true" />                 <servicedebug includeexceptiondetailinfaults="true" />             </behavior>             </servicebehaviors> 

and instead of

            <service name="wcfservicelibrary.service"> 

write

            <service name="wcfservicelibrary.service" behaviorconfiguration="newsvcbehavior0"> 

and try after change in config.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -