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:
c# asp.net rider
add a comment |
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:
c# asp.net rider
add a comment |
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:
c# asp.net rider
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:
c# asp.net rider
c# asp.net rider
asked Apr 5 '17 at 15:18
Wietlol
571315
571315
add a comment |
add a comment |
4 Answers
4
active
oldest
votes
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
- Open the edit screen for the run/build configuration
- Click the ellipsis on the environment variables edit box to edit
- Click the plus (+) symbol to add a new evironment variable
- Set the name to
ASPNETCORE_URLS
and the value tohttp://*:57243
- Save your changes and run
Please provide at least an outline of how to make changes to the items you mention. Links tend to rot.
– Joshua Drake
May 25 '17 at 3:41
@JoshuaDrake. Done.
– Sasquatch
May 29 '17 at 0:22
add a comment |
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.
add a comment |
@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.
This will rewrite the generated applicationhost.config file (in .ideaconfig folder) with your selected configuration.
[*] If "Generate applicationhost.config" is unchecked, you should edit that file directly, like @WWietlol's answer suggests.
add a comment |
Removing all files in the .idea folder helped me. Rider showed me the initial window of to configure my project from scratch and imported all necessary settings (like environment and url) automatically.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f43235329%2fhow-to-specify-a-base-url-or-host-port-for-jetbrains-rider-asp-net-project%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
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
- Open the edit screen for the run/build configuration
- Click the ellipsis on the environment variables edit box to edit
- Click the plus (+) symbol to add a new evironment variable
- Set the name to
ASPNETCORE_URLS
and the value tohttp://*:57243
- Save your changes and run
Please provide at least an outline of how to make changes to the items you mention. Links tend to rot.
– Joshua Drake
May 25 '17 at 3:41
@JoshuaDrake. Done.
– Sasquatch
May 29 '17 at 0:22
add a comment |
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
- Open the edit screen for the run/build configuration
- Click the ellipsis on the environment variables edit box to edit
- Click the plus (+) symbol to add a new evironment variable
- Set the name to
ASPNETCORE_URLS
and the value tohttp://*:57243
- Save your changes and run
Please provide at least an outline of how to make changes to the items you mention. Links tend to rot.
– Joshua Drake
May 25 '17 at 3:41
@JoshuaDrake. Done.
– Sasquatch
May 29 '17 at 0:22
add a comment |
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
- Open the edit screen for the run/build configuration
- Click the ellipsis on the environment variables edit box to edit
- Click the plus (+) symbol to add a new evironment variable
- Set the name to
ASPNETCORE_URLS
and the value tohttp://*:57243
- Save your changes and run
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
- Open the edit screen for the run/build configuration
- Click the ellipsis on the environment variables edit box to edit
- Click the plus (+) symbol to add a new evironment variable
- Set the name to
ASPNETCORE_URLS
and the value tohttp://*:57243
- Save your changes and run
edited May 29 '17 at 0:21
answered May 24 '17 at 23:33
Sasquatch
1064
1064
Please provide at least an outline of how to make changes to the items you mention. Links tend to rot.
– Joshua Drake
May 25 '17 at 3:41
@JoshuaDrake. Done.
– Sasquatch
May 29 '17 at 0:22
add a comment |
Please provide at least an outline of how to make changes to the items you mention. Links tend to rot.
– Joshua Drake
May 25 '17 at 3:41
@JoshuaDrake. Done.
– Sasquatch
May 29 '17 at 0:22
Please provide at least an outline of how to make changes to the items you mention. Links tend to rot.
– Joshua Drake
May 25 '17 at 3:41
Please provide at least an outline of how to make changes to the items you mention. Links tend to rot.
– Joshua Drake
May 25 '17 at 3:41
@JoshuaDrake. Done.
– Sasquatch
May 29 '17 at 0:22
@JoshuaDrake. Done.
– Sasquatch
May 29 '17 at 0:22
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
answered Apr 7 '17 at 22:19
Wietlol
571315
571315
add a comment |
add a comment |
@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.
This will rewrite the generated applicationhost.config file (in .ideaconfig folder) with your selected configuration.
[*] If "Generate applicationhost.config" is unchecked, you should edit that file directly, like @WWietlol's answer suggests.
add a comment |
@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.
This will rewrite the generated applicationhost.config file (in .ideaconfig folder) with your selected configuration.
[*] If "Generate applicationhost.config" is unchecked, you should edit that file directly, like @WWietlol's answer suggests.
add a comment |
@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.
This will rewrite the generated applicationhost.config file (in .ideaconfig folder) with your selected configuration.
[*] If "Generate applicationhost.config" is unchecked, you should edit that file directly, like @WWietlol's answer suggests.
@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.
This will rewrite the generated applicationhost.config file (in .ideaconfig folder) with your selected configuration.
[*] If "Generate applicationhost.config" is unchecked, you should edit that file directly, like @WWietlol's answer suggests.
edited Aug 27 at 15:20
answered Aug 27 at 14:56
rsenna
8,93014050
8,93014050
add a comment |
add a comment |
Removing all files in the .idea folder helped me. Rider showed me the initial window of to configure my project from scratch and imported all necessary settings (like environment and url) automatically.
add a comment |
Removing all files in the .idea folder helped me. Rider showed me the initial window of to configure my project from scratch and imported all necessary settings (like environment and url) automatically.
add a comment |
Removing all files in the .idea folder helped me. Rider showed me the initial window of to configure my project from scratch and imported all necessary settings (like environment and url) automatically.
Removing all files in the .idea folder helped me. Rider showed me the initial window of to configure my project from scratch and imported all necessary settings (like environment and url) automatically.
answered Nov 13 at 21:02
Восилей
361410
361410
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f43235329%2fhow-to-specify-a-base-url-or-host-port-for-jetbrains-rider-asp-net-project%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown