更改iis-express Visual Studio 2015 WEB SITE项目的默认端口 [英] Change default port for iis-express Visual Studio 2015 for WEB SITE project

查看:293
本文介绍了更改iis-express Visual Studio 2015 WEB SITE项目的默认端口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

花很多时间寻找这个,这是我到目前为止发现的:

Spend a lot of time looking for this one, here what I've found so far:

更改默认的iis快速端口

更改Web应用程序的默认iis

我在Visual Studio 2015(aspx)中有一个网站 我想更改默认端口.没办法. 这里有一些提示-曾经有用,或者适用于Web应用程序,但事实并非如此. 没有csproj文件,更改applicationhost.config也无济于事.

I have a web site in visual studio 2015 (aspx) I want to change the default port. No way to do it. Here are some hints - that used to work, or works for web application but this is not the case. no csproj file, changing applicationhost.config did not help either.

推荐答案

执行文件搜索以查找包含该端口号的文件.这样做对我产生了以下结果:

Do a File-Search for files containing that port number. Doing so yielded these results for me:

.sln文件-VWDPort似乎是最重要的文件

.sln file - VWDPort seems like the most important one

.sln文件-3个结果找到了虚拟目录设置,这可能没有多大关系,但我也进行了更改.看起来像...\localhost_[portNumber]

.sln file - 3 results found Virtual Directory setup, which probably doesn't matter as much, but I changed that also. It looks like ...\localhost_[portNumber]

applicationhost.config-指定2个与*.[portNumber]:localhost

applicationhost.config - specifies 2 places with binding to *.[portNumber]:localhost

VWDPort可能是唯一需要的一个,但是无论如何我都更改了我找到的那些.

VWDPort may be the only one required, but I changed those I found anyway.

这篇关于更改iis-express Visual Studio 2015 WEB SITE项目的默认端口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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