Windows Vista Forums

Error when add reference of the WCF service

  1. #1


    Poonam Guest

    Error when add reference of the WCF service

    Hi,

    I am new to the WCF and i was trying to do "Hello world" sample.
    but i m getting error when i add the reference of my WCF service to another
    project.
    Error is like that -

    The document was understood, but it could not be processed.
    - The WSDL document contains links that could not be resolved.
    - There was an error downloading
    'http://Mytech/TestService/Service.svc?xsd=xsd0'.
    - The request failed with HTTP status 504: Proxy Timeout ( The connection
    timed out. ).

    Can anyone please help me to solve this error?

      My System SpecsSystem Spec

  2. #2


    Chris Mullins [MVP - C#] Guest

    Re: Error when add reference of the WCF service

    There seem to be a few common issues, that I keep running into that cause
    this:

    Issue #0 - You forgot to run the setup script for the samples. These scripts
    are in:
    [...]\TechnologySamples\Setup\[CS]|[VB]

    Issue #1 - ASP.Net 2.0.x isn't installed correctly. Fix this with
    "aspnet_regiis /i".

    Issue #2 - the SVC file type isn't properly mapped. Fix this (in IIS5 /
    WinXP) by:
    - Pull up the IIS Admin tool
    - right click on your web site, and go to properties
    - Go to "Home Directory" tab and select "Configuration"
    - In the Mappings tab that comes up, look for ".svc". It's probably not
    there.
    - "Add".
    - the Executable is,
    C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll
    - the verbs are: GET,HEAD,POST,DEBUG
    - I leave everything else as it's default.
    - Restart IIS (probably not needed, to be honest).

    Issue #3 - Permission
    - the ASPNET account needs rights on your directory. Grant that account
    rights to your stuff.
    - I would never recommend adding the "administrator" group to the ASPNET
    account (especially on a dev box!) but if you were to do this, there's a
    good chance it'll work.

    --
    Chris Mullins

    "Poonam" <Poonam@xxxxxx> wrote in message
    news:4A26DC24-936C-47DE-9ED3-F3BE7C1F73AB@xxxxxx

    > Hi,
    >
    > I am new to the WCF and i was trying to do "Hello world" sample.
    > but i m getting error when i add the reference of my WCF service to
    > another
    > project.
    > Error is like that -
    >
    > The document was understood, but it could not be processed.
    > - The WSDL document contains links that could not be resolved.
    > - There was an error downloading
    > 'http://Mytech/TestService/Service.svc?xsd=xsd0'.
    > - The request failed with HTTP status 504: Proxy Timeout ( The connection
    > timed out. ).
    >
    > Can anyone please help me to solve this error?
    >

      My System SpecsSystem Spec

Error when add reference of the WCF service

Similar Threads
Thread Forum
Error when loading .DLL as a reference
It seems that I'll need to call S-PLUS functions from my C#.NET code. I've learned that it's only possible to call S-PLUS from C++. However,...
.NET General
vs2008 Add Service Reference generates Reference.cs which wont com
I have tried several times to build the simplest WCF service lib in VS2008 - out of a dozen tries, the built in tools have worked once. 1. In...
Indigo
VS2005 Add Service Reference doesn't create correct proxy security config
Hello, I am trying to create a WCF host/client combination using mixed security with UserName authentication. Everything looks good on the...
Indigo
Inconsistent results with Add Service Reference
I have a contract method that returns a generic list IList<string> Operation3(Guid myGuid); When I run Add Service Reference to a winforms...
Indigo
Returning an interface reference from a service method
Hi, I am trying to write a WCF service where one of the methods is returning an interface type. This method call however fails. If I change the...
Indigo
WCF: How to reference a service that runs in the same process?
Hi, I'm building a service that can act both client and server (two servers can communicate each others). How can I set my project in order to...
Indigo
The option ' Add Service Reference' doesn't appears in the context menu of web projects.
Hi Why the option ' Add Service Reference' doesn't appears in the context menu of web projects? In other kinds of projects like classlibrray o...
Indigo