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.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744705298a4589020.html
评论列表(0条)