最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

c# - Change URL project IIS ASP.Net - Stack Overflow

programmeradmin0浏览0评论

I have a problem when trying to change the project URL in my ASP.NET webforms project. I want to change this because, for security reasons, an application does not allow testing locally, as it requires ALWAYS USING AN IP OR DOMAIN NAME; otherwise, it will block it for security reasons.

I have added 127.0.0.1 prueba12 to the hosts file, but I don't know what else I can do.

Then, if I go to Properties → Web → Project URL and set it to :44302/, and then try to create a virtual directory, it does not create it because it tells me that I must specify localhost as the server name.

Sorry for the image in Spanish, but I don't know what else I need to do to be able to debug.

I have a problem when trying to change the project URL in my ASP.NET webforms project. I want to change this because, for security reasons, an application does not allow testing locally, as it requires ALWAYS USING AN IP OR DOMAIN NAME; otherwise, it will block it for security reasons.

I have added 127.0.0.1 prueba12 to the hosts file, but I don't know what else I can do.

Then, if I go to Properties → Web → Project URL and set it to https://prueba12:44302/, and then try to create a virtual directory, it does not create it because it tells me that I must specify localhost as the server name.

Sorry for the image in Spanish, but I don't know what else I need to do to be able to debug.

Share Improve this question edited Mar 13 at 12:26 marc_s 756k184 gold badges1.4k silver badges1.5k bronze badges asked Mar 13 at 11:05 GiioGiio 3393 silver badges15 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

Run Visual Studio as administrator and change the properties of the project for using "Local IIS". Then just use the default server localhost for the url: http://localhost/prueba12 and click on "Create Virtual Directory". Run the application.

Alternatively it is possible to create your own local server in IIS if you want to customize the configuration and url.

发布评论

评论列表(0)

  1. 暂无评论