Cannot upload data into SQL Server - sql-server

Why do I keep seeing this error?
Execution timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
I don't know if the problem is in the server, or in the system itself or in the web service that created. I reconfigure the server to clear the cache memory and run a test but no luck still have that problem.
This is the code where the error is tracing
DialogWaitForm.Show()
BillInfoTableAdapter.Fill(ReportsDataSet.BillInfo, CType(CreateBillingForm.CurrentBillTransactionID, Long))
Dim row As ReportsDataSet.BillInfoRow
row = CType(CType(BillInfoBindingSource.Current, DataRowView).Row, ReportsDataSet.BillInfoRow)
Me.BillingTransactionsTableAdapter.Fill(Me.ReportsDataSet.BillingTransactions, CType(CreateBillingForm.ComboBoxClient.SelectedValue, Long), statementid(), row.BeginDate.Year)
Dim row4 As ReportsDataSet.BillingTransactionsRow
row4 = CType(CType(BillingTransactionsBindingSource.Current, DataRowView).Row, ReportsDataSet.BillingTransactionsRow)
BillingTransactionsBindingSource.MoveFirst()
Me.BillingAIRBILLSPerServiceTableAdapter.Fill(Me.ReportsDataSet.BillingAIRBILLSPerService, row.ID)
Me.BillingCurrentChargesTableAdapter.Fill(Me.ReportsDataSet.BillingCurrentCharges, CType(Client(), Long), CType(_current(), Decimal), CType(_currentyear, Decimal), statementid())
Me._30daysTableAdapter.Fill(Me.ReportsDataSet._30days, CType(Client(), Long), CType(_30(), Decimal), CType(_30year, Decimal), CType(statementid(), Long))
Me._60daysTableAdapter.Fill(Me.ReportsDataSet._60days, CType(Client(), Long), CType(_60(), Decimal), CType(_60year, Decimal), CType(statementid(), Long))
Me._90daysTableAdapter.Fill(Me.ReportsDataSet._90days, CType(Client(), Long), CType(_90(), Decimal), CType(_90year, Decimal), CType(statementid(), Long))
Me._120daysTableAdapter.Fill(Me.ReportsDataSet._120days, CType(Client(), Long), CType(_120(), Decimal), CType(_120year, Decimal), CType(statementid(), Long))
Me.morethan120daysTableAdapter.Fill(Me.ReportsDataSet.morethan120days, CType(Client(), Long), morethan120)
Me.ThisYearPreviousBalanceCrTableAdapter.Fill(Me.ReportsDataSet.ThisYearPreviousBalanceCr, CType(Client(), Long), row4.StatementOrRecptDate.Date)
Me.BillingCurrentCRTableAdapter.Fill(Me.ReportsDataSet.BillingCurrentCR, CType(Client(), Long), CType(_current(), Decimal), CType(_currentyear, Decimal), CType(statementid(), Long))
Me._30daysCRTableAdapter.Fill(Me.ReportsDataSet._30daysCR, CType(Client(), Long), CType(_30(), Decimal), CType(_30year, Decimal), CType(statementid(), Long))
Me._60daysCRTableAdapter.Fill(Me.ReportsDataSet._60daysCR, CType(Client(), Long), CType(_60(), Decimal), CType(_60year, Decimal), CType(statementid(), Long))
Me._90daysCRTableAdapter.Fill(Me.ReportsDataSet._90daysCR, CType(Client(), Long), CType(_90(), Decimal), CType(_90year, Decimal), CType(statementid(), Long))
Me._120daysCRTableAdapter.Fill(Me.ReportsDataSet._120daysCR, CType(Client(), Long), CType(_120(), Decimal), CType(_120year, Decimal), CType(statementid(), Long))
Me.morethan120daysCRTableAdapter.Fill(Me.ReportsDataSet.morethan120daysCR, CType(Client(), Long), morethan120, row.StatementID)
Me.ThisYearPreviousBalanceDrTableAdapter.Fill(Me.ReportsDataSet.ThisYearPreviousBalanceDr, CType(Client(), Long), row4.StatementOrRecptDate)
fillbilltransaction()
If CreateBillingForm.RadioButtonWithPOD.Checked = True Then
filltempWithPOD()
Else
filltempNoPOD()
End If
DialogWaitForm.Dispose()
Me.ReportViewer1.RefreshReport()
now I have this error
The server was unable to process the request due to an internal error.
For more information about the error, either turn on
IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute
or from the configuration behavior) on the server in
order to send the exception information back to the client, or turn on
tracing as per the Microsoft .NET Framework SDK documentation and
inspect the server trace logs.
what happened to my server please help TIA.
this is the stack trace error
System.ServiceModel.FaultException was unhandled
HResult=-2146233087
Message=The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework SDK documentation and inspect the server trace logs.
Source=mscorlib
StackTrace:
Server stack trace:
at System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter)
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at JRS_Online_Apps_III.ServiceReferenceBilling.IService.RequestGenerateBill(String rclid, String ruserid, String rbrid, String rdatefrom, String rdateto, String rduedate, String careof, Int64[] rairbillsids, Decimal rNet, Decimal rRvat, Int32 rstatement, String bir)
at JRS_Online_Apps_III.ServiceReferenceBilling.ServiceClient.RequestGenerateBill(String rclid, String ruserid, String rbrid, String rdatefrom, String rdateto, String rduedate, String careof, Int64[] rairbillsids, Decimal rNet, Decimal rRvat, Int32 rstatement, String bir) in C:\Users\REGIME\Desktop\New folder\JRS_Online_Apps_III\JRS_Online_Apps_III\Service References\ServiceReferenceBilling\Reference.vb:line 254
at JRS_Online_Apps_III.CreateBillingForm.Button1_Click(Object sender, EventArgs e) in C:\Users\REGIME\Desktop\New folder\JRS_Online_Apps_III\JRS_Online_Apps_III\Billing\CreateBillingForm.vb:line 238
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
at JRS_Online_Apps_III.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
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 System.Threading.ThreadHelper.ThreadStart()
InnerException:
Updated Code
sqlconnect()
sqltable = New DataTable
sqladapter = New SqlDataAdapter("SELECT * FROM AIRBILLS WHERE AirbillNo = '" & "123456" & "'",sqlcon)
sqladapter.Fill(sqltable)
MsgBox(sqltable.Rows(0)("Addressee"))
this is my error
https://ibb.co/ih3aQG

Your last Sql Select Statement doesn't look ok ... isn't there a "=" sign missing? Like "SELECT * FROM AIRBILLS WHERE AirbillNo = '" & "123456" & "'", ...
Apart from that you should think about using SqlParameters for passing Parameters ...

Related

SqlGeography.STGeomFromText throw exception when creating Polygon

