dotnet / dotnet/wpf

System.Windows.Markup.XamlParseException: 'Constructor on type 'System.Windows.Forms.TextBoxAutoCompleteSourceConverter' not found.'

Open
#5,845 4 comments 1 reaction 0 assignees View on GitHub
Bug Investigate
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

* .NET Core Version: 6.0.100 (e.g. 3.0 Preview1, or daily build number, use `dotnet --info`)
* Windows version: 10.0.19042.1348 (`winver`)
* Does the bug reproduce also in WPF for .NET Framework 4.8?: Yes
* Is this bug related specifically to tooling in Visual Studio (e.g. XAML Designer, Code editing, etc...)? If yes, please file the issue via the instructions [here](https://docs.microsoft.com/visualstudio/ide/how-to-report-a-problem-with-visual-studio?view=vs-2019). No
* Security issues and bugs should be reported privately, learn more via our [responsible disclosure guidelines](https://github.com/dotnet/wpf/blob/main/README.md#reporting-security-issues-and-security-bugs).



**Problem description:**
System.Windows.Markup.XamlParseException: 'Constructor on type 'System.Windows.Forms.TextBoxAutoCompleteSourceConverter' not found.'
**Actual behavior:**
```
System.Windows.Markup.XamlParseException
HResult=0x80131501
Message=Constructor on type 'System.Windows.Forms.TextBoxAutoCompleteSourceConverter' not found.
Source=PresentationFramework
StackTrace:
於 System.Windows.Markup.XamlReader.RewrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri) 在 /_/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Markup/XamlReader.cs:行 527 中

此例外狀況原先在此呼叫堆疊擲回:
System.RuntimeType.CreateInstanceImpl(System.Reflection.BindingFlags, System.Reflection.Binder, object[], System.Globalization.CultureInfo) 位於 RuntimeType.CoreCLR.cs
System.Activator.CreateInstance(System.Type, System.Reflection.BindingFlags, System.Reflection.Binder, object[], System.Globalization.CultureInfo, object[]) 位於 Activator.RuntimeType.cs
System.Xaml.Schema.SafeReflectionInvoker.CreateInstanceCritical(System.Type, object[]) 位於 SafeReflectionInvoker.cs
System.Xaml.Schema.XamlValueConverter.CreateInstance() 位於 XamlValueConverter.cs
System.Xaml.Schema.XamlValueConverter.ConverterInstance.get() 位於 XamlValueConverter.cs
MS.Internal.Xaml.Runtime.ClrObjectRuntime.GetConverterInstance(System.Xaml.Schema.XamlValueConverter) 位於 ClrObjectRuntime.cs
System.Xaml.XamlObjectWriter.Logic_CreatePropertyValueFromValue(MS.Internal.Xaml.Context.ObjectWriterContext) 位於 XamlObjectWriter.cs
System.Xaml.XamlObjectWriter.WriteEndMember() 位於 XamlObjectWriter.cs
System.Xaml.XamlWriter.WriteNode(System.Xaml.XamlReader) 位於 XamlWriter.cs
System.Windows.Markup.WpfXamlLoader.TransformNodes(System.Xaml.XamlReader, System.Xaml.XamlObjectWriter, bool, bool, bool, System.Xaml.IXamlLineInfo, System.Xaml.IXamlLineInfoConsumer, MS.Internal.Xaml.Context.XamlContextStack, System.Windows.Markup.IStyleConnector) 位於 WpfXamlLoader.cs
...
[呼叫堆疊已截斷]

內部例外狀況 1:
MissingMethodException: Constructor on type 'System.Windows.Forms.TextBoxAutoCompleteSourceConverter' not found.
```
**Expected behavior:**
No crash.
**Minimal repro:**
```xaml





```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.