RE: Error with Getting Started Sample from WCF
- From: stcheng@xxxxxxxxxxxxxxxxxxxx (Steven Cheng[MSFT])
- Date: Fri, 14 Dec 2007 08:26:09 GMT
Hi michael,
From your description, I understand that you encountered the followingerror 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>bebuilt
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
the GettingStarted solution from the WCF samples collection and attemptedto
execute it. Upon executing the client code, I get an error "(405) methodnot
allowed".my
Since I did not write or change any code, I presume there is something in
environment I did not set up correctly. I observe that if I load this URL--
http://localhost/servicemodelsamples/service.svc --diagnose
it does access the service.svc file. What are appropriate steps to
this?
.
- Prev by Date: WCF UDP transport
- Next by Date: mike lalonde
- Previous by thread: WCF UDP transport
- Next by thread: RE: Error with Getting Started Sample from WCF
- Index(es):
Relevant Pages
|