views:

88

answers:

2

I am sending a POST request using HTTPWebRequest from the client to the Cassini Web Server on the remote machine configured to accept remote requests. But, I am not specifying a file as part of the URL. I am sending the request directly to the server as in "http://172.34.142.12:8080/". However, I am unable to receive a proper response and getting a "405 Method not allowed" error. I am using Cassini 3.5. Any suggestions as to why this might be happening?

A: 

Cassini is hardcoded to not accept requests from any host other than the one running it. It's programmed this way for security reasons.

If you really need this functionality, you'll have to build your own version of it. There's a few walkthroughs around on how to do this, here's one.

womp
The version I am using is this and this accepts remote requests too: http://blogs.msdn.com/b/dmitryr/archive/2008/10/03/cassini-for-framework-3-5.aspx
venividivamos
A: 

My company makes a product called the Neokernel that might help you: www.neokernel.com

The Neokernel is NOT based on Cassini. It is a professional, embeddable ASP.NET web server in a small, self contained assembly with logging, SSL, support for multiple ASP.NET apps, programmatic configuration, support for virtual directories, and it runs any web app that IIS does. It also works with the Mono framework; we developed it because there are a number of problems with Cassini (and the various projects derived from it).

Damien