c# - Named Pipes Binding Working in Windows Service, but BasicHttp Binding Failing -
i trying build windows service hosted wcf service http , named pipes endpoints. when have configured use named pipes, working fine, when try configure use http binding compiles , installs, when try start service, stops immediately, , can't find error message in event viewer.
this app.config file. config in comments works, config without comments doesn't.
<?xml version="1.0" encoding="utf-8" ?> <configuration> <system.web> <compilation debug="true" /> </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> <services> <service name="nogginwcf.nogginwcfsvc"> <endpoint address="" binding="basichttpbinding" bindingconfiguration="" name="basichttp" bindingname="basichttp" contract="nogginwcf.inogginwcfsvc" /> <endpoint address="mex" binding="mexhttpbinding" bindingconfiguration="" name="httpmex" bindingname="httpmex" contract="imetadataexchange" /> <!--<endpoint address="" binding="netnamedpipebinding" bindingconfiguration="" name="namedpipes" bindingname="namedpipes" contract="nogginwcf.inogginwcfsvc" /> <endpoint address="mex" binding="mexnamedpipebinding" bindingconfiguration="" name="namedpipesmex" bindingname="namedpipesmex" contract="imetadataexchange" />--> <host> <baseaddresses> <!--<add baseaddress="net.pipe://localhost/nogginpipesservice" />--> <add baseaddress="http://localhost:8000/nogginhttpservice" /> </baseaddresses> </host> </service> </services> <behaviors> <servicebehaviors> <behavior name=""> <servicemetadata httpgetenabled="false" /> <servicedebug includeexceptiondetailinfaults="false" /> </behavior> </servicebehaviors> </behaviors> </system.servicemodel> </configuration> this msdn tutorial demonstrates hosting http endpoint using windows service, , think config looks correct.
any suggestions on how proceed welcome.
it turns out answer account service running under. having followed (different) tutorial running named pipes endpoint in windows service, service installed running networkservice service account, needs running under localsystem account work correctly. tim suggestion.
Comments
Post a Comment