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












5














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










share|improve this question



























    5














    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










    share|improve this question

























      5












      5








      5


      2





      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










      share|improve this question













      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







      c# asp.net rider






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Apr 5 '17 at 15:18









      Wietlol

      571315




      571315
























          4 Answers
          4






          active

          oldest

          votes


















          9














          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






          share|improve this answer























          • 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



















          4














          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.






          share|improve this answer





























            1














            @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 .ideaconfig folder) with your selected configuration.



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






            share|improve this answer































              0














              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.






              share|improve this answer





















                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
                });


                }
                });














                draft saved

                draft discarded


















                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









                9














                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






                share|improve this answer























                • 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
















                9














                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






                share|improve this answer























                • 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














                9












                9








                9






                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






                share|improve this answer














                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







                share|improve this answer














                share|improve this answer



                share|improve this answer








                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


















                • 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













                4














                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.






                share|improve this answer


























                  4














                  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.






                  share|improve this answer
























                    4












                    4








                    4






                    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.






                    share|improve this answer












                    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.







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Apr 7 '17 at 22:19









                    Wietlol

                    571315




                    571315























                        1














                        @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 .ideaconfig folder) with your selected configuration.



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






                        share|improve this answer




























                          1














                          @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 .ideaconfig folder) with your selected configuration.



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






                          share|improve this answer


























                            1












                            1








                            1






                            @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 .ideaconfig folder) with your selected configuration.



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






                            share|improve this answer














                            @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 .ideaconfig folder) with your selected configuration.



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







                            share|improve this answer














                            share|improve this answer



                            share|improve this answer








                            edited Aug 27 at 15:20

























                            answered Aug 27 at 14:56









                            rsenna

                            8,93014050




                            8,93014050























                                0














                                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.






                                share|improve this answer


























                                  0














                                  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.






                                  share|improve this answer
























                                    0












                                    0








                                    0






                                    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.






                                    share|improve this answer












                                    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.







                                    share|improve this answer












                                    share|improve this answer



                                    share|improve this answer










                                    answered Nov 13 at 21:02









                                    Восилей

                                    361410




                                    361410






























                                        draft saved

                                        draft discarded




















































                                        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.




                                        draft saved


                                        draft discarded














                                        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





















































                                        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







                                        Popular posts from this blog

                                        Guess what letter conforming each word

                                        Port of Spain

                                        Run scheduled task as local user group (not BUILTIN)