New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UseCapDashboard is now internal #1244
Comments
The dashboard middleware will register automatically in ASP.NET Core, Users don't need to register it. |
Then after upgrading to v7 and removing |
|
yes this is something what I already have even with 6.2.1 because we use custom path and basic authentication because azureAD do not work for as and basic auth is fine for our usecase). |
In your case, is the basic auth middleware registration sequence before UseCapDashboard? |
I don't in 6.2.1. With 7.0.0 a cannot call I also try remove authentication and my custom path but i am still not able to reach On same app I hosting blazor app which somehow could collide with way the cap handle its dashboard? Maybe it could be nice have some default logging in |
Can you provide a reproducible example repository for us ? |
Same issue here, I have a blazor server app and with previous version it worked well, finding the cap route for the Dashboard. With 7.0.0 it stopped working. Same configurations its just the UseCapDashboard was being called explicitly. And using .Net6. |
Fixed in 7.0.1 |
It still not works i create default blazor wasm app (with checked option for hosted in asp.net) Put this in top section (literally only change what i made - not sure if it worth creating github repo for that).
packages in "server" project
And dashboard route serves just blazor app. |
I found out that due to my browser client side 301 redirect caching, the issue wasn't really fixed in 7.0.1, it will be fixed in 7.0.2. Blazor wasm is not supported! |
Did you means cap cannot be use with wasm hosting from v7.0+? Because it was working with v6. |
Yes, Blazor wasm It runs in the browser, it does not have the ASP.NET Core environment required by CAP dashboard. Blazor wasm sdk is <Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly"> Blazor server sdk is <Project Sdk="Microsoft.NET.Sdk.Web"> If CAP Dashboard is referenced in the Blazor WASM project, this compilation error will occur
|
I created a new blazor server app to test it works ok. Are you map the fallback route ? see #1256 |
I use Now a was able to solve this as in my case i use asp to host multiple blazor app. And as last entry in startup.cs I have
which for whatever reason causes this. So, if anybody have same issue (mostly likely not) i just change it to this:
Thanks for your help i like your project :) |
UseCapDashboard
is mark as internal with7.0.0
is that intended. If so, how it should be replaced?The text was updated successfully, but these errors were encountered: