Request.Url has wrong port information

ぐ巨炮叔叔 提交于 2019-12-13 00:06:34

问题


My web application is using Nancy, and is hosted in Asp.Net, in Azure.
In development, I am using IIS Express, and Azure's Compute Emulator.

In production, the homepage opens in http://mydomain/test
Debugging on my machine, the homepage opens in http://127.0.0.1:81/test
But, in my NancyModule, I'm getting:

Request.Url == http://127.0.0.1:82/test

Why 82? Maybe it has something to do with IIS Express showing its site on http://127.255.0.0:82/ ?


回答1:


82 is the port that IIS is serving the app through. Are you trying to do something with it?



来源:https://stackoverflow.com/questions/15163670/request-url-has-wrong-port-information

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