Remote debugging web service hosted by Cassini

♀尐吖头ヾ 提交于 2019-12-11 14:38:42

问题


Is there any way to remote debug a web service on my local machine that is being hosted by Cassini?

ie On my local machine I can browse to http:// localhost:1234/webservice, but I cannot go to another machine and access http:// ip_address_of_my_machine:1234/webservice.

Is there a way?

Thanks, Jon


回答1:


I think you'll find cassini doesn't allow remote connections. Any reason you can't run it from your IIS webserver?




回答2:


Use Fiddler!

Fiddler can operate as a "reverse proxy" which means that it can forward inbound requests to a different port or web server.

Step #0 Before either of the following options will work, you must enable other computers to connect to Fiddler. To do so, click Tools > Fiddler Options > Connections and tick the "Allow remote computers to connect" checkbox. Then close Fiddler.

Option #1: Configure Fiddler as a Reverse-Proxy Fiddler can be configured so that any traffic sent to http://127.0.0.1:8888 is automatically sent to a different port on the same machine. To set this configuration:

Start REGEDIT Create a new DWORD named ReverseProxyForPort inside HKCU\SOFTWARE\Microsoft\Fiddler2. Set the DWORD to the local port you'd like to re-route inbound traffic to (generally port 80 for a standard HTTP server) Restart Fiddler Navigate your browser to http://127.0.0.1:8888

Source: http://www.fiddler2.com/fiddler/help/reverseproxy.asp




回答3:


And now in IIS7.5 you can: Configure IIS Express for external access to VS2010 project



来源:https://stackoverflow.com/questions/1304116/remote-debugging-web-service-hosted-by-cassini

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!