Errors on 'dotnet run'
# help-with-umbraco
e
Today I just felt like spinning up my Umbraco project in the terminal, but I ran into a bunch of errors. Building and starting it all in VS works fine. I did try to find an answer to this, but no real luck so far. Our buddy ChatGPT suggested to ONLY use "applicationUrl": "https://localhost:44324" in launchSettings.json while adding a app.UsePathBase("/umbraco"); in the Startup.cs. The result of that being that...well, the site 'runs' but navigating to /umbraco gives me a 'Page not found' error. Thoughts? 🤔 https://cdn.discordapp.com/attachments/1244706277750341703/1244706278308053042/ErrorLogs.png?ex=6656168e&is=6654c50e&hm=b87b70f6a5a2b0845e4b9bd455ef84ffe43c312aa04ea35c31691d881bf78e6c& https://cdn.discordapp.com/attachments/1244706277750341703/1244706278656311398/launchSettings.png?ex=6656168e&is=6654c50e&hm=9cc26bbed50dbb125c0767fb3fc7e17c088b3a6718b385cbb4a6a18153df812b& https://cdn.discordapp.com/attachments/1244706277750341703/1244706279046254716/Startup.png?ex=6656168e&is=6654c50e&hm=934fb808f5f071b5fc5019857a452dcc2696b56bb657ca966f3971cebbb22737& https://cdn.discordapp.com/attachments/1244706277750341703/1244706279562285268/image.png?ex=6656168e&is=6654c50e&hm=e1e8b554c9c81673ecc66fc32e0675f3d5dfc4d1c3839f57d1784d5f3a970bfc&
m
I think you jsut need to remove /umbraco from your launchsettings
and ignore ChatGPT 🙂
e
Yup, that seems to have solved it 🤣 Thanks! ❤️ Just running with: app.UsePathBase(""); and "applicationUrl": "https://localhost:44324"
k
ChatGPT is probably confused because setting the
applicationUrl
to
/umbraco
is actually trying to set a path base. I'm not sure if there is a way to configure
launchSettings
to open an additional browser for /umbraco, which I guess is what you're trying to do.
Wasn't there an interactive CLI at some point? Surely you don't want to open a browser at all when spinning up Umbraco from the terminal 🙂
k
launchUrl, can be used to get visual studio to open /umbraco.
eg.
Copy code
"launchUrl": "https://localhost:44368/umbraco",
e
Didn't notice there were new replies here. Thanks!
4 Views