RE: Error with Getting Started Sample from WCF



Hi michael,

From your description, I understand that you encountered the following
error when try running the WCF "Getting started" sample, correct?

"(405) method not allowed".

As for the "getting started" sample, it has two projects, a client console
application and a service application. I thinik the problem you met is
likely due to the service appliction. The service application is a class
library project, and it contains a WCF service class(with contract) and
service.svc and web.config files. This means it is supposed to be hosted in
IIS. So my first question is whether you've successfully deploy the service
application into IIS? A simple way is "Web Share" the "service" project
folder(give IIS worker process account access permission to the folder) and
make sure the virtual directory is mark as "application" and set to ASP.NET
version 2.0. also, to test it, you can try visiting the service.svc file
in browser(through its IIS http:// based url ) to see whether you can
correctly see the service description page.

If you haven't done the above, you need to do it first. You can have a look
at the following reference:

#How to: Host a WCF Service in IIS
http://msdn2.microsoft.com/en-us/library/ms733766.aspx

http://msdn2.microsoft.com/en-us/library/aa751792.aspx

here is a more visual one:

#Hosting WCF Service in IIS
http://blogs.msdn.com/amitlale/archive/2007/05/21/hosting-wcf-service-in-iis
..aspx

If you've deployed the service correctly and can visit the service.svc
(through http url) correctly. We may look for something else. Here are some
web threads I've found on web mentioned some similar issues. You may also
have a look to see whether they help some.

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=136775&SiteID=1

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=747078&SiteID=1

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead



==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.



Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.

==================================================


This posting is provided "AS IS" with no warranties, and confers no rights.







--------------------
From: =?Utf-8?B?bWljaGFlbCBzb3JlbnM=?= <m_j_sorens@xxxxxxxxxxxxxxxx>
Subject: Error with Getting Started Sample from WCF
Date: Thu, 13 Dec 2007 13:36:04 -0800

I am a newbie to WCF. According to the Getting Started Sample
(http://msdn2.microsoft.com/en-us/library/ms751519.aspx) I loaded and
bebuilt
the GettingStarted solution from the WCF samples collection and attempted
to
execute it. Upon executing the client code, I get an error "(405) method
not
allowed".

Since I did not write or change any code, I presume there is something in
my
environment I did not set up correctly. I observe that if I load this URL
--
http://localhost/servicemodelsamples/service.svc --
it does access the service.svc file. What are appropriate steps to
diagnose
this?



.



Relevant Pages

  • Re: Howto refresh IIS 6 Application pool identity credential info
    ... As soon as a new request to the corresponding web site which the AppPool ... IIS W3SVC service will then start up a new worker ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.inetserver.iis.security)
  • RE: problem with httpmodule
    ... Are you using IIS 6 or any newer version of IIS? ... Microsoft MSDN Online Support Lead ... nature are best handled working with a dedicated Microsoft Support Engineer ... public void Init ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: Reporting Services on x64
    ... does that mean that IIS will never be able to benefit from the ... use reporting services configuration manager to configure: ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.sqlserver.setup)
  • RE: Problem with SQL trusted connection.
    ... you could still configure Windows authentication in IIS 7 ... use in IIS6: ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.sqlserver.security)
  • RE: Progress bar for web service?
    ... \par From your description, you have some large objects that will be transfered in WCF service, and you're wondering how to monitor the transfer progress of such storng-typed objects without using streaming based transfer model, correct? ... \par Microsoft MSDN Online Support Lead ... \par where an initial response from the community or a Microsoft Support ... Progress bar for web service? ...
    (microsoft.public.dotnet.framework.webservices)