CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8

Threaded View

  1. #3
    Join Date
    May 2002
    Posts
    1,798

    Re: WCF Service Tutorial question

    OK. Just pasted the path in a new User Environment variable. But still have a problem with VISTA.

    Ran the Microsoft Visual Studio 2008 tool Command Prompt as 'Administrator' (with Administrator privileges). But something is amiss.

    Code:
    C:\Users\mbpliam\Documents\Visual Studio 2008\Projects\SERVICES\Service\Client>s
    vcutil.exe /language:cs /out:generatedProxy.cs /config:app.config http://localho
    st:8000/ServiceModelSamples/service
    Microsoft (R) Service Model Metadata Tool
    [Microsoft (R) Windows (R) Communication Foundation, Version 3.0.4506.648]
    Copyright (c) Microsoft Corporation.  All rights reserved.
    
    Attempting to download metadata from 'http://localhost:8000/ServiceModelSamples/
    service' using WS-Metadata Exchange or DISCO.
    Microsoft (R) Service Model Metadata Tool
    [Microsoft (R) Windows (R) Communication Foundation, Version 3.0.4506.648]
    Copyright (c) Microsoft Corporation.  All rights reserved.
    
    Error: Cannot obtain Metadata from http://localhost:8000/ServiceModelSamples/ser
    vice
    
    If this is a Windows (R) Communication Foundation service to which you have acce
    ss, please check that you have enabled metadata publishing at the specified addr
    ess.  For help enabling metadata publishing, please refer to the MSDN documentat
    ion at http://go.microsoft.com/fwlink/?LinkId=65455.
    
    
    WS-Metadata Exchange Error
        URI: http://localhost:8000/ServiceModelSamples/service
    
        Metadata contains a reference that cannot be resolved: 'http://localhost:800
    0/ServiceModelSamples/service'.
    
        Could not connect to http://localhost:8000/ServiceModelSamples/service. TCP
    error code 10061: No connection could be made because the target machine activel
    y refused it 127.0.0.1:8000.
    
        Unable to connect to the remote server
    
        No connection could be made because the target machine actively refused it 1
    27.0.0.1:8000
    
    
    HTTP GET Error
        URI: http://localhost:8000/ServiceModelSamples/service
    
        There was an error downloading 'http://localhost:8000/ServiceModelSamples/se
    rvice'.
    
        Unable to connect to the remote server
    
        No connection could be made because the target machine actively refused it 1
    27.0.0.1:8000
    
    If you would like more help, type "svcutil /?"
    
    C:\Users\mbpliam\Documents\Visual Studio 2008\Projects\SERVICES\Service\Client>
    Any idea what I have done wrong?

    Edit: Sorry! I forgot that I had to run the service before attempting to use svcutil.exe. Of course, everything has to be Run as Administrator on VISTA. Then it worked just as M$ said it would. Looks like this whent it works, and generates an app.config and generatedProxy.cs files

    Code:
    C:\Users\mbpliam\Documents\Visual Studio 2008\Projects\SERVICES\Service\Client>s
    vcutil.exe /language:cs /out:generatedProxy.cs /config:app.config http://localho
    st:8000/ServiceModelSamples/service
    Microsoft (R) Service Model Metadata Tool
    [Microsoft (R) Windows (R) Communication Foundation, Version 3.0.4506.648]
    Copyright (c) Microsoft Corporation.  All rights reserved.
    
    Attempting to download metadata from 'http://localhost:8000/ServiceModelSamples/
    service' using WS-Metadata Exchange or DISCO.
    Generating files...
    C:\Users\mbpliam\Documents\Visual Studio 2008\Projects\SERVICES\Service\Client\g
    eneratedProxy.cs
    C:\Users\mbpliam\Documents\Visual Studio 2008\Projects\SERVICES\Service\Client\a
    pp.config
    I only post all this here in case it might help some others because there are alot of negative Community Responses on this tutorial (which is actually quite good provided one reads it carefully and follows the instructions).
    Last edited by Mike Pliam; February 25th, 2010 at 02:22 PM. Reason: OOOPS
    mpliam

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured