RE: Error opening WCF samples Application in Web Services

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



{\rtf1\ansi\ansicpg936\deff0\deflang1033\deflangfe2052{\fonttbl{\f0\fnil\fprq2\fcharset0 MS Sans Serif;}}
\viewkind4\uc1\pard\lang2052\f0\fs20 Hi Alex,
\par
\par I have checked the sample file. It seems the sample you're using is a web host sample(the WCF service is hosted in ASP.NET web application via .svc file). However, the project containing it is a class library project. That's why the service doesn't run. I have made some modification which add a new console application as the WCF service host(it reference the class library that contains the service contract and service class). The new solution has been sent to you via email. BTW, I used visual studio 2008, so you may need to convert it back if you're still using vs 2005. Anyway, if possible, I suggest you start using visual studio 2008 since it support .net 3.5 which include new features on WCF(such as web programming model ..).
\par
\par Here are some reference about how to host WCF service:
\par
\par #How to: Host a WCF Service in IIS
\par http://msdn.microsoft.com/en-us/library/ms733766.aspx
\par
\par #How to: Host a WCF Service in a Managed Application
\par http://msdn.microsoft.com/en-us/library/ms731758.aspx
\par
\par Regards,
\par
\par Steven
\par
\par \pard\li720 --------------------
\par From: =?Utf-8?B?QWxleC4gTy4gS29yYW50ZW5n?= <AlexK@xxxxxxxxxxxxxxxx>
\par Subject: Error opening WCF samples Application in Web Services
\par Date: Mon, 13 Jul 2009 05:32:01 -0700
\par
\par
\par
\par Steve,
\par I have downloaded the latest version of the sample you recommended from the
\par link
\par http://www.microsoft.com/downloads/details.aspx?FamilyID=0043041F-95D6-4EB7-
\par 966A-C21A737E193A&displaylang=en and started with the Getstarted
\par solution. I am getting the message below:
\par
\par A project with an output class library cannot be started. Any suggestions. I
\par will email you my version. If I can get this work, I can understand the
\par basics and build on it.
\par
\par Thanks
\par \pard
\par
\par }

Relevant Pages

  • WCF in a Windows Servers and a Custom Membership Provider.
    ... I want to an old Membership Provider I made some time ago to do the authentication for this WCF Service. ... I do not want to use IIS to host the WCF Service. ... I really want to be running it inside the Windows Service. ...
    (microsoft.public.dotnet.framework)
  • RE: Error opening WCF samples Application in Web Services
    ... host sample(the WCF service is hosted in ASP.NET web application via .svc ... I suggest you start using visual studio 2008 since it support ... Here are some reference about how to host WCF service: ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: WCF Windows Authentication - How to?
    ... determine the identities of clients connecting to it (ie. if I'm ... Is this or is this not WCF Web Service? ... Since I'm using netTcpBinding, I can't host it in IIS versions < 7.0, ... Is there more than one WCF service being hosted? ...
    (microsoft.public.dotnet.general)
  • How to read the incomming message header from the ServiceHostFactory
    ... My WCF service is host in the IIS server, ... Public Sub New) ... Friend Shared Sub CreateDefaultRecord() ...
    (microsoft.public.dotnet.framework)
  • Re: WCF Architecture question
    ... > computers which are connected to a central server via wireless. ... Using IIS has the following benefits: ... WCF service can take advantage of the ASP.NET's compilation model. ... Wouldn't TCP be faster? ...
    (microsoft.public.dotnet.languages.csharp)