Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ServiceStack with IIS

I'm trying to publish my website that contains references to servicestack rest APIs.

The Website is fine, but when it tries to access my REST services generated by ServiceStack, it returns 404 errors.

Does anyone know how to publish serviceStack REST services on IIS6?

Thanks

like image 561
Cleyton Avatar asked Jul 24 '12 14:07

Cleyton


1 Answers

From the instructions on ServiceStack's Hello World tutorial:

Note: due to limitations in IIS 6 - the /custompath must end with .ashx, e.g: path="servicestack.ashx"

The name can be anything, e.g. it can be api.ashx if you want.

The limitations of handler mappings in ASP.NET/IIS 6 and other possible solutions is explained in this answer.

like image 185
mythz Avatar answered Sep 27 '22 23:09

mythz