Windows Vista Forums
Vista Forums Home Join Vista Forums Webcasts Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Indigo

WCF Samples not working: McMurtry's Book

Update your Vista Drivers Update Your Drivers Now!!
 
 
Thread Tools Display Modes
Old 07-13-2006   #1 (permalink)
Craig Berntson
Guest


 

WCF Samples not working: McMurtry's Book

I just picked up Craig McMurtry's book on WCF and am working through Chapter
2. I have the updated code for WCF Beta 2 from his web site and so far I've
been able to get things to work. However, one thing has me stumped and I
can't move on. I'm stuck on p. 42 (for those that have the book).

In the sample code, a simple WCF service is written and called from a
console application. The service doesn't actually do anything and the
console app simply displays a message that the service is available. The
next step has you bring up the service in a web browser, which simply
displays the the test service page. You're then supposed to be able to
display the WSDL. These last two steps don't work. I get a message that the
page can't be found.

I'm assuming that something has changed between the book being written and
beta 2, but darned if I know what it is. Any suggestions on what I can do to
get this working?

--
Craig Berntson
MCSD, Visual FoxPro MVP
www.craigberntson.com
Salt Lake City Fox User Group
www.slcfox.org
www.foxcentral.net




My System SpecsSystem Spec
Old 07-13-2006   #2 (permalink)
=?Utf-8?B?QW5pbGt1bWFyIFZL?=
Guest


 

RE: WCF Samples not working: McMurtry's Book

Hi Craig,

I donot have access to this book, but can you tell me as to what the error
that you are seeing.? Also probably you can check if you have done the
following.
1. Build your WCF service class library project into the \WCFServiceProj\bin
folder.
2. In IIS, point to the \WCFServiceProj folder and create the virtual
directory.
3. Give Execute permission to this Virtual Dir.
4. Add the .svc dile in the \WCFServiceProj folder with the foll. code.
<%@ServiceHost language=c# Debug="true" Service="NameSpace.ServiceClassName"
%>
<%@Assembly Name="AssemblyName" %>

You should be able to view the service test screen, assuming that the
attributes and namespaces used are as per the Beta 2 changes.

Anil

"Craig Berntson" wrote:

> I just picked up Craig McMurtry's book on WCF and am working through Chapter
> 2. I have the updated code for WCF Beta 2 from his web site and so far I've
> been able to get things to work. However, one thing has me stumped and I
> can't move on. I'm stuck on p. 42 (for those that have the book).
>
> In the sample code, a simple WCF service is written and called from a
> console application. The service doesn't actually do anything and the
> console app simply displays a message that the service is available. The
> next step has you bring up the service in a web browser, which simply
> displays the the test service page. You're then supposed to be able to
> display the WSDL. These last two steps don't work. I get a message that the
> page can't be found.
>
> I'm assuming that something has changed between the book being written and
> beta 2, but darned if I know what it is. Any suggestions on what I can do to
> get this working?
>
> --
> Craig Berntson
> MCSD, Visual FoxPro MVP
> www.craigberntson.com
> Salt Lake City Fox User Group
> www.slcfox.org
> www.foxcentral.net
>
>
>
>

My System SpecsSystem Spec
Old 07-14-2006   #3 (permalink)
Craig Berntson
Guest


 

Re: WCF Samples not working: McMurtry's Book

The error is basically a 404...page not found.

I got it working...I found there was already a Virtual Directory setup for
the service. I needed to run the Console Hosting application.

--
Craig Berntson
MCSD, Visual FoxPro MVP
www.craigberntson.com
Salt Lake City Fox User Group
www.slcfox.org
www.foxcentral.net


"Anilkumar VK" <Anilkumar VK@discussions.microsoft.com> wrote in message
news:83CE62F9-2E13-4B07-8809-3864E080F7A6@microsoft.com...
> Hi Craig,
>
> I donot have access to this book, but can you tell me as to what the error
> that you are seeing.? Also probably you can check if you have done the
> following.
> 1. Build your WCF service class library project into the
> \WCFServiceProj\bin
> folder.
> 2. In IIS, point to the \WCFServiceProj folder and create the virtual
> directory.
> 3. Give Execute permission to this Virtual Dir.
> 4. Add the .svc dile in the \WCFServiceProj folder with the foll. code.
> <%@ServiceHost language=c# Debug="true"
> Service="NameSpace.ServiceClassName"
> %>
> <%@Assembly Name="AssemblyName" %>
>
> You should be able to view the service test screen, assuming that the
> attributes and namespaces used are as per the Beta 2 changes.
>
> Anil
>
> "Craig Berntson" wrote:
>
>> I just picked up Craig McMurtry's book on WCF and am working through
>> Chapter
>> 2. I have the updated code for WCF Beta 2 from his web site and so far
>> I've
>> been able to get things to work. However, one thing has me stumped and I
>> can't move on. I'm stuck on p. 42 (for those that have the book).
>>
>> In the sample code, a simple WCF service is written and called from a
>> console application. The service doesn't actually do anything and the
>> console app simply displays a message that the service is available. The
>> next step has you bring up the service in a web browser, which simply
>> displays the the test service page. You're then supposed to be able to
>> display the WSDL. These last two steps don't work. I get a message that
>> the
>> page can't be found.
>>
>> I'm assuming that something has changed between the book being written
>> and
>> beta 2, but darned if I know what it is. Any suggestions on what I can do
>> to
>> get this working?
>>
>> --
>> Craig Berntson
>> MCSD, Visual FoxPro MVP
>> www.craigberntson.com
>> Salt Lake City Fox User Group
>> www.slcfox.org
>> www.foxcentral.net
>>
>>
>>
>>



My System SpecsSystem Spec
 

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
SMO samples with vbscript Carlos Felipe França da Fonseca VB Script 3 08-12-2008 06:55 PM
font samples BethAnn Vista General 2 03-19-2008 08:35 AM
3D samples update to Feb CTP TheRHogue Avalon 0 02-23-2006 12:18 AM
SDK Samples? Shawn Wildermuth Avalon 1 01-31-2006 06:59 AM


Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51