Error by Syncfusion Extension in Visual Studio build process

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



5 Replies

VA Valan Arockiya Kiraswin Arockiya Jesu Syncfusion Team March 24, 2025 10:19 AM UTC

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:

  1. Did the issue occur immediately after clicking on the Syncfusion Code Generator, or did it happen when selecting a control?

  2. In which file are you using the Syncfusion Code Generator?

  3. Which control were you selecting when the issue occurred?

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



PM Paul McCranie March 24, 2025 05:51 PM UTC

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. 



KV Kesavaraman Venkadesan Syncfusion Team March 25, 2025 04:39 PM UTC

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?

  1. What type of file were you working on in Visual Studio when you encountered the issue.

  2. If possible, could you provide a comprehensive video demonstration of the issue?

  3. Gather log file. Please follow the steps in the link  to get the Gather log file.

Regards,
V. Kesavaraman


DS Dharminder Shinh August 7, 2025 02:13 PM UTC

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



Attachment: SyncfusionLogs_20250807_041258_4777fe5.7z


KV Kesavaraman Venkadesan Syncfusion Team August 14, 2025 11:52 AM UTC

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


Loader.
Up arrow icon