Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

.NET 8 Blazor server static files routing

$
0
0

I recently migrated our .net 6 blazor server app to .net 8.Everything works fine except that the app can't find the static css/js files when deploying.The app is setup as a subsite in IIS to another main site, for example:"https:\mainsite.com\virtual-path-to-subsite".

Instead of looking for the css/js files in:"https:\mainsite.com\virtual-path-to-subsite\site.css".the path specified is:"https:\mainsite.com\site.css".

Any ideas?

I tried changing "UseStaticFiles" to route to the subsite but then the pipeline fails because there isn't a physical folder in that path.


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>