有没有办法远程调用 ASP.NET 开发 Web 服务器? [英] Is There a Way to Make Remote Calls to ASP.NET Development Web Server?

查看:26
本文介绍了有没有办法远程调用 ASP.NET 开发 Web 服务器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

知道,一般来说,这是做不到的,那就是让另一台PC远程调用托管在ASP.NET DEvelopment Web Server下的站点(通常只能使用localhost:port开始吧).

I know that generally speaking, this cant be done, that is get another PC to call a site hosted under the ASP.NET DEvelopment Web Server remotely (generally you can only use localhost:port to get to it).

但我想知道是否有人见过或知道绕过它的方法?我是办公室的 RESTful API 开发人员,我希望 PHP 人员在我的机器上测试 API,以便我可以附加 Visual Studio 2005 调试器,并且我可以更轻松地发现问题.

But I was wondering if anyone has seen, or knows of a way to get around it? I am a RESTful API developer in my office, and I would like the PHP guys to test the APIs on my machine so that I can have the Visual Studio 2005 debugger attached, and I can more easily find problems.

主要问题是,我的机器是 Vista 机器,不幸的是,我开发的 API 不能在 IIS7 下工作,即使是经典应用程序池模式(这样就不可能在本地 IIS 上托管它们).

THe main issue is, that my machine is a Vista machine, and unfortunately, the APIs I have developed do not work under IIS7, even Classic Application Pool mode (which eliminates hosting them on a local IIS impossible).

或者,有没有办法在另一台机器上使用 IIS6 来满足我的需求?

Alternatively, is there a way to use IIS6 on another machine to suite my needs?

更新

根据我得到的建议,并在对所提出的建议进行多次反复试验后,我能够让 Squid 充当反向代理,并完全按照我的意愿行事.我已经写了关于它的博客 http://www.ashleyangell.com/index.php/2009/03/configuring-a-basic-reverse-proxy-in-squid-on-windows-website-accelerator/ 以防其他人想做同样的事情.

Based on the advise that I have gotten and after much trial and error with the suggestions made, I was able to get Squid to act as a reverse-proxy and do exactly what I wanted to do. I have blogged about it http://www.ashleyangell.com/index.php/2009/03/configuring-a-basic-reverse-proxy-in-squid-on-windows-website-accelerator/ in case anyone else wants to do the same thing.

推荐答案

你不能在 经典应用程序池模式?

开发 Web 服务器严格限于本地主机,您需要对其进行反编译和重新编译,或者在您的机器上设置某种代理.

The Development Web Server is strictly limited to Localhost, you would either need to decompile and recompile it, or set up some kind of Proxy on your machine.

关于一个不相关的主题:尽管 Win2003 Server SP2 R2 应该支持到 2012 年 3 月,也许 IIS7 支持应该添加到您的应用程序中,以确保您也可以在 2008 Server 上运行.

And on an unrelated Topic: Even though Win2003 Server SP2 R2 should be supported up to March 2012, maybe IIS7 Support should be added to your application to make sure you can run on 2008 Server as well.

这篇关于有没有办法远程调用 ASP.NET 开发 Web 服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