During creating Polygon it throws execution. I am using library Microsoft.SqlServer.Types latest version 160.
polyText = "POLYGON ((
45.3972179 8.8406638000000157,
45.4215054 8.9151509000000715,
45.4001544 8.9361126999999669,
45.4016369 8.9607184999999845,
45.3851877 8.9621395000000348,
45.3853039 8.948319999999967,
45.3747296 8.9535720999999739,
45.3858019 8.9360727000000679,
45.3579525 8.8890794000000142,
45.3414371 8.90664240000001,
45.3452409 8.91328980000003,
45.3273192 8.92622259999996,
45.3185438 8.9208002999999962,
45.3405949 8.8954118000000335,
45.3471543 8.866777299999967,
45.3587372 8.8690788999999768,
45.3675493 8.8504374999999982,
45.3972179 8.8406638000000157,
45.3972179 8.8406638000000157,
45.3972179 8.8406638000000157
))
"
SqlGeography poly = SqlGeography.STGeomFromText(new SqlChars(polyText), 4326);
Exception statk
SQL Server Spatial library could not be loaded. Error code: 126 (HResult: 0x80131524).
Microsoft.SqlServer.Types
System.IO.FileNotFoundException: SQL Server Spatial library could not be loaded. Error code: 126 (HResult: 0x80131524).
at Microsoft.SqlServer.Types.GLNativeMethods.ThowIfGLNativeLibraryNotLoaded()
at Microsoft.SqlServer.Types.GLNativeMethods.GeodeticIsValid(GeoData& g, Double eccentricity, Boolean forceKatmai)
at Microsoft.SqlServer.Types.SqlGeography.IsValidExpensive(Boolean forceKatmai)
at Microsoft.SqlServer.Types.SqlGeography..ctor(GeoData g, Int32 srid)
at Microsoft.SqlServer.Types.SqlGeography.GeographyFromText(OpenGisType type, SqlChars taggedText, Int32 srid)
at Microsoft.SqlServer.Types.SqlGeography.STGeomFromText(SqlChars geometryTaggedText, Int32 srid)
at webNet.Area.Default.DrawShapesFromSql(String polyText, String areaName) in C:\Project\webNet\Area\Default.aspx.cs:line 474
at webNet.Area.Default.LoadForm() in C:\Project\webNet\Area\Default.aspx.cs:line 93
Created SqlGeography.Point it works fine without problem, only creating reading inserting polygon due it throws error.
I managed to resolve this exception by downgrading Microsoft.SqlServer.Types to version 14

Error messages with the 2sxc 11.07 LTS, Had an error talking to the server (status 405)

I use DNN 9.8.0 new install, language (Swiss) German
If I want to delete an app (Gallery App v5) in the Manage Apps in Zone 2 this message comes after entering yes! in the browser:
Had an error talking to the server (status 405).
if you are an advanced user you can learn more about what went wrong - discover how on 2sxc.org/help?tag=debug
Something else about the browser:
Nothing is shown in Safarai 14.0.1 except the table, but there are no apps (empty field)
Sorry, i work with Safari and Mac...
I see the app in Firefox / Windows 10
The DNN log file shows me this:
2020-11-19 09:05:06.755+01:00 [vps74][D:2][T:8][ERROR] DotNetNuke.Services.Exceptions.Exceptions - FriendlyMessage="Fehler: ist zur Zeit nicht verf�gbar." ctrl="ASP.desktopmodules_tosic_sexycontent_view_ascx" exc="System.ArgumentException: Ein Element mit dem gleichen Schl�ssel wurde bereits hinzugef�gt.
bei System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
bei System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
bei ToSic.Sxc.Cms.Publishing.PagePublishingResolverBase.Requirements(Int32 instanceId) in C:\Projects\2sxc\2sxc\Src\Sxc\ToSic.Sxc\Cms\Publishing\PagePublishingResolverBase.cs:Zeile 20.
bei ToSic.Sxc.Cms.Publishing.PagePublishingResolverBase.GetPublishingState(Int32 instanceId) in C:\Projects\2sxc\2sxc\Src\Sxc\ToSic.Sxc\Cms\Publishing\PagePublishingResolverBase.cs:Zeile 33.
bei ToSic.Sxc.Dnn.Run.DnnContext.Create(ISite site, IContainer container, IUser user, IServiceProvider serviceProvider, List`1 overrideParams) in C:\Projects\2sxc\2sxc\Src\Dnn\ToSic.Sxc.Dnn\Dnn\Run\DnnInstanceContext.cs:Zeile 27.
bei ToSic.SexyContent.View.get_Block() in C:\Projects\2sxc\2sxc\Src\Dnn\ToSic.Sxc.Dnn.Main\View.ascx.cs:Zeile 21.
bei ToSic.SexyContent.View.EnsureCmsBlockAndPortalIsReady() in C:\Projects\2sxc\2sxc\Src\Dnn\ToSic.Sxc.Dnn.Main\View.ascx.Errors.cs:Zeile 19.
bei ToSic.SexyContent.View.<Page_Load>b__9_0() in C:\Projects\2sxc\2sxc\Src\Dnn\ToSic.Sxc.Dnn.Main\View.ascx.cs:Zeile 58.
bei ToSic.SexyContent.View.TryCatchAndLogToDnn(Action action, Action`1 timerWrap) in C:\Projects\2sxc\2sxc\Src\Dnn\ToSic.Sxc.Dnn.Main\View.ascx.Errors.cs:Zeile 44."
2020-11-19 17:54:22.986+01:00 [vps74][D:2][T:83][ERROR] DotNetNuke.Data.PetaPoco.PetaPocoHelper - [4] Error executing SQL: ;Exec dbo.AddFolder #0, #1, #2, #3, #4, #5, #6, #7, #8, #9, #10, #11, #12, #13
Verletzung der UNIQUE KEY-Einschr�nkung "IX_FolderPath". Ein doppelter Schl�ssel kann in das dbo.Folders-Objekt nicht eingef�gt werden. Der doppelte Schl�sselwert ist (0, adam/Gallery-Fancybox3/bVPOkkxHBEy4pYRDFHZMiw/).
Die Anweisung wurde beendet.
Nachtrag vom 20.11.2020, nach dem Upgrade auf 2sic 11.10.01
2020-11-20 09:36:56.701+01:00 [vps74][D:3][T:155][ERROR] DotNetNuke.Services.Exceptions.Exceptions - System.ArgumentException: Ein Element mit dem gleichen Schl�ssel wurde bereits hinzugef�gt.
bei System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
bei System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
bei ToSic.Eav.Data.LazyFastAccess.GetRepo(Int32 id) in C:\Projects\2sxc\eav-server\ToSic.Eav.Core\Data\Lists\LazyFastAccess.cs:Zeile 29.
bei ToSic.Eav.Data.LazyEntities.b__18_1(Nullable`1 l) in C:\Projects\2sxc\eav-server\ToSic.Eav.Core\Data\Entities\LazyEntities.cs:Zeile 150.
bei System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
bei System.Collections.Generic.List1..ctor(IEnumerable1 collection)
bei System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
bei ToSic.Eav.Data.LazyEntities.LoadEntities() in C:\Projects\2sxc\eav-server\ToSic.Eav.Core\Data\Entities\LazyEntities.cs:Zeile 143.
bei ToSic.Eav.Data.LazyEntities.GetEnumerator() in C:\Projects\2sxc\eav-server\ToSic.Eav.Core\Data\Entities\LazyEntities.cs:Zeile 132.
bei System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
bei System.Collections.Generic.List1..ctor(IEnumerable1 collection)
bei System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
bei ToSic.Sxc.Data.DynamicEntityWithList..ctor(IEntity parent, String field, IEnumerable`1 entities, String[] dimensions, Int32 compatibility, IBlock block) in C:\Projects\2sxc\2sxc\Src\Sxc\ToSic.Sxc\Data\DynamicEntityWithList.cs:Zeile 28.
bei ToSic.Sxc.Data.DynamicEntity.GetEntityValue(String field) in C:\Projects\2sxc\2sxc\Src\Sxc\ToSic.Sxc\Data\DynamicEntity.cs:Zeile 144.
bei ToSic.Sxc.Data.DynamicEntity.TryGetMember(GetMemberBinder binder, Object& result) in C:\Projects\2sxc\2sxc\Src\Sxc\ToSic.Sxc\Data\DynamicEntity.cs:Zeile 98.
bei CallSite.Target(Closure , CallSite , Object )
bei ASP._Page_Portals_0_2sxc_Swiper__swiper_cshtml.Execute() in d:\WEB\EW-WEB\Portals\0\2sxc\Swiper_swiper.cshtml:Zeile 18.
bei System.Web.WebPages.WebPageBase.ExecutePageHierarchy()
bei System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage)
bei ToSic.Sxc.Engines.RazorEngine.Render(TextWriter writer) in C:\Projects\2sxc\2sxc\Src\Dnn\ToSic.Sxc.Razor\Engines\Razor\RazorEngine.cs:Zeile 67.
bei ToSic.Sxc.Engines.RazorEngine.RenderTemplate() in C:\Projects\2sxc\2sxc\Src\Dnn\ToSic.Sxc.Razor\Engines\Razor\RazorEngine.cs:Zeile 77.
bei ToSic.Sxc.Engines.EngineBase.Render() in C:\Projects\2sxc\2sxc\Src\Sxc\ToSic.Sxc\Engines\EngineBase.cs:Zeile 148.
bei ToSic.Sxc.Blocks.BlockBuilder.Render() in C:\Projects\2sxc\2sxc\Src\Sxc\ToSic.Sxc\Blocks\BlockBuilder_Render.cs:Zeile 57.
Do I get "answer" credit if my Issue contains the answwer? :)
Cannot Delete Things - API, Extensionless URI handler overridden by WebDAV

