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.com 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.com: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.

enter image description here

1 Answer 1

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.

Sign up to request clarification or add additional context in comments.

2 Comments

So can I create a prueba12.com as a local server?
Yes, IIS has an option for adding new web site. Check out the tutorial. If it works with the default server in Local IIS, you probably already have IIS enabled and don't need Step 1.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.