![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
From: =?Utf-8?B?bWljaGFlbCBzb3JlbnM=?= <m_j_sorens (AT) newsgroup (DOT) nospam 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? |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
From: =?Utf-8?B?bWljaGFlbCBzb3JlbnM=?= <m_j_sorens (AT) newsgroup (DOT) nospam References: <031E44AF-4B54-4D6D-BD13-DD46DC602D2C (AT) microsoft (DOT) com DrC$DsiPIHA.360 (AT) TK2MSFTNGHUB02 (DOT) phx.gbl Subject: RE: Error with Getting Started Sample from WCF Date: Tue, 18 Dec 2007 11:23:01 -0800 You were wondering whether I was able to visit the service.svc (through http url) correctly; in my initial post I indicated that I was. However, I was wrong. (When least expecting it, assumptions can cause an inevitable "Arrrggghhh!". :-) What *I* meant--being a novice at web services--was that I was seeing the text of the .svc file. What *you* meant was whether I could see a web page describing the service. Given that I saw only the text of the file, the second link you provided led me to this link (http://blogs.msdn.com/wenlong/archiv...10/748294.aspx) entitled "Get Plain Text for WCF .svc Files From IIS" and a tool to clean the IIS mappings. Once I did that, I then received the correct service page when loading the .svc file, and the Getting Started code now runs successfully. |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |