0

when i am trying to generate proxy manually using comand prompt i am getting this error

Setting environment for using Microsoft Visual Studio 2008 x86 tools.

C:\Program Files\Microsoft Visual Studio 9.0\VC>cd\

C:\>svcutil /language:cs /out:proxy.cs /config:app.config /http://localhost:2544
/myservicewcf/Sasi.svc
'svcutil' is not recognized as an internal or external command,
operable program or batch file.

C:\>svcutil.exe /language:cs /out:proxy.cs /config:app.config /http://localhost:
2544/myservicewcf/sasi.svc
'svcutil.exe' is not recognized as an internal or external command,
operable program or batch file.

C:\>

can u help me please

2
  • Search for svcutil.exe on your machine. Then either do a CD "path" first and then execute your command or provide the full path "path"\svcutil.exe on the command line in your current command. Usually the default location is C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin Commented Oct 6, 2010 at 10:36
  • ya i go throught the c:\progaram file but i didn't find any thing in bin Mr.InSane Commented Oct 6, 2010 at 10:46

4 Answers 4

2

Instead of starting a normal 'cmd' prompt, start 'Visual Studio 2008 Command Prompt' in your visual studio start menu items

Sign up to request clarification or add additional context in comments.

2 Comments

C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin i didn't find any thing in bin folder
Which version of VS 2008 are you using?
2

Use below statement to generate.

C:\Program Files\Microsoft Visual Studio 9.0\VC>svcutil.exe /t:code /language:cs "here your svc url" /out:urservice.cs /config:urservice.config

Comments

1

you don't need to mention the whole thing just the address of the endpoint would do the trick, like this.

  svcutil.exe http://'localhost':8080/MyService_endpoint

remove ' from commmand

Comments

1

I think the path value does not have the path value where the svcutil is available. Find the path from your system where the utility is available and use setpath command or add the path value to environment variable Path.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.