-
Notifications
You must be signed in to change notification settings - Fork 880
Blazor Server + YARP - Static Files (CSS/JS) 404 & Circuit Failed to Initialize #2782
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
Comments
here is the result of all the logs.
|
Uh oh!
There was an error while loading. Please reload this page.
Hello community,
I am currently implementing YARP (Yet Another Reverse Proxy) in my Blazor Server application to proxy multiple existing projects. However, I am encountering the following issues:
- After the WebSocket connection is established, I get the following error:
[Error] The circuit failed to initialize.
Connection disconnected.
### Project Setup & Code Snippets
Program.cs Configuration
DynamicProxyConfigProvider.cs (Route & Cluster Configuration)
Index Page (Navigation to Proxy URL)
Steps to Reproduce:
What I Have Tried:
-Ensured Static Files Exist in wwwroot.
-Added UseStaticFiles() before UseRouting().
-Checked _content/ Paths for Blazor resources.
-Enabled WebSockets in YARP.
-Modified appsettings.json to match YARP paths.
Expected Behavior:
-Static files should load correctly.
-Blazor Circuit should initialize without failure.
Environment:
### Questions:
The text was updated successfully, but these errors were encountered: