c# - Windows service endpoint naming and configuration -


i can't seem figure out how change default endpoint c# windows service. need have sort of path in there service name? not getting errors , service runs, i'm unable navigate service. when use default path of project works fine.

here's app.config:

<?xml version="1.0" encoding="utf-8"?> <configuration>    <startup>     <supportedruntime version="v4.0" sku=".netframework,version=v4.5" />   </startup>    <appsettings>     <add key="aspnet:usetaskfriendlysynchronizationcontext" value="true" />     <add key="clientsettingsprovider.serviceuri" value="" />     <add key="baseaddress" value="http://192.168.1.23:8733/gpservice/" />   </appsettings>    <system.web>     <compilation debug="true" />     <membership defaultprovider="clientauthenticationmembershipprovider">       <providers>         <add name="clientauthenticationmembershipprovider" type="system.web.clientservices.providers.clientformsauthenticationmembershipprovider, system.web.extensions, version=4.0.0.0, culture=neutral, publickeytoken=31bf3856ad364e34" serviceuri="" />       </providers>     </membership>     <rolemanager defaultprovider="clientroleprovider" enabled="true">       <providers>         <add name="clientroleprovider" type="system.web.clientservices.providers.clientroleprovider, system.web.extensions, version=4.0.0.0, culture=neutral, publickeytoken=31bf3856ad364e34" serviceuri="" cachetimeout="86400" />       </providers>     </rolemanager>   </system.web>    <!-- when deploying service library project, content of config file must added host's      app.config file. system.configuration not support config files libraries. -->   <system.servicemodel>     <bindings>       <wshttpbinding>         <binding name="gpwebservice" closetimeout="00:01:00" opentimeout="00:01:00" receivetimeout="00:10:00" sendtimeout="00:01:00" bypassproxyonlocal="false" transactionflow="false" hostnamecomparisonmode="strongwildcard" maxbufferpoolsize="2147483647" maxreceivedmessagesize="2147483647" messageencoding="text" textencoding="utf-8" usedefaultwebproxy="true" allowcookies="false">           <readerquotas maxdepth="32" maxstringcontentlength="8192" maxarraylength="16384" maxbytesperread="4096" maxnametablecharcount="2147483647" />           <reliablesession ordered="true" inactivitytimeout="00:10:00" enabled="false" />           <security mode="message">             <transport clientcredentialtype="windows" proxycredentialtype="none" realm="" />             <message clientcredentialtype="windows" negotiateservicecredential="true" algorithmsuite="default" establishsecuritycontext="true" />           </security>         </binding>       </wshttpbinding>     </bindings>      <client>       <endpoint address="http://testserver:48620/dynamics/gpservice/gpservice" binding="wshttpbinding" bindingconfiguration="gpwebservice" contract="dynamicsgpservice.dynamicsgp" name="gpwebservice">         <identity>           <userprincipalname value="user@testdomain.com" />         </identity>       </endpoint>     </client>      <services>       <service name="wcfgpservicelibrary.gpservice">         <host>           <baseaddresses>             <add baseaddress="http://192.168.1.23:8733/gpservice/" />           </baseaddresses>         </host>         <endpoint address=""                    binding="wshttpbinding"                    contract="wcfgpservicelibrary.igpservice">           <identity>             <dns value="192.168.1.23" />           </identity>         </endpoint>       </service>     </services>      <behaviors>       <servicebehaviors>         <behavior>           <!-- avoid disclosing metadata information,              set values below false before deployment -->           <servicemetadata httpgetenabled="true" httpsgetenabled="true" />           <!-- receive exception details in faults debugging purposes,              set value below true.  set false before deployment              avoid disclosing exception information -->           <servicedebug includeexceptiondetailinfaults="true" />         </behavior>       </servicebehaviors>     </behaviors>    </system.servicemodel> </configuration> 


Comments

Popular posts from this blog

Why can rails not find a route created by a helper? -

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -