admin管理员组文章数量:1394142
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 badges1 Answer
Reset to default 1Run 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.
本文标签: cChange URL project IIS ASPNetStack Overflow
版权声明:本文标题:c# - Change URL project IIS ASP.Net - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744705298a2620807.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论