Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Indigo

Microsoft.ServiceModel.Samples stopped working in a .exe host

 
 
Thread Tools Display Modes
Old 06-05-2007   #1 (permalink)
Valentin I. Melamed
Guest


 

Microsoft.ServiceModel.Samples stopped working in a .exe host

I just started exploring the WCF and love it so far but for the past 6-7
hours got stuck with this problem: my service and going back to the MSDN
samples hosted in an .exe stopped working. The services starts with no
exceptions but I cannot connect to it - the browser and svcutil cannot find
it and sure enough netstat does not show anything listening on my port. It
used to work. I ran netsh to enable the ports, etc. - no luck. Here is my
app.config:


Code Snippet
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.serviceModel>
<services>
<service behaviorConfiguration="CalculatorServiceBehaviorDebug"
name="Microsoft.ServiceModel.Samples.CalculatorService">
<endpoint address=""
binding="wsHttpBinding"
bindingConfiguration=""
contract="Microsoft.ServiceModel.Samples.ICalculator" />
<endpoint address="mex"
binding="mexHttpBinding"
contract="IMetadataExchange" />
<host>
<baseAddresses>
<add
baseAddress="http://localhost:8910/ServiceModelSamples/service" />
</baseAddresses>
</host>
</service>
</services>
<!--For debugging purposes set the includeExceptionDetailInFaults
attribute to true-->
<behaviors>
<serviceBehaviors>
<behavior name="CalculatorServiceBehavior">
<serviceMetadata httpGetEnabled="True"/>
<serviceDebug includeExceptionDetailInFaults="False" />
</behavior>
<behavior name="CalculatorServiceBehaviorDebug">
<serviceMetadata httpGetEnabled="True"/>
<serviceDebug includeExceptionDetailInFaults="True" />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
</configuration>


And here is part of the output from netsh:



Code Snippet
Reserved URL : http://+:8910/
User: VTMELAMED\Valo
Listen: Yes
Delegate: No
SDDL: DA;;GX;;;S-1-5-...)

Reserved URL : http://+:8910/ServiceModelSamples/
User: VTMELAMED\Valo
Listen: Yes
Delegate: No
SDDL: DA;;GX;;;S-1-5-...)



My understanding is that the second entry would be unnecessary but I did it
anyway...



Can you please help?



Thank you

Val

 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Wmi providor host has stopped working and was closed Ghost466 Vista General 1 02-08-2008 05:53 PM
WMI Provider Host stopped working and was closed jj mac Vista General 8 11-30-2007 12:13 AM
HP DCS Device Host has stopped working Tim Vista print fax & scan 2 06-10-2007 03:34 AM
Host Process stopped working???? OpeXp Vista General 2 06-26-2006 04:11 PM








Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50