Date:2025-03-21 16:18:50,781
Thread:[1]
Level:ERROR
Logger:InsertBlazorCode.SyncfusionCodeGeneratorMenuCommand [(null)]
Message:System.NullReferenceException: Object reference not set to an instance of an object.
at InsertBlazorCode.SyncfusionCodeGeneratorMenuCommand.queryStatusMenuCommand_BeforeQueryStatus(Object sender, EventArgs e) in C:\Git\RP\vsext_insertblazorcode\SyncfusionBlazorcodegenerator\SyncfusionCodeGeneratorMenuCommand.cs:line 322
Hi Paul,
We are reviewing the issue, but the error message alone is not enough to identify the root cause. To help us troubleshoot more effectively, please provide the following details:
Did the issue occur immediately after clicking on the Syncfusion Code Generator, or did it happen when selecting a control?
In which file are you using the Syncfusion Code Generator?
Which control were you selecting when the issue occurred?
If possible, could you share the project with us for further analysis?
Providing this information will allow us to better understand the situation and identify a solution. If you have any questions or need further assistance, feel free to reach out.
Thanks,
Valan
I wasn’t using anything Syncfusion-related. I did have the Syncfusion extension for Visual Studio installed and enabled, and of course the error went away once I disabled and uninstalled the Syncfusion extension.
Hi Paul,
We have checked various possible scenarios, but we are unable to reproduce this issue. Could you please share the following details to help us proceed with this issue and replicate it?
What type of file were you working on in Visual Studio when you encountered the issue.
If possible, could you provide a comprehensive video demonstration of the issue?
Gather log file. Please follow the steps in the link to get the Gather log file.
Hi,
I'd like to jump in on this issue as I'm getting this too (see below). Every time I start VS 2022 and open my .NET solution which in no way references Syncfusion a log file is created with multiple errors.
I have also attached logs.
Date:2025-08-06 22:05:46,080
Thread:[1]
Level:ERROR
Logger:InsertBlazorCode.SyncfusionCodeGeneratorMenuCommand [(null)]
Message:System.ArgumentException: The path is not of a legal form.
at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
at System.IO.Path.InternalGetDirectoryName(String path)
at InsertBlazorCode.SyncfusionCodeGeneratorMenuCommand.queryStatusMenuCommand_BeforeQueryStatus(Object sender, EventArgs e) in C:\Git\RP\vsext_insertblazorcode\SyncfusionBlazorcodegenerator\SyncfusionCodeGeneratorMenuCommand.cs:line 331
Date:2025-08-06 22:06:13,691
Thread:[1]
Level:ERROR
Logger:InsertBlazorCode.SyncfusionCodeGeneratorMenuCommand [(null)]
Message:System.ArgumentException: The path is not of a legal form.
at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
at System.IO.Path.InternalGetDirectoryName(String path)
at InsertBlazorCode.SyncfusionCodeGeneratorMenuCommand.queryStatusMenuCommand_BeforeQueryStatus(Object sender, EventArgs e) in C:\Git\RP\vsext_insertblazorcode\SyncfusionBlazorcodegenerator\SyncfusionCodeGeneratorMenuCommand.cs:line 331
Date:2025-08-06 22:06:20,959
Thread:[1]
Level:ERROR
Logger:InsertBlazorCode.SyncfusionCodeGeneratorMenuCommand [(null)]
Message:System.ArgumentException: The path is not of a legal form.
at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
at System.IO.Path.InternalGetDirectoryName(String path)
at InsertBlazorCode.SyncfusionCodeGeneratorMenuCommand.queryStatusMenuCommand_BeforeQueryStatus(Object sender, EventArgs e) in C:\Git\RP\vsext_insertblazorcode\SyncfusionBlazorcodegenerator\SyncfusionCodeGeneratorMenuCommand.cs:line 331
Date:2025-08-06 22:06:45,655
Thread:[1]
Level:ERROR
Logger:InsertBlazorCode.SyncfusionCodeGeneratorMenuCommand [(null)]
Message:System.ArgumentException: The path is not of a legal form.
at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
at System.IO.Path.InternalGetDirectoryName(String path)
at InsertBlazorCode.SyncfusionCodeGeneratorMenuCommand.queryStatusMenuCommand_BeforeQueryStatus(Object sender, EventArgs e) in C:\Git\RP\vsext_insertblazorcode\SyncfusionBlazorcodegenerator\SyncfusionCodeGeneratorMenuCommand.cs:line 331
Hi Dharminder,
We have created a new ticket under your account to follow up with this query. We suggest you to follow up with the ticket for further updates. Please login using the below link.
https://support.syncfusion.com/support
Regards,
V. Kesavaraman