BoldDesk®Customer service software offering ticketing, live chat, and omnichannel support, starting at $49/mo. for 10 agents. Try it for free.
hello
sorry if the control type that i selected is wrong because i didnt know what to select, im having a trouble when i try to make a new project using syncfusuing winforms app, i get this error
call stack:
System.NullReferenceException: Object reference not set to an instance of an object.
at Syncfusion.Templates.UI.ViewModels.NewProject.MainViewModel.<OnTemplatesAvailableAsync>d__55.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Syncfusion.Templates.UI.ViewModels.Common.BaseMainViewModel.<OnSyncStatusChanged>d__35.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Window.ShowHelper(Object booleanBox)
at System.Windows.Window.ShowDialog()
at Microsoft.Internal.VisualStudio.PlatformUI.WindowHelper.ShowModal(Window window, IntPtr parent)
at Syncfusion.Templates.UI.VisualStudio.VsGenShell.<>c__DisplayClass26_0.<<ShowModal>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.Threading.JoinableTask.CompleteOnCurrentThread()
at Syncfusion.Templates.UI.VisualStudio.VsGenShell.ShowModal(IWindow shell)
at Syncfusion.Templates.UI.Launcher.WizardLauncher.LaunchWizardShell(IWizardShell wizardShell)
at Syncfusion.Templates.UI.Launcher.WizardLauncher.StartWizard(IWizardShell wizardShell, WizardTypeEnum wizardType)
screenshot of the error:
Hi,
Thank you for contacting us! After thoroughly reviewing your query, we were able to reproduce this issue on our end. Please refer to the details below for your query.
Root Cause:
It seems that there might be older version extension cache files present in your Visual Studio directories, which could be causing the error you've encountered. Rest assured, selecting controls from our template should not cause any issues as you've described.
Solution:
To resolve this issue, we recommend uninstalling all Syncfusion extensions from Visual Studio, removing the cache files, and then reinstalling them. Here are the steps to do so:
Steps to uninstall the extension and remove cache files:
Steps to Install the extension from Build location:
Build Location Directory: C:\Program Files (x86)\Syncfusion\Essential Studio\Windows\$YourBuildVERSION$\Utilities\Extensions\$YourVisualStudioVERSION$\Syncfusion WinForms Template Studio.vsix.
If the issue persists after following the provided workaround, kindly provide the following details to assist you further:
1. In Visual Studio, navigate to Extensions -> Manage Extensions -> Installed and search for the Syncfusion extensions by entering the keyword “syncfusion” in the search box. Please share a screenshot of that dialog.
2. In Visual Studio, go to Help -> About Microsoft Visual Studio and click the "Copy info" button. Then, paste the information into a text file and share it with us.
3. Gather log file. Please follow the steps in the link to get the Gather log file.
We appreciate your cooperation. Please feel free to reach out to us if you have any further concerns.
Regards,
Sivasankar M.
it worked!
Thanks for your help, i really appreciate it.