|
-
February 24th, 2010, 10:01 PM
#1
WCF Service Tutorial question
Trying to enhance my skills, I tried to build a WCF Service following the steps of the tutorial provided by M$:
http://msdn.microsoft.com/en-us/library/ms733133.aspx
All seemed to go well up until the time that I was supposed to use svcutil.exe tool. Using the command prompt that M$ provided
Code:
svcutil.exe /language:cs /out:generatedProxy.cs /config:app.config http://localhost:8000/ServiceModelSamples/service
which is supposed to generate the proxy code for the client, I instead received one of my old favorites:
Code:
'svcutil.exe' is not recognized as an internal or external command,
operable program or batch file.
A search of my VS 2008 directories failed to find svcutil.exe. Little wonder it didnt work. But it should be there somewhere, shouldnt it?
Any clues would be helpful. 
Edit: Well, I found it. It was right where M$ said it would be.
http://msdn.microsoft.com/en-us/library/aa347733.aspx
Question now is (and it's an old one for me): How do I set the path so that from a command prompt anywhere in the directory system, the OS will know how to find svcutil.exe ? (Or any other thing I wish to 'add to the path' for that matter. I'm ashamed to admit it, but I've always wondered how to do that.)
Edit: OK. I found out how to access Environment Variables in VISTA. There are two ways to do this.
The easy way:
1.Click Start and choose Control Panel
2.In the Search box on the top right of the window type “system path” (no quotes)
3.Click “Edit the system environment variables”
4.Begin at step 4 below.
The hard way:
1.Click Start and choose Control Panel
2.Click System, on the right you’ll see “View basic information about your computer”
3.On the left is a list of tasks, the last of which is “Advanced system settings.” Click that.
4.The Advanced tab of the System Properties dialog box is shown. Click the Environment Variables button on the bottom right.
5.In the lower box titled “System Variables” scroll down to Path and click the Edit button.
6.Change your path as need be.
7.Restart your system. Vista didn’t pick up the system path environment variable change until I restarted.
THEN WHAT ? How do you actually add a target directory or app? I need an example.
Last edited by Mike Pliam; February 25th, 2010 at 02:38 AM.
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|