Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Wed, 28 Nov 2007 11:25:32 +0200,    group: microsoft.public.dotnet.distributed_apps        back       


Problems with Adding Service Reference   
I wrote a WCF service that currently runs in a Console host with the config 
whose XML is shown below. I have tested the service and it works, i.e. it 
receives the requests and provides the reply,

I am writing a new client that utilizes the service and am trying to create 
a Service Reference. I start the service, test it to verify that it is 
running properly and then i try to add the service.
I am unable to add the service. When I enter the URL 
"tcp.net//localhost:8080/AnalysisService" or 
http://localhost:8000/AnalysisService i get an error that "This program 
cannot display the webpage"

Am I using the wrong URL? is there an error in the host config file?
thanks for any suggestion.
m



<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <system.serviceModel>
    <bindings />
    <client />
    <services>
        <service 
behaviorConfiguration="AnalysisService.AnalysisServiceBehavior" 
name="AnalysisService.ServiceAnalyze">
        <endpoint address="mex" binding="mexTcpBinding" 
bindingConfiguration="" name="MexTcpBinding" 
contract="AnalysisService.IServiceAnalyze" />
        <endpoint address="net.tcp://localhost:8080/AnalysisService" 
binding="netTcpBinding" bindingConfiguration="" 
name="AnalysisServiceTcpEndpoint" contract="AnalysisService.IServiceAnalyze" 
/>
        <host>
             <baseAddresses>
                 <add 
baseAddress="http://localhost:8000/MSOMEServiceAnalyze" />
             </baseAddresses>
        </host>
    </service>
    </services>
    <behaviors>
        <serviceBehaviors>
            <behavior name="AnalysisService.AnalysisServiceBehavior">
            <serviceMetadata httpGetEnabled="True"/>
            <serviceDebug includeExceptionDetailInFaults="False" />
            </behavior>
        </serviceBehaviors>
    </behaviors>
    </system.serviceModel>
</configuration>
date: Wed, 28 Nov 2007 11:25:32 +0200   author:   M R

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us