C
C#6d ago
MileHDev

React and ASP.NET Core template app fails to launch (Visual Studio)

Haven't touched anything and it says "An exception happened at deploy, the port 49467 configured on launch.json is unavailable."
25 Replies
kurumi
kurumi6d ago
Try to change port and see if application can start
MileHDev
MileHDevOP6d ago
Weirdly, it has no effect. The only place I see that port is what you see in the image. If I change it, it complains about the same old port.
No description
MileHDev
MileHDevOP6d ago
I see the front end runs, but it's blocking the backend from starting. It never runs. When I close the command line window that opens for the front end, I get that error about the port
MileHDev
MileHDevOP6d ago
They are not on the same port, in fact the launch settings has totally different ports:
No description
kurumi
kurumi6d ago
it's normal behaviour
Unknown User
Unknown User6d ago
Message Not Public
Sign In & Join Server To View
MileHDev
MileHDevOP6d ago
looks like it's using launch.json. Must be something new? I don't recall visual studio using that, only vscode. I just expected it to work since I haven't even touched the template code.
No description
MileHDev
MileHDevOP6d ago
what would this translate to in terms of settings?
Unknown User
Unknown User6d ago
Message Not Public
Sign In & Join Server To View
MileHDev
MileHDevOP6d ago
yeah, I'm familiar with that. Just not sure why it complains about the port being blocked now.
Unknown User
Unknown User6d ago
Message Not Public
Sign In & Join Server To View
MileHDev
MileHDevOP6d ago
So the client loads But it says in this loading state. It never loads the server. It doesn't matter which port I change it too, it complains it's blocked
No description
Unknown User
Unknown User6d ago
Message Not Public
Sign In & Join Server To View
MileHDev
MileHDevOP6d ago
No description
MileHDev
MileHDevOP6d ago
doesn't appear to be this is while I'm in that loading state
Unknown User
Unknown User6d ago
Message Not Public
Sign In & Join Server To View
MileHDev
MileHDevOP6d ago
no, regular command line
Unknown User
Unknown User6d ago
Message Not Public
Sign In & Join Server To View
MileHDev
MileHDevOP6d ago
hmm
No description
Unknown User
Unknown User6d ago
Message Not Public
Sign In & Join Server To View
MileHDev
MileHDevOP6d ago
I've restarted my computer. It starts the process when I start debugging then complains about it being blocked. Hehe. I give up. Thank you.
Unknown User
Unknown User6d ago
Message Not Public
Sign In & Join Server To View
MileHDev
MileHDevOP6d ago
No. I'm generating the app from the template in VS using the UI. Then I immediately run it and I get this. They must have changed it. THe template efore had much heavier config in the vite.config.ts if I recall correctly. Now it's almost nothing. I don't see the proxy settings there anymore. I must have done this about a month ago and it worked without issues but I deleted the app.
No description
Unknown User
Unknown User6d ago
Message Not Public
Sign In & Join Server To View
MileHDev
MileHDevOP6d ago
that's ok, thanks for trying

Did you find this page helpful?