Skip to content

Commit 16fbcb5

Browse files
Merge pull request #13117 from Mikejo5000/mikejo-br23
Add content about setting the startup project for multiple projects
2 parents f84e0bf + 99b1401 commit 16fbcb5

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

docs/javascript/tutorial-asp-net-core-with-angular.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,10 @@ You may see the following error:
152152
[HPM] Error occurred while trying to proxy request /weatherforecast from localhost:4200 to https://localhost:5001 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
153153
```
154154

155-
If you see this issue, most likely the frontend started before the backend. Once you see the backend command prompt up and running, just refresh the Angular App in the browser.
155+
If you see this issue, most likely the frontend started before the backend.
156+
157+
- Once you see the backend command prompt up and running, just refresh the Angular app in the browser.
158+
- Also, verify that the backend is configured to start before the front end. To verify, select the solution in Solution Explorer, choose **Properties** from the **Project menu**. Next, select **Configure Startup Projects** and make sure that the backend ASP.NET Core project is first in the list. If it's not first, select the project and use the Up arrow button to make it the first project in the launch list.
156159

157160
### Verify port
158161

docs/javascript/tutorial-asp-net-core-with-react.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,10 @@ You may see the following error:
144144
[HPM] Error occurred while trying to proxy request /weatherforecast from localhost:4200 to https://localhost:7183 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
145145
```
146146

147-
If you see this issue, most likely the frontend started before the backend. Once you see the backend command prompt up and running, just refresh the React App in the browser.
147+
If you see this issue, most likely the frontend started before the backend.
148+
149+
- Once you see the backend command prompt up and running, just refresh the React app in the browser.
150+
- Also, verify that the backend is configured to start before the front end. To verify, select the solution in Solution Explorer, choose **Properties** from the **Project menu**. Next, select **Configure Startup Projects** and make sure that the backend ASP.NET Core project is first in the list. If it's not first, select the project and use the Up arrow button to make it the first project in the launch list.
148151

149152
### Verify ports
150153

docs/javascript/tutorial-asp-net-core-with-vue.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,10 @@ You may see the following error:
146146
[HPM] Error occurred while trying to proxy request /weatherforecast from localhost:4200 to https://localhost:5173 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
147147
```
148148

149-
If you see this issue, most likely the frontend started before the backend. Once you see the backend command prompt up and running, just refresh the Vue app in the browser.
149+
If you see this issue, most likely the frontend started before the backend.
150+
151+
- Once you see the backend command prompt up and running, just refresh the Vue app in the browser.
152+
- Also, verify that the backend is configured to start before the front end. To verify, select the solution in Solution Explorer, choose **Properties** from the **Project menu**. Next, select **Configure Startup Projects** and make sure that the backend ASP.NET Core project is first in the list. If it's not first, select the project and use the Up arrow button to make it the first project in the launch list.
150153

151154
Otherwise, if the port is in use, try incrementing the port number by **1** in `launchSettings.json` and *vite.config.js*.
152155

0 commit comments

Comments
 (0)