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

I have a problem when trying to change the project URL in my ASP.NET webforms project. I want to change

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.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744705298a4589020.html

相关推荐

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

    I have a problem when trying to change the project URL in my ASP.NET webforms project. I want to change

    1天前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信