tag:support.appharbor.com,2010-11-23:/discussions/problems/603-deploy-a-wcf-web-api-is-it-possibleAppHarbor: Discussion 2011-09-06T07:14:16Ztag:support.appharbor.com,2010-11-23:Comment/75465612011-05-30T23:13:49Z2011-05-30T23:13:49ZDeploy a WCF Web API, is it possible?<div><p>AppHarbor can host WCF services. Could you provide example urls
that fail? Also, please invite support(a)appharbor.com as a
collaborator so that we can take a look.</p></div>friismtag:support.appharbor.com,2010-11-23:Comment/75465612011-05-31T05:37:50Z2011-05-31T05:37:50ZDeploy a WCF Web API, is it possible?<div><p>I've invited support as a collaborator.</p>
<p>It's not a standard WCF service, it is the new version as in
this blog: <a href=
"http://geekswithblogs.net/michelotti/archive/2011/04/21/wcf-web-api-is-pure-simplicity-with-nuget.aspx">
http://geekswithblogs.net/michelotti/archive/2011/04/21/wcf-web-api...</a>.
But that shouldn't be any problem since it is still running .NET4
and all the dll's are copy local.</p>
<p>Is there an easy way for me to debug what is going on? Can I see
any of the logs?</p></div>mastojtag:support.appharbor.com,2010-11-23:Comment/75465612011-05-31T09:19:25Z2011-05-31T09:19:25ZDeploy a WCF Web API, is it possible?<div><p>We generally log exceptions and make them available in under
"Errors" in the application interface. 404-errors are not logged
here however.</p>
<p>I'm attaching a screenshot of the error. There seems to be a
problem with the route registration, since the handler is
<code>StaticFile</code>. I've tried replacing your App_Start code
with a more traditional Global.asax, to no avail.</p>
<p>It might make sense to post this question on StackOverflow,
since hosting WCF Web Api services is of general interest, and just
to get some more eyes on it.</p></div>friismtag:support.appharbor.com,2010-11-23:Comment/75465612011-05-31T10:18:04Z2011-05-31T10:18:04ZDeploy a WCF Web API, is it possible?<div><p>Posted it on Stackoverflow: <a href=
"http://stackoverflow.com/questions/6186090/hosting-a-wcf-web-api-app-on-appharbor">
http://stackoverflow.com/questions/6186090/hosting-a-wcf-web-api-ap...</a></p>
<p>If you have any more information please provide it there.</p></div>mastojtag:support.appharbor.com,2010-11-23:Comment/75465612011-05-31T10:40:52Z2011-05-31T10:40:52ZDeploy a WCF Web API, is it possible?<div><p>I'm wondering if this is configured: <a href=
"http://geekswithblogs.net/michelotti/archive/2011/05/28/resolve-404-in-iis-express-for-put-and-delete-verbs.aspx">
http://geekswithblogs.net/michelotti/archive/2011/05/28/resolve-404...</a></p>
<p>Maybe you haven't ExtensionlessUrlHandler-Integrated-4.0 setup
at all? Just a thought. I have mine to handle
GET,HEAD,POST,DEBUG,PUT,DELETE locally.</p></div>mastojtag:support.appharbor.com,2010-11-23:Comment/75465612011-05-31T10:43:53Z2011-05-31T10:43:53ZDeploy a WCF Web API, is it possible?<div><p>I really think that might be the issue. I updated my local IIS
and set the ExtensionlessUrlHandler-Integrated-4.0 to handle *.adad
and since that doesn't map to the route I try to access the static
file handler was used instead and I got the same error as you.</p></div>mastojtag:support.appharbor.com,2010-11-23:Comment/75465612011-05-31T15:57:20Z2011-05-31T15:57:20ZDeploy a WCF Web API, is it possible?<div><p>The handler is enabled (altough not for PUT and DELETE -- we'll
look into that). So that does not explain why GET requests for
<code>/contacts/1</code> returns a 404...</p></div>friismtag:support.appharbor.com,2010-11-23:Comment/75465612011-05-31T17:07:18Z2011-05-31T17:07:18ZDeploy a WCF Web API, is it possible?<div><p>You are true, it is really strange. The app itself should be
self contained as long as the
ExtensionlessUrlHandler-Integrated-4.0 handle is configured. No
answers on SO yet. Is it possible to see what has actually been
deployed? Or maybe get a copy of that and try to deploy the code
locally? Have you tried to deploy a wcf web api app your self?</p></div>mastojtag:support.appharbor.com,2010-11-23:Comment/75465612011-06-01T03:27:57Z2011-06-01T03:27:57ZDeploy a WCF Web API, is it possible?<div><p>Hi Tomas,</p>
<p>I've answered this on Stack Overflow too, but you basically just
need to add</p>
<pre>
<code><system.webServer>
<modules runAllManagedModulesForAllRequests="true" />
</system.webServer></code>
</pre>
<p>We may be able to resolve this on our end too (seems there's a
hotfix for it) <a href=
"http://support.microsoft.com/kb/980368">http://support.microsoft.com/kb/980368</a>
. We'll look into that and get back to you if it's no longer
necessary to specify the runAllManagedModulesForAllRequests
directive.</p>
<p>Best,<br>
Rune</p></div>rune