question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Razor Service crashing

See original GitHub issue

Issue Type: Bug

Opening a Blazor WASM application causes the Razor service to crash and shut down.

crash log:

--------------------------------------------------------------------------------
Razor.VSCode version 6.0.0-alpha.1.20521.3
--------------------------------------------------------------------------------
Razor's trace level is currently set to 'Off'
 - To change Razor's trace level set 'razor.trace' to 'Off', 'Messages' or 'Verbose' and then restart VSCode.
 - To report issues invoke the 'Report a Razor issue' command via the command palette.
-----------------------------------------------------------------------------------------------------------------------------

Unhandled exception. OmniSharp.Extensions.JsonRpc.Server.MethodNotSupportedException: Method not found: 'razor/serverReady'.
   at OmniSharp.Extensions.JsonRpc.ResponseRouter.ResponseRouterReturnsImpl.Returning[TResponse](CancellationToken cancellationToken)
   at OmniSharp.Extensions.JsonRpc.ResponseRouter.ResponseRouterReturnsImpl.ReturningVoid(CancellationToken cancellationToken)
   at Microsoft.AspNetCore.Razor.LanguageServer.RazorServerReadyPublisher.ProjectSnapshotManager_Changed(Object sender, ProjectChangeEventArgs args) in /_/src/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer/RazorServerReadyPublisher.cs:line 63
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__140_1(Object state)
   at System.Threading.QueueUserWorkItemCallbackDefaultContext.Execute()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
[Info  - 8:04:35 AM] Connection to server got closed. Server will restart.
Unhandled exception. OmniSharp.Extensions.JsonRpc.Server.MethodNotSupportedException: Method not found: 'razor/serverReady'.
   at OmniSharp.Extensions.JsonRpc.ResponseRouter.ResponseRouterReturnsImpl.Returning[TResponse](CancellationToken cancellationToken)
   at OmniSharp.Extensions.JsonRpc.ResponseRouter.ResponseRouterReturnsImpl.ReturningVoid(CancellationToken cancellationToken)
   at Microsoft.AspNetCore.Razor.LanguageServer.RazorServerReadyPublisher.ProjectSnapshotManager_Changed(Object sender, ProjectChangeEventArgs args) in /_/src/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer/RazorServerReadyPublisher.cs:line 63
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__140_1(Object state)
   at System.Threading.QueueUserWorkItemCallbackDefaultContext.Execute()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
[Info  - 8:04:37 AM] Connection to server got closed. Server will restart.
Unhandled exception. OmniSharp.Extensions.JsonRpc.Server.MethodNotSupportedException: Method not found: 'razor/serverReady'.
   at OmniSharp.Extensions.JsonRpc.ResponseRouter.ResponseRouterReturnsImpl.Returning[TResponse](CancellationToken cancellationToken)
   at OmniSharp.Extensions.JsonRpc.ResponseRouter.ResponseRouterReturnsImpl.ReturningVoid(CancellationToken cancellationToken)
   at Microsoft.AspNetCore.Razor.LanguageServer.RazorServerReadyPublisher.ProjectSnapshotManager_Changed(Object sender, ProjectChangeEventArgs args) in /_/src/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer/RazorServerReadyPublisher.cs:line 63
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__140_1(Object state)
   at System.Threading.QueueUserWorkItemCallbackDefaultContext.Execute()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
[Info  - 8:04:39 AM] Connection to server got closed. Server will restart.
Unhandled exception. OmniSharp.Extensions.JsonRpc.Server.MethodNotSupportedException: Method not found: 'razor/serverReady'.
   at OmniSharp.Extensions.JsonRpc.ResponseRouter.ResponseRouterReturnsImpl.Returning[TResponse](CancellationToken cancellationToken)
   at OmniSharp.Extensions.JsonRpc.ResponseRouter.ResponseRouterReturnsImpl.ReturningVoid(CancellationToken cancellationToken)
   at Microsoft.AspNetCore.Razor.LanguageServer.RazorServerReadyPublisher.ProjectSnapshotManager_Changed(Object sender, ProjectChangeEventArgs args) in /_/src/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer/RazorServerReadyPublisher.cs:line 63
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__140_1(Object state)
   at System.Threading.QueueUserWorkItemCallbackDefaultContext.Execute()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
[Info  - 8:04:41 AM] Connection to server got closed. Server will restart.
Unhandled exception. OmniSharp.Extensions.JsonRpc.Server.MethodNotSupportedException: Method not found: 'razor/serverReady'.
   at OmniSharp.Extensions.JsonRpc.ResponseRouter.ResponseRouterReturnsImpl.Returning[TResponse](CancellationToken cancellationToken)
   at OmniSharp.Extensions.JsonRpc.ResponseRouter.ResponseRouterReturnsImpl.ReturningVoid(CancellationToken cancellationToken)
   at Microsoft.AspNetCore.Razor.LanguageServer.RazorServerReadyPublisher.ProjectSnapshotManager_Changed(Object sender, ProjectChangeEventArgs args) in /_/src/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer/RazorServerReadyPublisher.cs:line 63
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__140_1(Object state)
   at System.Threading.QueueUserWorkItemCallbackDefaultContext.Execute()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
[Error - 8:04:43 AM] Connection to server got closed. Server will not be restarted.
[Client - 8:04:43 AM] (Error) Failed when activating Razor VSCode.
undefined
Stack Trace:
undefined

Extension version: 1.23.5 VS Code version: Code - Exploration 1.51.0-exploration (f5e2e8ba8af696d6a933903e28698d36831d3204, 2020-10-27T06:50:53.302Z) OS version: Darwin x64 19.6.0

System Info
Item Value
CPUs Intel® Core™ i7-8850H CPU @ 2.60GHz (12 x 2600)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
webgl: enabled
webgl2: enabled
Load (avg) 3, 3, 2
Memory (System) 32.00GB (8.23GB free)
Process Argv -psn_0_6415902
Screen Reader no
VM 18%

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
JoeRobichcommented, Oct 27, 2020

Could we move this over to dotnet/aspnetcore please?

I am not sure that GH supports moving issues between organizations.

0reactions
JoeRobichcommented, Feb 16, 2022

@tvardero You may want to look for an open issue in the razor repo - https://github.com/dotnet/razor-tooling/issues.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix Razer Synapse 3 when it crashes or fails to start
Run Razer Synapse 3 as administrator. Windows UI showing program right-click menu pane. Run "Task Manager" if the issue persists. Go to “ ......
Read more >
FIX Razer Synapse Crashing & Freezing In Windows - YouTube
Razer Synapse Keeps Crashing PCIn this video, we will be taking a look at fixing issues with Razer Synapse 3 crashing, freezing, ...
Read more >
Gamemanagerservice.exe constantly crashing on start up
I ended up finding that the gamemanagerservice.exe was constantly having an app crash at start up. I tried the repair through razer's ......
Read more >
Razor Editor crashing Visual Studio issue.
I've been editing a cshtml file that keeps crashing while I'm using it. I'm not entirely sure why it keeps crashing, sometimes when...
Read more >
How to resolve Razer Synapse 3 cannot launch or crashes
Resolve Razer Synapse 3 cannot launch or crashes · Ensure that Synapse 3 is not blocked by your firewall and antivirus software. ·...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found