Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

1.2K
Vistas
How to specify a base url or host port for Jetbrains Rider asp.net project

I have a C# Asp.net web project made in Visual Studio. The project runs on a certain port (57243) and I made other programs that were testing the web service etc to use "localhost:57243".

Recently I tried running the project in Jetbrains' Rider IDE because of whatever reasons I made up at the time. The only issue I am having now is that the web service runs on port 5001 and I cannot find any property to change the base url or the host port to make it work.

TLDR, I am looking for this option inside the Jetbrains' Rider IDE: enter image description here

over 4 years ago · Santiago Trujillo
3 Respuestas
Responde la pregunta

0

This can be done inside the Rider IDE if you like.

If you edit the run/build configuration you are using when you hit F5 and then edit the environment variables you can add the ASPNETCORE_URLS environment variable which will run the app using the port specified as shown here.

Rider Run configuration environment variables

Steps to edit the setting

  1. Open the edit screen for the run/build configuration
  2. Click the ellipsis on the environment variables edit box to edit
  3. Click the plus (+) symbol to add a new evironment variable
  4. Set the name to ASPNETCORE_URLS and the value to http://*:57243
  5. Save your changes and run
over 4 years ago · Santiago Trujillo Denunciar

0

@Sasquatch's answer works for ASP.NET Core only.

For plain old ASP.NET, with IIS Express, we can go the project properties, Web section, and then

  • Make sure "Server type:" is "IIS Express".
  • Check "Generate applicationhost.config". [*]
  • Set "URL:" to "localhost".
  • Set "Development port:" to whichever port you want ("1234" in this example).
  • Click "OK" and restart the web application.

enter image description here

This will rewrite the generated applicationhost.config file (in .idea\config\ folder) with your selected configuration.

[*] If "Generate applicationhost.config" is unchecked, you should edit that file directly, like @WWietlol's answer suggests.

over 4 years ago · Santiago Trujillo Denunciar

0

It turned out that the option in Visual Studio just changes the application.config in the .vs folder. A similar file in the .idea folder had the properties of the ports.

Changing it in that file fixed it.

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda