Hi,
Well, I have been trying to get this first sample "Getting Started" going for a very very long time, and so far, I've been pulling my hair out just trying to figure out what is going on.
My question is, when i compile the "Getting Started sample" which is from WIndows SDK, it compiles fine, and I find client.exe but I can not find service.exe anywhere. Neither under Getting Started/service/bin folder which produces service.dll file and service.pdb nor under wwwroot/servicemodelsamples/bin directory.
I got the console based sample going but I really want this IIS based samples to work as well.
Any help would be greatly appreciated.
Thanks.

Getting Started sample not getting service.exe
MattMan73
Hi - sorry to add to the confusion :)
I was just stating that I too have found that the service implementation in the samples is not always an executable. I think it should be so that the samples are easier to run. I don't think there's any advantage to requiring IIS to host the sample - it just confuses matters and distracts from the subject of the sample.
Kent
fikry
This error occurs when the type specified in the svc file can't be found. I would check and make sure that the service.dll has been placed in \inetpub\wwwroot\ServiceModelSamples\bin.
Thanks
MahroofNM
Hiro,
You can find the "Getting Started" sample readme here[1]. Alternatively you can find the readme in the SDK which you can install from here [2]. If you haven't done so already, but sure to run Setup\CS\setupvroot.bat. This will create the virtual directories needed by web hosted samples.
Thanks.
[1] http://windowssdk.msdn.microsoft.com/en-us/library/ms751519(VS.80).aspx
[2] http://www.microsoft.com/downloads/details.aspx FamilyId=13F8E273-F5EA-4B7B-B022-97755838DB94&displaylang=en
bjquinniii
Hi,
Thanks for your reply.
I've read the pages before but my question is when you get to step three, it is blank.
After you click, property-> security, I don't know what to do there cause it's left blank.
Do you have any idea what I'm supposed to do
Right now, I got .asp file working but not .svc file at all. I get an error like
The type 'Microsoft.ServiceModel.Samples.CalculatorService', provided as the Service attribute value in the ServiceHost directive could not be found.
I think it has definitely something to do with Windows Vista which I'm currently using too.
Any help would be greatly appreciated.
Thanks.
Bruno Yu - MSFT
These links may also help.
http://windowssdk.msdn.microsoft.com/en-us/library/ms751402(VS.80).aspx
http://windowssdk.msdn.microsoft.com/en-us/library/ms751518(VS.80).aspx
Marcelo Schuck
I hope this helps:
http://windowssdk.msdn.microsoft.com/en-us/library/ms733766(VS.80).aspx
Gleydson
As I wrote before, a sample with "service.exe" can be found in Basic\Service\Hosting\SelfHost
Seems the "getting started" sample produces a dll for use with IIS.
Sushmitha
I know it's supposed to.
And it surely compiles without error, however, as I said, it doesn't produce any service.exe
as far as I can see.
So if you can spare time and see if it produces service.exe or not, that would be greatly appreciated.
O.K.
You can find a self hosted sample under
Basic\Service\Hosting\SelfHost
I agree with you this sample should be in the "getting started" folder, and not the IIS hosted one.
ftbeck
To Create a Self-Hosted Service with WCF (non-IIS), you need create a new Project for Host and Publish it then.
To host a WCF Service, you can create a Windows Service, or a Console Application or a Windows Application. Then add a reference to System.ServiceModel Assembly and host it using the ServiceHost Class. You can use a code as the following:
I Hopes that it help you.
In the WindowsSDK Documentation you can find more good examples.
Regards,
cawilde
Sorry for my very limited knowledge.
But getting started sample produces a dll for IIS, how do I run the service on IIS
I guess that's what I don't understand still. How do we run the service on IIS without .exe file
Thanks for your time and patience.
RWeinstein
Sorry, I guess I didn't make my self very clear. Please forget the console based application, I got it running.
What I really want to do it to get the "Getting Started" sample running. (I believe this one is supposed to run on IIS isn't it )
I found it under windows SDK -> technology samples -> basic -> Getting Started
And I rebuilt the project fine, but I cannot find any service.exe even though it creates client.exe
Does anyone know why and if you can find good introduction to this sample code(like what it actually is doing) please let me know.
Thanks.
JJ MAc
My opinion is that the samples should just build and run as is with no external dependencies. I think both the server and client should be executables (console, most likely) because it is too much of a pain just playing around with the samples otherwise.
I ended up just looking at the code instead of actually running it.
My $0.02,
Kent
kamala kannan
Hi, Ed
Well, thanks for the info.
I have SDK installed already and I was using the "Getting Started" sample from there.
And it compiles no problem. The problem I'm struggling with right now is that when I build the sample, I can not find the "service.exe" anywhere. Or is it the way supposed to be I can find the "client.exe" but not "service.exe" so I can not run the program.
If anyone knows what I'm talking about and know the solution, please help me out. I've been struggling with this "Getting Started" sample, and trying to figure this baby out for like 3 weeks now. Still, I have no clue where the service.exe is. Thank you so much for your time.