简体   繁体   English

如何在Azure Compute Emulator上配置Web角色以像本地IIS(静态URL)一样工作

[英]How to configure Web role on Azure Compute Emulator to work like local IIS (static URL)

So, the question is how to configure Web role on Azure Compute Emulator to work like on local IIS? 那么,问题是如何在Azure Compute Emulator上配置Web角色以便像在本地IIS上一样工作? By this I mean, that, the web role have the fixed url (like you can in project properties set the "Use Local IIS Web server" and set the fixed url)? 我的意思是,web角色具有固定的URL(就像你可以在项目属性中设置“使用本地IIS Web服务器”并设置固定的URL)?

How to set Azure Compute Emulator to work on static url or at least at static port? 如何将Azure Compute Emulator设置为在静态URL或至少在静态端口上工作?

Is is really annoying that everytime I start the web role I have different url (port)! 真的很烦人,每次我启动web角色我都有不同的url(端口)!

The answer is that you cannot run it on a static port, but it should run on the first available port in its port range (starting at 80 and incrementing until it finds a free port). 答案是您无法在静态端口上运行它,但它应该在其端口范围内的第一个可用端口上运行(从80开始并递增直到找到空闲端口)。 If it increments with every "debug" session starting, then it's because the previous emulator didnt teardown completely before you started a new one. 如果它随着每个“调试”会话开始递增,那么这是因为之前的模拟器在您开始新的之前没有完全拆除。

There are some ideas how to fix this issue here: http://social.msdn.microsoft.com/Forums/en/windowsazuredevelopment/thread/ae2df7e0-5005-4bcd-8b69-bb53323eb589 这里有一些想法如何解决这个问题: http//social.msdn.microsoft.com/Forums/en/windowsazuredevelopment/thread/ae2df7e0-5005-4bcd-8b69-bb53323eb589

查看Michael Collier的解决方案 [Windows Azure MVP的同事]

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM