C
C#11mo ago
Camster

Deploy Blazor Server and API to IIS in same website

I want to deploy a blazor server app together with a web API so that they use the same website. This is an internal website. Keeping them together will save me from having to procure separate IP addresses and DNS host names. Is it possible? All the API routes have "/api/" prefixes. I tried created the website first and adding the API as a sub-application. The Blazor app works, but it just tells me the website doesn't exist when I try to navigate to the API
No description
No description
5 Replies
palapapa
palapapa11mo ago
But you didn't add the /api/ prefix in your example? Just a guess
Camster
CamsterOP11mo ago
I got unexpected company , I’ll be back soon 😅
Camster
CamsterOP11mo ago
You mean like this?
No description
palapapa
palapapa11mo ago
Thats' a suffix
Camster
CamsterOP11mo ago
I'm not sure I understand. Wouldn't it go at the end, since I have to navigate to the site first?

Did you find this page helpful?