System.AccessViolationException when querying Access Database on Offices x64

I get the following error :
An unhandled exception of type 'System.AccessViolationException' occurred. Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Here is the code where the unhandled exception is thrown (ExecuteScalar) :
Public Shared Function RequeteScalarInteger(ByVal pConnectionBDD As OleDb.OleDbConnection, ByVal pStrSql As String) As Integer
Dim retour As Object = -1
Try
Dim command As OleDbCommand = New OleDbCommand(pStrSql, pConnectionBDD)
retour = command.ExecuteScalar() 'here is the unhandled error
If IsNumeric(retour) Then
retour = CInt(retour)
ElseIf retour Is DBNull.Value Then
retour = -1
ElseIf retour = Nothing Then
retour = 0
Else
retour = -1
End If
command = Nothing
Catch ex As Exception
retour = -1
Debug.Write("RequeteScalarInteger:" & pStrSql)
My.Application.Log.WriteEntry(Now & " - " & ex.Message & vbCrLf & ex.StackTrace & vbCrLf & pStrSql)
End Try
Return CInt(retour)
End Function
Here is the connection string :
"Provider=Microsoft.ACE.OLEDB.12.0;Data source=" & pPathBDD
And here is the Stack trace:
at System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& executeResult)
at System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult)
at System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method)
at System.Data.OleDb.OleDbCommand.ExecuteScalar()
at QuizzDll.Bdd.RequeteScalarInteger(OleDbConnection pConnectionBDD, String pStrSql) in C:\QuizzBox_Solution_Git\QuizzDll\modules\Bdd.vb:line 273
at QuizzDll.Bdd.RequeteScalarInteger(String pStrSql) in C:\QuizzBox_Solution_Git\QuizzDll\modules\Bdd.vb:line 259
at QuizzDll.Bdd.GetClePrimaire(String pStrNomTable) in C:\QuizzBox_Solution_Git\QuizzDll\modules\Bdd.vb:line 518
at QuizzDll.ListePersonneSessionActive.Adapter_RowUpdated(Object sender, OleDbRowUpdatedEventArgs e) in C:\QuizzBox_Solution_Git\QuizzDll\Session\ListePersonneSessionActive.vb:line 1088
at System.Data.OleDb.OleDbDataAdapter.OnRowUpdated(RowUpdatedEventArgs value)
at System.Data.Common.DbDataAdapter.Update(DataRow[] dataRows, DataTableMapping tableMapping)
at System.Data.Common.DbDataAdapter.UpdateFromDataTable(DataTable dataTable, DataTableMapping tableMapping)
at System.Data.Common.DbDataAdapter.Update(DataTable dataTable)
at QuizzDll.dsListePersonneFiltreTableAdapters.tPersonneTableAdapter.Update(tPersonneDataTable dataTable) in C:\QuizzBox_Solution_Git\QuizzDll\Datasets\dsListePersonneFiltre.Designer.vb:line 3209
at QuizzDll.ListePersonneSessionActive.UpdateInBDD() in C:\QuizzBox_Solution_Git\QuizzDll\Session\ListePersonneSessionActive.vb:line 1070
at QuizzDll.ListePersonneSessionActive.ListePersonneSessionActive_ListChanged(Object sender, ListChangedEventArgs e) in C:\QuizzBox_Solution_Git\QuizzDll\Session\ListePersonneSessionActive.vb:line 77
at System.ComponentModel.ListChangedEventHandler.Invoke(Object sender, ListChangedEventArgs e)
at System.ComponentModel.BindingList`1.OnListChanged(ListChangedEventArgs e)
at System.ComponentModel.BindingList`1.InsertItem(Int32 index, T item)
at QuizzDll.ListePersonneSessionActive.InsertItem(Int32 index, PersonneSessionActive item) in C:\QuizzBox_Solution_Git\QuizzDll\Session\ListePersonneSessionActive.vb:line 86
at System.ComponentModel.BindingList`1.AddNewCore()
at System.ComponentModel.BindingList`1.System.ComponentModel.IBindingList.AddNew()
at System.Windows.Forms.CurrencyManager.AddNew()
at Telerik.WinControls.Data.RadListSource`1.AddNew()
at Telerik.WinControls.UI.GridViewNewRowInfo.EndAddNewRow()
at Telerik.WinControls.UI.GridViewNewRowInfo.OnEndEdit()
at Telerik.WinControls.UI.GridViewEditManager.FinishEditingOperation()
at Telerik.WinControls.UI.GridViewEditManager.EndEdit()
at Telerik.WinControls.UI.GridNewRowBehavior.ProcessEnterKey(KeyEventArgs keys)
at Telerik.WinControls.UI.BaseGridBehavior.ProcessKey(KeyEventArgs keys)
at Telerik.WinControls.UI.BaseGridEditor.OnKeyDown(KeyEventArgs keyEventArgs)
at System.Windows.Forms.KeyEventHandler.Invoke(Object sender, KeyEventArgs e)
at Telerik.WinControls.RadItem.OnKeyDown(KeyEventArgs e)
at Telerik.WinControls.UI.RadTextBoxItem.TextBoxControl_KeyDown(Object sender, KeyEventArgs e)
at System.Windows.Forms.Control.OnKeyDown(KeyEventArgs e)
at System.Windows.Forms.Control.ProcessKeyEventArgs(Message& m)
at System.Windows.Forms.Control.WmKeyChar(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.TextBox.WndProc(Message& m)
at Telerik.WinControls.UI.HostedTextBoxBase.WndProc(Message& message)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
at QB_Utilisateur.My.MyApplication.Main(String[] Args) in :line 81 ```
I have this problem only on x64 offices (in all versions 2010, 2013, 2016, 2019 and 365). Everythings works fine on x86 Offices.
My project is well set (x64 platform target) and uses framework 4.8.
I've tried to install AccessDatabaseEngine x64 (2010 and 2016) but i still have the issue.
I've tried the following solutions :
Attempted to read or write protected memory. This is often an indication that other memory is corrupt
Attempted to read or write protected memory
...with no luck ...
in the event viewer i get the following :
Nom du module défaillant : ACECORE.DLL, version : 16.0.4654.1000, horodatage : 0x5a5f3614
Code d’exception : 0xc0000005
Décalage d’erreur : 0x0000000000067ffb
ID du processus défaillant : 0xe8
Heure de début de l’application défaillante : 0x01d65a8cfcdcdd12
Chemin d’accès de l’application défaillante : C:\Program Files\QuizzBox\QB_Utilisateur.exe
Chemin d’accès du module défaillant: C:\Program Files\Common Files\Microsoft Shared\OFFICE16\ACECORE.DLL
ID de rapport : 35a97517-1ba5-4c8f-89fc-7889842b375a
Nom complet du package défaillant :
ID de l’application relative au package défaillant :
XML de l’événement :
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Application Error" />
<EventID Qualifiers="0">1000</EventID>
<Version>0</Version>
<Level>2</Level>
<Task>100</Task>
<Opcode>0</Opcode>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2020-07-15T09:48:18.1625753Z" />
<EventRecordID>6015</EventRecordID>
<Correlation />
<Execution ProcessID="0" ThreadID="0" />
<Channel>Application</Channel>
<Computer>DESKTOP-FSPFO7H</Computer>
<Security />
</System>
<EventData>
<Data>QB_Utilisateur.exe</Data>
<Data>6.2.1.0</Data>
<Data>5ed6029f</Data>
<Data>ACECORE.DLL</Data>
<Data>16.0.4654.1000</Data>
<Data>5a5f3614</Data>
<Data>c0000005</Data>
<Data>0000000000067ffb</Data>
<Data>e8</Data>
<Data>01d65a8cfcdcdd12</Data>
<Data>C:\Program Files\QuizzBox\QB_Utilisateur.exe</Data>
<Data>C:\Program Files\Common Files\Microsoft Shared\OFFICE16\ACECORE.DLL</Data>
<Data>35a97517-1ba5-4c8f-89fc-7889842b375a</Data>
<Data>
</Data>
<Data>
</Data>
</EventData>
</Event>
I've been here and it's quite a nightmare. On some systems, you may have to use a newer provider, such as(note the 16):
"Provider=Microsoft.ACE.OLEDB.16.0;Data source=" & pPathBDD
Something else to try,
"Driver={Microsoft Access Driver (*.mdb, *.accdb)};Dbq=" & pPathBDD

