2012-07-24 61 views
5

我試圖發佈我的網站,其中包含對servicestack rest API的引用。ServiceStack與IIS

網站很好,但是當它試圖訪問由ServiceStack生成的我的REST服務時,它將返回404錯誤。

有誰知道如何發佈IIS6上的serviceStack REST服務?

由於

+0

可能的重複[無法獲得ServiceStack在HTTPS的IIS6中工作](http://stackoverflow.com/questions/10005222/cant-get-servicestack-to-work-in-iis6-with-https) – 2013-07-10 15:00:45

回答

7

從指令上ServiceStack's Hello World tutorial

注: - :路徑= 「servicestack.ashx」

由於IIS 6的侷限性/ custompath必須 ashx的,例如結束

該名稱可以是任何東西,例如如果你願意,它可以是api.ashx

ASP.NET/IIS 6和其他可能的解決方案中處理程序映射的限制是explained in this answer