wcf服务是否在命令提示符下使用svcutil.exe创建代理?

wcf服务是否在命令提示符下使用svcutil.exe创建代理?,wcf,Wcf,当我试图使用comand prompt手动生成代理时,我遇到了这个错误 设置使用Microsoft Visual Studio 2008 x86工具的环境 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'

当我试图使用comand prompt手动生成代理时,我遇到了这个错误

设置使用Microsoft Visual Studio 2008 x86工具的环境

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:\>

请帮我一下,不要启动普通的“cmd”提示符,而是在Visual Studio开始菜单项中启动“Visual Studio 2008命令提示符”

而不要启动普通的“cmd”提示符,在Visual Studio开始菜单项中启动“Visual Studio 2008命令提示符”

我认为路径值没有svcutil可用的路径值。从系统中找到实用程序可用的路径,并使用
setpath
命令或将路径值添加到环境变量path中。

我认为路径值没有svcuti可用的路径值。从系统中找到实用程序可用的路径,然后使用
setpath
命令或将路径值添加到环境变量path中。

您不需要提及全部内容,只要端点的地址就可以了,就像这样

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

remove'from commmand

您不需要提及整件事,只要端点的地址就可以了,如下所示

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

从命令中删除,使用下面的语句生成

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

使用下面的语句生成

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

在您的计算机上搜索svcutil.exe。然后,首先执行CD“path”,然后执行命令,或者在当前命令的命令行中提供完整路径“path”\svcuti.exe。通常默认位置是C:\Program Files\Microsoft SDK\Windows\v6.0A\binya我查看了C:\Program文件,但在您机器上的svcutil.exe的bin Mr.insesearch中找不到任何内容。然后,首先执行CD“path”,然后执行命令,或者在当前命令的命令行中提供完整路径“path”\svcuti.exe。通常默认位置是C:\Program Files\Microsoft SDK\Windows\v6.0A\binya我浏览了C:\Program文件,但在bin中没有找到任何内容InSec先生:\Program Files\Microsoft SDK\Windows\v6.0A\bin我在bin文件夹中没有找到任何内容您使用的是哪个版本的VS 2008?C:\Program Files\Microsoft SDK\Windows\v6.0A\bin我没有找到任何内容在bin Folder中找到任何东西您使用的是哪个版本的VS 2008?