How to remove all views in region in CompositeWPF/Silverlight

I want remove all views from my region in Composite. I'm using Silverlight 4.0.
And unfortunately, this code crashes with OutOfRangeException inside Composite.
List<object> views = new List<object>(_regionManager.Regions["NavigationRegion"].Views);
foreach (object view in views)
{
_regionManager.Regions["NavigationRegion"].Remove(view);
}
This is my callstack:
[External Code]
Microsoft.Practices.Composite.Presentation!Microsoft.Practices.Composite.Presentation.Regions.ViewsCollection.OnCollectionChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs
e = {System.Collections.Specialized.NotifyCollectionChangedEventArgs})
Line 102 + 0x24 bytes C#
Microsoft.Practices.Composite.Presentation!Microsoft.Practices.Composite.Presentation.Regions.ViewsCollection.RemoveAndNotify(System.Collections.IList
items = Count = 1) Line 45 + 0x2b bytes C#
Microsoft.Practices.Composite.Presentation!Microsoft.Practices.Composite.Presentation.Regions.ViewsCollection.UnderlyingCollection_CollectionChanged(object
sender = Count = 0,
System.Collections.Specialized.NotifyCollectionChangedEventArgs e =
{System.Collections.Specialized.NotifyCollectionChangedEventArgs})
Line 153 + 0xb bytes C# [External Code]
Microsoft.Practices.Composite.Presentation!Microsoft.Practices.Composite.Presentation.Regions.Region.Remove(object
view = {Kite.MyApp.SlUI.NavigationRegion.NavigationRegionView}) Line
230 + 0x1b bytes C#
MyApp.SlUI!Kite.MyApp.SlUI.Components.ViewController.linksRegion_LanguageChanged(object
sender = {Kite.MyApp.SlUI.Controls.LinksUserControl},
Kite.MyApp.SlUI.Common.EventArgs e =
{Kite.MyApp.SlUI.Common.EventArgs}) Line 77 + 0x2d bytes C#
MyApp.SlUI!Kite.MyApp.SlUI.Controls.LinksUserControl.OnLanguageChanged(string
newLanguage = "en-GB") Line 37 + 0x32 bytes C#
MyApp.SlUI!Kite.MyApp.SlUI.Controls.LinksUserControl.ComboBox_SelectionChanged(object
sender = {System.Windows.Controls.ComboBox},
System.Windows.Controls.SelectionChangedEventArgs e =
{System.Windows.Controls.SelectionChangedEventArgs}) Line 31 + 0xb
bytes C# [External Code]
What did I wrong?
P.S. In my region I have 3 views. So, composite crashes on removing the third.
Hoping for you help :). Thank you.
UPD: I downloaded debug symbols and found that problem is only in Accordion control as region.
This is full call stack:
mscorlib.dll!System.ThrowHelper.ThrowArgumentOutOfRangeException(System.ExceptionArgument argument, System.ExceptionResource resource) + 0x41 bytes
mscorlib.dll!System.ThrowHelper.ThrowArgumentOutOfRangeException() + 0x10 bytes
mscorlib.dll!System.Collections.Generic.List<object>.this[int].get(int index = 0) + 0x13 bytes
System.Windows.dll!System.Windows.Controls.ItemCollection.GetItemImpl(int index) + 0x15 bytes
System.Windows.dll!System.Windows.Controls.ItemCollection.GetItemImplSkipMethodPack(int index) + 0xb bytes
System.Windows.dll!System.Windows.PresentationFrameworkCollection<System.__Canon>.this[int].get(int index) + 0xb bytes
System.Windows.Controls.Layout.Toolkit!System.Windows.Controls.Accordion.UnselectItem(int index = 0, object item = null) + 0x1aa bytes
System.Windows.Controls.Layout.Toolkit!System.Windows.Controls.Accordion.ChangeSelectedIndex(int oldIndex = 0, int newIndex = -1) + 0x14c bytes
System.Windows.Controls.Layout.Toolkit!System.Windows.Controls.Accordion.OnSelectedIndexPropertyChanged(System.Windows.DependencyObject d = {System.Windows.Controls.Accordion}, System.Windows.DependencyPropertyChangedEventArgs e = {System.Windows.DependencyPropertyChangedEventArgs}) + 0x1d9 bytes
System.Windows.dll!System.Windows.DependencyObject.RaisePropertyChangeNotifications(System.Windows.DependencyProperty dp = {System.Windows.CustomDependencyProperty}, object oldValue, object newValue) + 0x51 bytes
System.Windows.dll!System.Windows.DependencyObject.UpdateEffectiveValue(System.Windows.DependencyProperty property, System.Windows.EffectiveValueEntry oldEntry, ref System.Windows.EffectiveValueEntry newEntry, System.Windows.DependencyObject.ValueOperation operation) + 0xf5 bytes
System.Windows.dll!System.Windows.DependencyObject.SetValueInternal(System.Windows.DependencyProperty dp, object value, bool allowReadOnlySet) + 0x2ad bytes
System.Windows.dll!System.Windows.DependencyObject.SetValue(System.Windows.DependencyProperty dp, object value) + 0xb bytes
System.Windows.Controls.Layout.Toolkit!System.Windows.Controls.Accordion.SelectedIndex.set(int value = -1) + 0x4d bytes
System.Windows.Controls.Layout.Toolkit!System.Windows.Controls.Accordion.OnItemsChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs e = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) + 0x737 bytes
System.Windows.dll!System.Windows.Controls.ItemsControl.OnItemCollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e) + 0x52 bytes
System.Windows.dll!System.Windows.Controls.ItemCollection.NotifyCollectionChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs e) + 0x37 bytes
System.Windows.dll!System.Windows.Controls.ItemCollection.NotifyItemsCollectionChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs e) + 0x1f bytes
System.Windows.dll!System.Windows.Controls.ItemCollection.EnumerableCollectionView.System.Windows.Controls.ICollectionChangedListener.OnCollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e) + 0x4f bytes
System.Windows.dll!System.Windows.Controls.WeakCollectionChangedListener.SourceCollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e) + 0x3d bytes
Microsoft.Practices.Composite.Presentation!Microsoft.Practices.Composite.Presentation.Regions.ViewsCollection.OnCollectionChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs e = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 102 + 0x24 bytes C#
Microsoft.Practices.Composite.Presentation!Microsoft.Practices.Composite.Presentation.Regions.ViewsCollection.RemoveAndNotify(System.Collections.IList items = Count = 1) Line 45 + 0x2b bytes C#
Microsoft.Practices.Composite.Presentation!Microsoft.Practices.Composite.Presentation.Regions.ViewsCollection.UnderlyingCollection_CollectionChanged(object sender = Count = 0, System.Collections.Specialized.NotifyCollectionChangedEventArgs e = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 153 + 0xb bytes C#
System.Windows.dll!System.Collections.ObjectModel.ObservableCollection<Microsoft.Practices.Composite.Presentation.Regions.ItemMetadata>.OnCollectionChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs e) + 0x37 bytes
System.Windows.dll!System.Collections.ObjectModel.ObservableCollection<System.__Canon>.RemoveItem(int index) + 0xa1 bytes
mscorlib.dll!System.Collections.ObjectModel.Collection<Microsoft.Practices.Composite.Presentation.Regions.ItemMetadata>.Remove(Microsoft.Practices.Composite.Presentation.Regions.ItemMetadata item) + 0x75 bytes
Microsoft.Practices.Composite.Presentation!Microsoft.Practices.Composite.Presentation.Regions.Region.Remove(object view = {Kite.MyApp.SlUI.NavigationRegion.NavigationRegionView}) Line 230 + 0x1b bytes C#
Check first that _regionManager.Regions["NavigationRegion"] actually exists and is non null like so
if (_regionManager.Regions["NavigationRegion"] != null)
{
List<object> views = new List<object>(_regionManager.Regions["NavigationRegion"].Views);
foreach (object view in views)
{
_regionManager.Regions["NavigationRegion"].Remove(view);
}
}
It may be that NavigationRegion isnt set up properly, or there is a typo or something like that
use a for loop not foreach when modifying a collection
if you want to remove just one, you could do:
_regionManager.Regions["NavigationRegion"].Remove(
_regionManager.Regions["NavigationRegion"].GetView("viewName"));

