繁体   English   中英

我无法在 Windows 表单中使用我的用户控制组件

[英]I can't use my User Control Component in Windows Form

无法创建“MeButton”组件。 报错信息如下: 'Microsoft.DotNet.DesignTools.Client.DesignToolsSeiverExcept ion: 'Ecommerce Desktop.Base.MeButton, Ecommerce Desktop.The type 'Admin, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' could得不到解决。 位置:Microsoft.DotNet.DesignTools.Client.DesignToolsClient.d_49.1.MoveNext0 --- 从先前创建异常的位置开始的堆栈跟踪的结尾 --- 位置:System.Runtime.ExceptionSeivices.ExceptionDispatchInfo.Thro wQ 位置:System.Runtime.CompilerSeivices.TaskAwaiter.HandleNonSucc essAndDebuggerNotification(任务任务) sEndpoints.DesignerHostslmpl.createComponent(Sessionld sessionld,Typeldentitytype,字符串名称,NameValuePairs defaultValues) createComponents(Ide gnerHost host, idictionally defaultValues) 位置:Microsoft.DotNe t.DesignTools.Client.Designers.ComponentPr owDesigner.CreateToolgoolboxItem 工具、位置、Nullablei 大小、ObjectProxytoolboxSnapArgsy

当我将用户控件从工具箱拖到窗体时出现这样的错误。

我只是创建了一个用户控件,我没有做任何事情,但它仍然没有发生。

用户控件和winforms在同一个库中。 我正在使用依赖注入

当我更新 visual studio 时问题就解决了

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM