Architect - Error when getting menu for data structure

In Architect build 2025.11.0.4075 right-click on a data structure or its children (concrete entity or rule set etc.) ends with the following error. Clicking on a model structure element (Filter Sets, Sort Sets etc.) works well.

Error
Could not load file or assembly 'System.Diagnostics.DiagnosticSource, Version=6.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
========================================
Could not load file or assembly 'System.Diagnostics.DiagnosticSource, Version=6.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
------------------------------------------
========================================
 Stack trace
========================================
   at System.Reflection.RuntimeAssembly.GetExportedTypes(RuntimeAssembly assembly, ObjectHandleOnStack retTypes)
   at System.Reflection.RuntimeAssembly.GetExportedTypes()
   at Origam.Extensions.TypeExtensions.GetExportedTypes(Assembly assembly)
   at System.Linq.Enumerable.<SelectManyIterator>d__17`2.MoveNext()
   at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
   at System.Linq.Enumerable.<SelectManyIterator>d__17`2.MoveNext()
   at System.Linq.Enumerable.<DistinctIterator>d__64`1.MoveNext()
   at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
   at System.Linq.Enumerable.<OfTypeIterator>d__95`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Origam.Workbench.Commands.MoveToAnotherPackage.get_IsEnabled()
   at Origam.UI.AsMenuCommand.get_IsEnabled()
   at Origam.UI.AsMenuCommand.UpdateItemsToDisplay()
   at Origam.UI.MenuItemTools.UpdateMenuItems(ToolStripItemCollection itemsToUpdate, IEnumerable`1 itemsToAdd, Object caller)
   at Origam.UI.AsContextMenu.OnOpening(CancelEventArgs e)
   at System.Windows.Forms.ToolStripDropDown.SetVisibleCore(Boolean visible)
   at System.Windows.Forms.ToolStripDropDown.Show(Control control, Point position)
   at System.Windows.Forms.ContextMenuStrip.ShowInternal(Control source, Point location, Boolean isKeyboardActivated)
   at System.Windows.Forms.Control.WmContextMenu(Message& m, Control sourceControl)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.UserControl.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

It also isn’t possible to connect to the database.

ERROR Origam.Security.AbstractProfileProvider - Could not load file or assembly 'Microsoft.Data.SqlClient, Version=5.0.0.0, Culture=neutral, PublicKeyToken=23ec7fc2d6eaa4a5' or one of its dependencies. The system cannot find the file specified.
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Data.SqlClient, Version=5.0.0.0, Culture=neutral, PublicKeyToken=23ec7fc2d6eaa4a5' or one of its dependencies. The system cannot find the file specified.
File name: 'Microsoft.Data.SqlClient, Version=5.0.0.0, Culture=neutral, PublicKeyToken=23ec7fc2d6eaa4a5'
   at Origam.DA.Service.DataLoader.Fill()
   at Origam.DA.Service.AbstractSqlDataService.LoadDataSet(DataStructureQuery query, IPrincipal principal, DataSet dataset, String transactionId)
   at Origam.DA.Service.AbstractSqlDataService.LoadDataSet(DataStructureQuery dataStructureQuery, IPrincipal principal, String transactionId)
   at Origam.Workflow.DataServiceAgent.LoadData(DataStructureQuery query, DataSet data)
   at Origam.Workflow.DataServiceAgent.Run()
   at Origam.Security.OrigamProfileProvider.GetProfileData(String userName)
   at Origam.Security.OrigamProfileProvider.GetProfile(String userName)

In Architect 2025.11.0.4082 the error still occurs and the connection to the database still can’t be established due to a missing library.

Error
Could not load file or assembly 'System.Diagnostics.DiagnosticSource, Version=6.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
========================================
Could not load file or assembly 'System.Diagnostics.DiagnosticSource, Version=6.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
------------------------------------------
========================================
 Stack trace
========================================
   at System.Reflection.RuntimeAssembly.GetExportedTypes(RuntimeAssembly assembly, ObjectHandleOnStack retTypes)
   at System.Reflection.RuntimeAssembly.GetExportedTypes()
   at Origam.Extensions.TypeExtensions.GetExportedTypes(Assembly assembly)
   at System.Linq.Enumerable.<SelectManyIterator>d__17`2.MoveNext()
   at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
   at System.Linq.Enumerable.<SelectManyIterator>d__17`2.MoveNext()
   at System.Linq.Enumerable.<DistinctIterator>d__64`1.MoveNext()
   at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
   at System.Linq.Enumerable.<OfTypeIterator>d__95`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Origam.Workbench.Commands.MoveToAnotherPackage.get_IsEnabled()
   at Origam.UI.AsMenuCommand.get_IsEnabled()
   at Origam.UI.AsMenuCommand.UpdateItemsToDisplay()
   at Origam.UI.MenuItemTools.UpdateMenuItems(ToolStripItemCollection itemsToUpdate, IEnumerable`1 itemsToAdd, Object caller)
   at Origam.UI.AsContextMenu.OnOpening(CancelEventArgs e)
   at System.Windows.Forms.ToolStripDropDown.SetVisibleCore(Boolean visible)
   at System.Windows.Forms.ToolStripDropDown.Show(Control control, Point position)
   at System.Windows.Forms.ContextMenuStrip.ShowInternal(Control source, Point location, Boolean isKeyboardActivated)
   at System.Windows.Forms.Control.WmContextMenu(Message& m, Control sourceControl)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.UserControl.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
