Running and debugging project in jetbrains rider too slow
I'm working with a legacy WebForms application (.NET Framework 4.7.2) to which React (18.2.0) has been added to gradually migrate the interface. The problem I'm encountering is that loading times during development are extremely long (between 5-10 minutes) from the moment I press "Run" in JetBrains Rider until the application is available. I'm new to the project and need to understand what's causing this slowness and how I can fix it. Below, I've detailed the architecture and loading process: Project Architecture The solution has the following structure:
Main project: ASP.NET WebForms application (.NET Framework 4.7.2) Frontend project: React application (v18.2.0) that uses Vite as a bundler React components are embedded within WebForms pages
When I launch the application in debug mode with Rider, the following occurs:
Rider starts compiling the .NET solution All assemblies (DLLs) are generated Vite compiles the React projects (main.tsx and initialMain.tsx) IIS Express starts The application takes 5-10 minutes to become available
During the loading process, I see in the console:
"Many threads are loaded" "Many assemblies are loaded"
Any suggestions would be greatly appreciated, thanks in advance.
-Tried removing code optimization and alerts, nothing changed. -Tried disabling external source debug, nothing changed. -Tried disabling symbol server support, nothing changed.
I expect to know what is the source of the problem and be able to solve it. I have not seen anyone with the same issue on the internet, and the ones who seemed to be similar, their solutions didn't work.
请先登录再写评论。
Hello,
Thank you for contacting JetBrains Support. I'm glad to work with you on this ticket.
To narrow down the issue, please provide the information below:
1. How is React app embedded in WebForm? It'd be great if you could share the code snippet and how it's configured.
2. Does this issue occur both during the running and debugging of the application?
3. Collect Rider logs:
Please upload it to our server and share the ID.
Thanks,
Tom
Tom Luo for company policy I need to know if there is sensitive data in the logs, will it be public or just used by jetbrains to help me with the issue?
In terms of sensitive data, the logs may contain information such as project names, environment variables, and code snippets if specific trace scenarios are enabled. These logs are used exclusively for troubleshooting purposes, and access is strictly limited to authorized JetBrains teams.
Addtionally, all the copies would be deleted after case closure.
Thanks,
Tom
Tom Luo I have uploaded the log files, the id is: 2025_03_28_W3a833VNRBzr4uyZxprxUa
Thanks for the logs. In the log I see build task started at 08:10:44
It finished at 08:12:19, and Rider tried to open browser at 08:12:32
So far this looks no problem as most of time is spent on build phase.
Questions:
-The browser opens, but from the moment it opens until the page loads, ~5 minutes pass.
-In the file of vite's configuration i have: build:{outDir:"../../ODF/ODF/dist/spa"} that is where the React app will generate its script. The components of the React App are rendered in the WebForm through React portals in empty html elements in the .aspx files.
-Yes, it occurs both when running and debugging the application.
Since the issue happens after the browser opens, we suspect this issue maybe not relevant to Rider. To confirm this, please try running the app outside of Rider and see if the issue persists. For example, you can publish the app to a local folder, then start it using IIS Express from command line. See Running IIS Express from the Command Line | Microsoft Learn for more information.
Let me know if you have any concerns.
Regards,
Tom