Practical use for Dispatcher.DisableProcessing?

What is a common real life use for Dispatcher.DisableProcessing in WPF? Can I use it to suspend rendering and layout when I build a complex UI in code?
As per MSDN:
Disabling dispatcher processing is an
advanced method that is intended to
eliminate the chance of unrelated
reentrancy.
So you're doing some work on the same thread the Dispatcher is executing on, but you don't want it processing events whilst you do that work. I think the really pertinent point is:
The effects of disabling processing
are as follows:
* CLR locks will not pump messages internally.
If I understand this correctly, it means that you can safely lock and not have the dispatcher pump events as a result (which might cause undesired reentrancy).
I can shared a case we've encountered recently. It's from the PropertyChangedEventManager used inside WPF for PropertyChanged event handler management. We've captured the stack when the GUI is dead:
0:000> !mk
Thread 0:
SP IP
00:U 00000000002b7ef8 0000000076efc3ea ntdll!ZwWaitForMultipleObjects+0xa
01:U 00000000002b7f00 000007fefcfc1420 KERNELBASE!WaitForMultipleObjectsEx+0xe8
02:U 00000000002b8000 0000000076db1743 kernel32!WaitForMultipleObjectsExImplementation+0xb3
03:U 00000000002b8090 0000000076c28f7d user32!RealMsgWaitForMultipleObjectsEx+0x12a
04:U 00000000002b8130 0000000076c262b2 user32!MsgWaitForMultipleObjectsEx+0x46
05:U 00000000002b8170 000007fefeaeacd6 ole32!CCliModalLoop::BlockFn+0xc2 [d:\w7rtm\com\ole32\com\dcomrem\callctrl.cxx # 1222]
06:U 00000000002b81c0 000007fefec0a422 ole32!CoWaitForMultipleHandles+0x102 [d:\w7rtm\com\ole32\com\dcomrem\sync.cxx # 109]
07:U 00000000002b82d0 000007feec2865f2 clr!MsgWaitHelper+0x8e
08:U 00000000002b8340 000007feec286559 clr!Thread::DoAppropriateWaitWorker+0x29b
09:U 00000000002b8440 000007feec2b8591 clr!Thread::DoAppropriateWait+0x7d
0a:U 00000000002b84c0 000007feec286eb1 clr!SynchronizationContextNative::WaitHelper+0x181
0b:M 00000000002b88a0 000007feee7c9c39 System.Windows.Threading.DispatcherSynchronizationContext.Wait(IntPtr[], Boolean, Int32)(+0x29 Native)
0c:U 00000000002b88e0 000007feec19a7f3 clr!CallDescrWorkerInternal+0x83
0d:U 00000000002b8920 000007feec19a6de clr!CallDescrWorkerWithHandler+0x4a
0e:U 00000000002b8960 000007feec19ae76 clr!MethodDescCallSite::CallTargetWorker+0x251
0f:U 00000000002b8b10 000007feec300d01 clr!Thread::DoSyncContextWait+0xc2
10:U 00000000002b8c70 000007feec300c32 clr!Thread::DoAppropriateWaitWorker+0x4867e
11:U 00000000002b8d70 000007feec2b8591 clr!Thread::DoAppropriateWait+0x7d
12:U 00000000002b8df0 000007feec2b883d clr!CLREventBase::WaitEx+0xc0
13:U 00000000002b8e80 000007feec64046d clr!CRWLock::RWWaitForSingleObject+0x4d
14:U 00000000002b8f20 000007feec5b15b7 clr!CRWLock::StaticAcquireReaderLock+0x3b99af
15:U 00000000002b8f80 000007feec1f7ba7 clr!CRWLock::StaticAcquireReaderLockPublic+0xa7
16:M 00000000002b90f0 000007feee7f2a9c System.ComponentModel.PropertyChangedEventManager.OnPropertyChanged(System.Object, System.ComponentModel.PropertyChangedEventArgs)(+0x6 IL,+0xfc Native)
17:M 00000000002b9250 000007fe91bf5243 Telerik.Windows.Controls.GridView.GridViewDataControl.set_CurrentCellInfo(Telerik.Windows.Controls.GridViewCellInfo)(+0x0 IL,+0x313 Native) [c:\projects\Stride\Telerik_UI_for_WPF_Source_2015_1_0401\Controls\GridView\GridView\GridView\GridViewDataControl.cs # 1019,5]
18:M 00000000002b92c0 000007fe9219b3f7 Telerik.Windows.Controls.GridView.GridViewCell.OnGotFocus(System.Windows.RoutedEventArgs)(+0x37 IL,+0xa7 Native) [c:\projects\Stride\Telerik_UI_for_WPF_Source_2015_1_0401\Controls\GridView\GridView\GridView\Cells\GridViewCell.cs # 1176,6]
19:M 00000000002b9340 000007feedb8a36f System.Windows.UIElement.IsFocused_Changed(System.Windows.DependencyObject, System.Windows.DependencyPropertyChangedEventArgs)(+0x26 IL,+0xaf Native)
1a:M 00000000002b9380 000007feee7d6a0d System.Windows.DependencyObject.OnPropertyChanged(System.Windows.DependencyPropertyChangedEventArgs)(+0x52 IL,+0xdd Native)
1b:M 00000000002b9410 000007fee366e285 System.Windows.FrameworkElement.OnPropertyChanged(System.Windows.DependencyPropertyChangedEventArgs)(+0xa IL,+0x275 Native)
1c:M 00000000002b97f0 000007feee7d668a System.Windows.DependencyObject.NotifyPropertyChange(System.Windows.DependencyPropertyChangedEventArgs)(+0x2 IL,+0xfa Native)
1d:M 00000000002b9960 000007feee7d359c System.Windows.DependencyObject.UpdateEffectiveValue(System.Windows.EntryIndex, System.Windows.DependencyProperty, System.Windows.PropertyMetadata, System.Windows.EffectiveValueEntry, System.Windows.EffectiveValueEntry ByRef, Boolean, Boolean, System.Wind(+0x3f8 IL,+0x54c Native)
1e:M 00000000002b9c90 000007feee7d25be System.Windows.DependencyObject.SetValueCommon(System.Windows.DependencyProperty, System.Object, System.Windows.PropertyMetadata, Boolean, Boolean, System.Windows.OperationType, Boolean)(+0x2bb IL,+0x31e Native)
1f:M 00000000002b9e10 000007feee7d90c1 System.Windows.DependencyObject.SetValue(System.Windows.DependencyPropertyKey, System.Object)(+0xb1 Native)
20:M 00000000002b9e90 000007feedbf3d9e System.Windows.Input.FocusManager.OnFocusedElementChanged(System.Windows.DependencyObject, System.Windows.DependencyPropertyChangedEventArgs)(+0x4f IL,+0xee Native)
21:M 00000000002b9ee0 000007feee7d6a0d System.Windows.DependencyObject.OnPropertyChanged(System.Windows.DependencyPropertyChangedEventArgs)(+0x52 IL,+0xdd Native)
22:M 00000000002b9f70 000007fee366e285 System.Windows.FrameworkElement.OnPropertyChanged(System.Windows.DependencyPropertyChangedEventArgs)(+0xa IL,+0x275 Native)
23:M 00000000002ba350 000007feee7d668a System.Windows.DependencyObject.NotifyPropertyChange(System.Windows.DependencyPropertyChangedEventArgs)(+0x2 IL,+0xfa Native)
24:M 00000000002ba4c0 000007feee7d359c System.Windows.DependencyObject.UpdateEffectiveValue(System.Windows.EntryIndex, System.Windows.DependencyProperty, System.Windows.PropertyMetadata, System.Windows.EffectiveValueEntry, System.Windows.EffectiveValueEntry ByRef, Boolean, Boolean, System.Wind(+0x3f8 IL,+0x54c Native)
25:M 00000000002ba7f0 000007feee7d25be System.Windows.DependencyObject.SetValueCommon(System.Windows.DependencyProperty, System.Object, System.Windows.PropertyMetadata, Boolean, Boolean, System.Windows.OperationType, Boolean)(+0x2bb IL,+0x31e Native)
26:M 00000000002ba970 000007feee7d6fd1 System.Windows.DependencyObject.SetValue(System.Windows.DependencyProperty, System.Object)(+0xa1 Native)
27:M 00000000002ba9e0 000007fee36d5d0f System.Windows.FrameworkElement.OnGotKeyboardFocus(System.Object, System.Windows.Input.KeyboardFocusChangedEventArgs)(+0x10 IL,+0x7f Native)
28:M 00000000002baa40 000007feedb9a8a6 System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate, System.Object)(+0xa IL,+0x56 Native)
29:M 00000000002baaa0 000007feedb9a090 System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)(+0xf0 IL,+0x270 Native)
2a:M 00000000002bacd0 000007feedb8744e System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs)(+0x61 IL,+0x14e Native)
2b:M 00000000002bad60 000007feedb838a4 System.Windows.UIElement.RaiseTrustedEvent(System.Windows.RoutedEventArgs)(+0x16 IL,+0x64 Native)
2c:M 00000000002badc0 000007feedbaedaa System.Windows.Input.InputManager.ProcessStagingArea()(+0x1f1 IL,+0x42a Native)
2d:M 00000000002bae60 000007feedbb389e System.Windows.Input.KeyboardDevice.ChangeFocus(System.Windows.DependencyObject, Int32)(+0x284 IL,+0x63e Native)
2e:M 00000000002baef0 000007feedbb2624 System.Windows.Input.KeyboardDevice.Focus(System.Windows.DependencyObject, Boolean, Boolean, Boolean)(+0x4e IL,+0x94 Native)
2f:M 00000000002baf60 000007feedbb2491 System.Windows.Input.KeyboardDevice.Focus(System.Windows.IInputElement)(+0x5f IL,+0x31 Native)
30:M 00000000002bafc0 000007feedb79bcf System.Windows.Interop.HwndKeyboardInputProvider.OnSetFocus(IntPtr)(+0xaf IL,+0x10f Native)
31:M 00000000002bb0e0 000007feedb9423b System.Windows.Interop.HwndKeyboardInputProvider.FilterMessage(IntPtr, MS.Internal.Interop.WindowMessage, IntPtr, IntPtr, Boolean ByRef)(+0x1e1 IL,+0x54b Native)
32:M 00000000002bb2a0 000007feedb932f1 System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)(+0x8e IL,+0x141 Native)
33:M 00000000002bb310 000007feee7cb45a MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)(+0x39 IL,+0x14a Native)
34:M 00000000002bb3c0 000007feee7cb2e0 MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)(+0x5b IL,+0x80 Native)
35:M 00000000002bb410 000007feee7cb15a System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)(+0x7e IL,+0x5a Native)
36:M 00000000002bb470 000007feee7cb0e7 MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)(+0x11 IL,+0x47 Native)
37:M 00000000002bb4d0 000007feee7c846c System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)(+0xce IL,+0x2bc Native)
38:M 00000000002bb570 000007feee7ca9d0 MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)(+0x129 IL,+0x140 Native)
39:M 00000000002bb670 000007feee9759d7 DomainBoundILStubClass.IL_STUB_ReversePInvoke(Int64, Int32, Int64, Int64)
3a:U 00000000002bb700 000007feec1fb42e clr!UMThunkStub+0x6e
3b:U 00000000002bb790 0000000076c29bd1 user32!UserCallWinProcCheckWow+0x1ad
3c:U 00000000002bb850 0000000076c272cb user32!DispatchClientMessage+0xc3
3d:U 00000000002bb8b0 0000000076c26829 user32!_fnDWORD+0x2d
3e:U 00000000002bb910 0000000076efbd75 ntdll!KiUserCallbackDispatcherContinue
3f:U 00000000002bb998 0000000076c2685a user32!ZwUserMessageCall+0xa
40:U 00000000002bb9a0 0000000076c268a2 user32!RealDefWindowProcWorker+0xa4
41:U 00000000002bba70 0000000076c2760e user32!RealDefWindowProcW+0x5a
42:U 00000000002bbab0 0000000076c275a4 user32!DefWindowProcW+0xfc
43:U 00000000002bbb00 0000000076c29bd1 user32!UserCallWinProcCheckWow+0x1ad
44:U 00000000002bbbc0 0000000076c23bfc user32!CallWindowProcAorW+0xdc
45:U 00000000002bbc10 0000000076c23b78 user32!CallWindowProcW+0x18
46:M 00000000002bbc50 000007feee7cb599 MS.Win32.HwndSubclass.DefWndProcWrapper(IntPtr, Int32, IntPtr, IntPtr)(+0x9 IL,+0xb9 Native)
47:M 00000000002bbd40 000007feee9759d7 DomainBoundILStubClass.IL_STUB_ReversePInvoke(Int64, Int32, Int64, Int64)
48:U 00000000002bbdd0 000007feec1fb42e clr!UMThunkStub+0x6e
49:U 00000000002bbe60 0000000076c29bd1 user32!UserCallWinProcCheckWow+0x1ad
4a:U 00000000002bbf20 0000000076c23bfc user32!CallWindowProcAorW+0xdc
4b:U 00000000002bbf70 0000000076c23b78 user32!CallWindowProcW+0x18
4c:M 00000000002bbfb0 000007feee7caa86 MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)(+0x154 IL,+0x1f6 Native)
4d:M 00000000002bc0b0 000007feee9759d7 DomainBoundILStubClass.IL_STUB_ReversePInvoke(Int64, Int32, Int64, Int64)
4e:U 00000000002bc140 000007feec1fb42e clr!UMThunkStub+0x6e
4f:U 00000000002bc1d0 0000000076c29bd1 user32!UserCallWinProcCheckWow+0x1ad
50:U 00000000002bc290 0000000076c272cb user32!DispatchClientMessage+0xc3
51:U 00000000002bc2f0 0000000076c26829 user32!_fnDWORD+0x2d
52:U 00000000002bc350 0000000076efbd75 ntdll!KiUserCallbackDispatcherContinue
53:U 00000000002bc3d8 0000000076c2908a user32!NtUserPeekMessage+0xa
54:U 00000000002bc3e0 0000000076c29055 user32!PeekMessageW+0x105
55:U 00000000002bc430 000007fefebaff92 ole32!CCliModalLoop::MyPeekMessage+0x52 [d:\w7rtm\com\ole32\com\dcomrem\callctrl.cxx # 1733]
56:U 00000000002bc4a0 000007fefebb0109 ole32!CCliModalLoop::PeekRPCAndDDEMessage+0x49 [d:\w7rtm\com\ole32\com\dcomrem\callctrl.cxx # 1500]
57:U 00000000002bc510 000007fefeb3e153 ole32!CCliModalLoop::BlockFn+0x5353f
58:U 00000000002bc560 000007fefec0a422 ole32!CoWaitForMultipleHandles+0x102 [d:\w7rtm\com\ole32\com\dcomrem\sync.cxx # 109]
59:U 00000000002bc670 000007feec2865f2 clr!MsgWaitHelper+0x8e
5a:U 00000000002bc6e0 000007feec286559 clr!Thread::DoAppropriateWaitWorker+0x29b
5b:U 00000000002bc7e0 000007feec2b8591 clr!Thread::DoAppropriateWait+0x7d
5c:U 00000000002bc860 000007feec286eb1 clr!SynchronizationContextNative::WaitHelper+0x181
5d:M 00000000002bcc40 000007feee7c9c39 System.Windows.Threading.DispatcherSynchronizationContext.Wait(IntPtr[], Boolean, Int32)(+0x29 Native)
5e:U 00000000002bcc80 000007feec19a7f3 clr!CallDescrWorkerInternal+0x83
5f:U 00000000002bccc0 000007feec19a6de clr!CallDescrWorkerWithHandler+0x4a
60:U 00000000002bcd00 000007feec19ae76 clr!MethodDescCallSite::CallTargetWorker+0x251
61:U 00000000002bceb0 000007feec300d01 clr!Thread::DoSyncContextWait+0xc2
62:U 00000000002bd010 000007feec300c32 clr!Thread::DoAppropriateWaitWorker+0x4867e
63:U 00000000002bd110 000007feec2b8591 clr!Thread::DoAppropriateWait+0x7d
64:U 00000000002bd190 000007feec2b883d clr!CLREventBase::WaitEx+0xc0
65:U 00000000002bd220 000007feec64046d clr!CRWLock::RWWaitForSingleObject+0x4d
66:U 00000000002bd2c0 000007feec5b0e98 clr!CRWLock::StaticAcquireWriterLock+0x3b98e8
67:U 00000000002bd310 000007feec1f77d7 clr!CRWLock::StaticAcquireWriterLockPublic+0xa7
68:M 00000000002bd480 000007feee7dca9a System.ComponentModel.PropertyChangedEventManager.AddListener(System.ComponentModel.INotifyPropertyChanged, System.String, System.Windows.IWeakEventListener, System.EventHandler`1<System.ComponentModel.PropertyChangedEventArgs>)(+0x4a Native)
69:M 00000000002bd500 000007feee7dc8d7 System.ComponentModel.PropertyChangedEventManager.AddHandler(System.ComponentModel.INotifyPropertyChanged, System.EventHandler`1<System.ComponentModel.PropertyChangedEventArgs>, System.String)(+0x37 Native)
6a:M 00000000002bd550 000007fee36bc902 MS.Internal.Data.PropertyPathWorker.ReplaceItem(Int32, System.Object, System.Object)(+0x584 IL,+0x702 Native)
6b:M 00000000002bd690 000007fee36bbcbc MS.Internal.Data.PropertyPathWorker.UpdateSourceValueState(Int32, System.ComponentModel.ICollectionView, System.Object, Boolean)(+0xa7 IL,+0x13c Native)
6c:M 00000000002bd710 000007fee412602d MS.Internal.Data.PropertyPathWorker.UpdateSourceValueState(Int32, System.ComponentModel.ICollectionView)(+0x0 IL,+0x3d Native)
6d:M 00000000002bd760 000007fee36f3a2e MS.Internal.Data.ClrBindingWorker.OnSourcePropertyChanged(System.Object, System.String)(+0x1b IL,+0x5e Native)
6e:M 00000000002bd7a0 000007feee7dcf19 System.Windows.WeakEventManager+ListenerList`1[[System.__Canon, mscorlib]].DeliverEvent(System.Object, System.EventArgs, System.Type)(+0x54 IL,+0xa9 Native)
6f:M 00000000002bd850 000007feee7b7863 System.Windows.WeakEventManager.DeliverEventToList(System.Object, System.EventArgs, ListenerList)(+0xf IL,+0x33 Native)
70:M 00000000002bd8a0 000007feee7f300d System.ComponentModel.PropertyChangedEventManager.OnPropertyChanged(System.Object, System.ComponentModel.PropertyChangedEventArgs)(+0x1de IL,+0x66d Native)
71:U 00000000002bda00 000007fe8cce0111 CLRStub[StubLinkStub]#7fe8cce0111
72:M 00000000002bdac0 000007fe8f6f38c2 *** WARNING: Unable to verify checksum for MyCompany.Core.dll
*** ERROR: Module load completed but symbols could not be loaded for MyCompany.Core.dll
MyCompany.Core.ComponentModel.PropertyChangedNotifiableExtension.SetValue[[System.__Canon, mscorlib]](MyCompany.Core.ComponentModel.IPropertyChangedNotifiableEx, System.ComponentModel.PropertyChangedEventArgs, System.__Canon ByRef, System.__Canon, S(+0x5c IL,+0x1a2 Native)
73:M 00000000002bdb20 000007fe8f6f36f2 MyCompany.Core.ComponentModel.NotifyPropertyChangedBase.SetValue[[System.__Canon, mscorlib]](System.ComponentModel.PropertyChangedEventArgs, System.__Canon ByRef, System.__Canon)(+0x0 IL,+0xd2 Native)
74:U 00000000002bdb80 000007feec29f0b7 clr!InstantiatingMethodStubWorker+0xc7
75:M 00000000002bdc40 000007fe923d56f1 *** WARNING: Unable to verify checksum for MyCompany.Modules.dll
*** ERROR: Module load completed but symbols could not be loaded for MyCompany.Modules.dll
MyCompany.Modules.Blotters.ViewModels.MyViewModel.SetOrders(MyCompany.Modules.Models.MyModel[], MyCompany.Modules.Models.MyModel[])(+0xd IL,+0x31 Native)
76:M 00000000002bdc80 000007feee7cb228 System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)(+0x3f IL,+0x128 Native)
77:M 00000000002bdce0 000007feee7cb0e7 MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)(+0x11 IL,+0x47 Native)
78:M 00000000002bdd40 000007feee7ce9f1 System.Windows.Threading.DispatcherOperation.InvokeImpl()(+0x9e IL,+0x281 Native)
79:M 00000000002bde00 000007feeb0839a5 System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)(+0x72 IL,+0x285 Native)
7a:M 00000000002bdf60 000007feeb083719 System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)(+0x0 IL,+0x9 Native)
7b:M 00000000002bdf90 000007feeb0836f7 System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)(+0x57 Native)
7c:M 00000000002bdfe0 000007feee7ce621 System.Windows.Threading.DispatcherOperation.Invoke()(+0x20 IL,+0x71 Native)
7d:M 00000000002be060 000007feee7c9063 System.Windows.Threading.Dispatcher.ProcessQueue()(+0xf0 IL,+0x2e3 Native)
7e:M 00000000002be130 000007feee7c93c3 System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)(+0x45 IL,+0xb3 Native)
7f:M 00000000002be1f0 000007feee7cb45a MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)(+0x39 IL,+0x14a Native)
80:M 00000000002be2a0 000007feee7cb2e0 MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)(+0x5b IL,+0x80 Native)
81:M 00000000002be2f0 000007feee7cb15a System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)(+0x7e IL,+0x5a Native)
82:M 00000000002be350 000007feee7cb0e7 MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)(+0x11 IL,+0x47 Native)
83:M 00000000002be3b0 000007feee7c846c System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)(+0xce IL,+0x2bc Native)
84:M 00000000002be450 000007feee7ca9d0 MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)(+0x129 IL,+0x140 Native)
85:M 00000000002be550 000007feee9759d7 DomainBoundILStubClass.IL_STUB_ReversePInvoke(Int64, Int32, Int64, Int64)
86:U 00000000002be5e0 000007feec1fb42e clr!UMThunkStub+0x6e
87:U 00000000002be670 0000000076c29bd1 user32!UserCallWinProcCheckWow+0x1ad
88:U 00000000002be730 0000000076c298da user32!DispatchMessageWorker+0x3b5
89:M 00000000002be7b0 000007feee7f5900 DomainBoundILStubClass.IL_STUB_PInvoke(System.Windows.Interop.MSG ByRef)
8a:M 00000000002be880 000007feee7c7332 System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)(+0x48 IL,+0x112 Native)
8b:M 00000000002be920 000007fee361f2ea System.Windows.Application.RunInternal(System.Windows.Window)(+0xf0 IL,+0x17a Native)
8c:M 00000000002be9c0 000007fee361ebf7 System.Windows.Application.Run()(+0x67 Native)
8d:M 00000000002bea00 000007fe8cc80100 *** WARNING: Unable to verify checksum for exe
*** ERROR: Module load completed but symbols could not be loaded for exe
XamlGeneratedNamespace.GeneratedApplication.Main()(+0x0 IL,+0x70 Native)
8e:U 00000000002bea40 000007feec19a7f3 clr!CallDescrWorkerInternal+0x83
8f:U 00000000002bea80 000007feec19a6de clr!CallDescrWorkerWithHandler+0x4a
90:U 00000000002beac0 000007feec19ae76 clr!MethodDescCallSite::CallTargetWorker+0x251
91:U 00000000002bec70 000007feec327749 clr!RunMain+0x1e7
92:U 00000000002bee50 000007feec327a8e clr!Assembly::ExecuteMainMethod+0xb6
93:U 00000000002bf140 000007feec327987 clr!SystemDomain::ExecuteMainMethod+0x506
94:U 00000000002bf750 000007feec32790a clr!ExecuteEXE+0x3f
95:U 00000000002bf7c0 000007feec327862 clr!_CorExeMainInternal+0xae
96:U 00000000002bf850 000007feec324174 clr!CorExeMain+0x14
97:U 00000000002bf890 000007fef78a72fd mscoreei!CorExeMain+0xe0
98:U 00000000002bf8e0 000007fef7a25b21 mscoree!CorExeMain_Exported+0x57
99:U 00000000002bf910 0000000076da59dd kernel32!BaseThreadInitThunk+0xd
9a:U 00000000002bf940 0000000076eda631 ntdll!RtlUserThreadStart+0x1d
The stack pattern here shows it's an re-entrance:
4f:U 00000000002bc1d0 0000000076c29bd1 user32!UserCallWinProcCheckWow+0x1ad
50:U 00000000002bc290 0000000076c272cb user32!DispatchClientMessage+0xc3
51:U 00000000002bc2f0 0000000076c26829 user32!_fnDWORD+0x2d
52:U 00000000002bc350 0000000076efbd75 ntdll!KiUserCallbackDispatcherContinue
53:U 00000000002bc3d8 0000000076c2908a user32!NtUserPeekMessage+0xa
54:U 00000000002bc3e0 0000000076c29055 user32!PeekMessageW+0x105
55:U 00000000002bc430 000007fefebaff92 ole32!CCliModalLoop::MyPeekMessage+0x52 [d:\w7rtm\com\ole32\com\dcomrem\callctrl.cxx # 1733]
56:U 00000000002bc4a0 000007fefebb0109 ole32!CCliModalLoop::PeekRPCAndDDEMessage+0x49 [d:\w7rtm\com\ole32\com\dcomrem\callctrl.cxx # 1500]
57:U 00000000002bc510 000007fefeb3e153 ole32!CCliModalLoop::BlockFn+0x5353f
58:U 00000000002bc560 000007fefec0a422 ole32!CoWaitForMultipleHandles+0x102 [d:\w7rtm\com\ole32\com\dcomrem\sync.cxx # 109]
The PropertyChangedEventManager uses ReaderWriterLock when binding changed, so we have to DisableProcessing when changing properties in the view model to avoid the issue.

Resources