ERROR Origam.DA.Service.DataLoader - Unable to load DLL 'Microsoft.Data.SqlClient.SNI.x64.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E), SQL: SELECT (SELECT TOP 1 [Resource].[refOrganizationId] AS [refOrganizationId] FROM [Resource] AS [Resource] WHERE  (  ([Resource].[refBusinessPartnerId] = [BusinessPartner].[Id]) AND  ([Resource].[refResourceTypeId] = 'e0360aa5-fa37-4e3d-9827-26f6b4a8905e')) ) AS [Organization_Id], [BusinessPartner].[RecordCreated] AS [RecordCreated], [BusinessPartner].[Id] AS [Id], (SELECT TOP 1 [Resource].[Id] AS [Id] FROM [Resource] AS [Resource] WHERE  (  ([Resource].[refBusinessPartnerId] = [BusinessPartner].[Id]) AND  ([Resource].[refResourceTypeId] = 'e0360aa5-fa37-4e3d-9827-26f6b4a8905e')) ) AS [Resource_Id], [BusinessPartner].[LookupText] AS [FullName], (SELECT TOP 1 [Resource].[refBusinessUnitId] AS [refBusinessUnitId] FROM [Resource] AS [Resource] WHERE  (  ([Resource].[refBusinessPartnerId] = [BusinessPartner].[Id]) AND  ([Resource].[refResourceTypeId] = 'e0360aa5-fa37-4e3d-9827-26f6b4a8905e')) ) AS [BusinessUnit_Id], [BusinessPartner].[Name] AS [Name], [BusinessPartner].[UserName] AS [UserName], [BusinessPartner].[UserEmail] AS [UserEmail] FROM [BusinessPartnerLookup] AS [BusinessPartner] WHERE  (  ([BusinessPartner].[UserName] = @BusinessPartner_parUserName))
System.DllNotFoundException: Unable to load DLL 'Microsoft.Data.SqlClient.SNI.x64.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
   at Microsoft.Data.SqlClient.SNINativeManagedWrapperX64.UnmanagedIsTokenRestricted(IntPtr token, Boolean& isRestricted)
   at Microsoft.Data.SqlClient.SNINativeMethodWrapper.UnmanagedIsTokenRestricted(IntPtr token, Boolean& isRestricted)
   at Microsoft.Data.Win32NativeMethods.IsTokenRestrictedWrapper(IntPtr token)
   at Microsoft.Data.ProviderBase.DbConnectionPoolIdentity.GetCurrent()
   at Microsoft.Data.ProviderBase.DbConnectionPoolGroup.GetConnectionPool(DbConnectionFactory connectionFactory)
   at Microsoft.Data.ProviderBase.DbConnectionFactory.GetConnectionPool(DbConnection owningObject, DbConnectionPoolGroup connectionPoolGroup)
   at Microsoft.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
   at Microsoft.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
   at Microsoft.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry)
   at Microsoft.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry, SqlConnectionOverrides overrides)
   at Microsoft.Data.SqlClient.SqlConnection.Open(SqlConnectionOverrides overrides)
   at Origam.DA.Service.DataLoader.Fill()

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.