简体   繁体   English

iis Express端口号出现问题

[英]issue with iis express port number

Whenever i setup a site using iis express in localhost, it automatically creates the address as http://localhost:80/901 . 每当我在localhost中使用iis express设置站点时,它都会自动将地址创建为http://localhost:80/901

But i have originally given the url as http://localhost:901 when i have setup the project in the iis express section of the properties. 但是,当我在属性的iis express部分中设置了项目时,我最初给出的URL为http://localhost:901

i am redirecting from localhost:904 (iis express hosted site) to localhost:80/901 (iis express hosted site) and i couldn't open localhost:80/901 and giving the below error HTTP Error 404.0 - Not Found, MapRequestHandler (Error Code 0x80070002) 我正在从localhost:904(iis快速托管站点)重定向到localhost:80/901(iis快速托管站点),但我无法打开localhost:80/901并给出以下错误HTTP错误404.0-找不到MapRequestHandler(错误代码0x80070002)

How to overcome this problem? 如何克服这个问题? Any help will be appreciated a lot. 任何帮助将不胜感激。

I have removed port 80 in iis and so iis express is taking the port 80 which is the confusion. 我已经在iis中删除了端口80,所以iis express正在使用端口80,这很混乱。 After i closed the visual studio and add port 80 to the iis and port 80 dependency have been removed from iis express. 关闭Visual Studio并将端口80添加到iis之后,端口80依赖项已从iis express中删除。 Now i got the port as http://localhost:901/ 现在我将端口设为http://localhost:901/

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

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