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.

0

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:

  • Go to Help | Diagnostic tools | Show Log in Explorer, then clear the existing logs.
  • Restart Rider
  • Go to Help | Diagnostic tools | Choose Trace Scenarios;
  • Enable the trace scenario for BuildTools, Commands, Run;
  • Reproduce the issue;
  • Collect the full log bundle via Help | Collect Logs and Diagnostic Data;
  • Disable the trace scenarios enabled;

Please upload it to our server and share the ID.

Thanks,

Tom


 

 

0

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?

0

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

0

Tom Luo I have uploaded the log files, the id is: 2025_03_28_W3a833VNRBzr4uyZxprxUa

0

Thanks for the logs. In the log I see build task started at 08:10:44

2025-03-28 08:10:44,741 [ 115651]   INFO - #c.j.r.b.BuildHost - Build session started

It finished at 08:12:19, and Rider tried to open browser at 08:12:32

2025-03-28 08:12:19,553 [ 210463]   INFO - #c.j.r.b.BuildToolWindowContext - Build result: Build succeeded with warnings - Build succeeded with warnings at 8:12:19
…
2025-03-28 08:12:32,637 [ 223547]   INFO - #c.j.r.w.RiderBrowserStarter - Browser starting: http:/localhost:57837

So far this looks no problem as most of time is spent on build phase. 

Questions:

  • By “become available”, do you mean the browser is not opened, or the browser is opened but the page is not loaded? 
  • Could you take a video recording to demostrate the issue?
  • How is React app embedded in WebForm? It'd be great if you could share the code snippet and how it's configured. 
  • Does this issue occur both when running and debugging the application?
0

-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.

0

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

0

请先登录再写评论。