interactive icon indicating copy to clipboard operation
interactive copied to clipboard

No handler registered on kernel csharp for command: Directive: #!connect mssql

Open eliassal opened this issue 2 months ago • 1 comments

Type: Bug

I Installed all prerequisites for using polyglote extension in VSC, Run the command #!connect mssql -h in a cell with C# kernel I get

Error: NoSuitableKernelException: No handler registered on kernel csharp for command directive....

When I try #!connect mssql --kernel-name mssql "Server=mySQL;Database=admin;Integrated Security=True;"

I get

Image

I did install sql stuff by running #r "nuget:Microsoft.DotNet.Interactive.SqlServer, *-*" and installation went ok

Image

Extension version: 1.0.6323010 VS Code version: Code 1.106.0 (ac4cbdf48759c7d8c3eb91ffe6bb04316e263c57, 2025-11-11T16:02:25.943Z) OS version: Windows_NT x64 10.0.19045 Modes:

System Info
Item Value
CPUs Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz (8 x 3408)
GPU Status 2d_canvas: enabled
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
trees_in_viz: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 31.94GB (16.11GB free)
Process Argv --crash-reporter-id 3c6cc184-cdef-4bfc-96ad-fd651be59f47
Screen Reader no
VM 0%
A/B Experiments
vsliv368cf:30146710
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
aj953862:31281341
nes-set-on:31351930
onetestforazureexpcf:31335614
6abeh943:31336334
aa_c:31379599
t123456:31413567
0574c672:31404437
cloudbuttont:31379625
todos-1:31405332
qwen_all_req:31402696
treatment_gpt5applypatchexclusively:31412086
3efgi100_wstrepl:31403338
trigger-command-fix:31379601
auto_model_enabled:31385282
use-responses-api:31390855
defaultsignin:31399436
auto_g2946222:31414244
ddidtcf:31399634
je187915:31407605
3i15c187:31405349
673df989:31418077
nes-allow-ws-only-0:31412870
copilot-nes-oct-t:31418199
ff8f5884:31411053

eliassal avatar Nov 13 '25 10:11 eliassal

Are you saying that the Unrecognized parameter name error happened after you ran the #r "nuget... cell? The #r command to load the extension has to come first.

If you ran the cells in the correct order and saw this error, it could be a version mismatch. Specifying the *-* version might get you a version that's incompatible with the version of Polyglot Notebooks you're using. More details here: https://github.com/dotnet/interactive/issues/3956#issuecomment-2984897959

jonsequitur avatar Dec 04 '25 22:12 jonsequitur