• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Error when add reference of the WCF service

P

Poonam

#1
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 Computer

C

Chris Mullins [MVP - C#]

#2
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 Computer