简体   繁体   English

窗体无法在VS2015中打开,因为找不到自己的UserControl

[英]Form does not open in VS2015, because own UserControl is not found

Since i moved everything in my project to x64 and moved some files in subfolders everything works fine but an important form which is using an own userControl. 由于我将项目中的所有内容都移到了x64并在子文件夹中移动了一些文件,所以一切正常,但是这是使用自己的userControl的重要形式。

When i open the Form in VS2015 i get 当我在VS2015中打开表单时,我得到

Could not find type 'WYSIWYGEditor.Editor'. 找不到类型“ WYSIWYGEditor.Editor”。 Please make sure that the assembly that contains this type is referenced. 请确保引用了包含此类型的程序集。 If this type is a part of your development project, make sure that the project has been successfully built using settings for your current platform or Any CPU. 如果此类型是开发项目的一部分,请确保已使用当前平台或任何CPU的设置成功构建了该项目。

Before, this usercontrol was in the same project. 以前,此用户控件位于同一项目中。 After i got this error i tried many things to fix this error. 收到此错误后,我尝试了很多方法来修复此错误。 After having no solution i moved it to an own project which is also compiling in x64 and is referenced from the main project. 在没有解决方案之后,我将其移到了自己的项目中,该项目也在x64中进行编译,并从主项目中引用。 Compiling shows, that both are compiled in x64 and debugging and running the project works well. 编译显示,两者均在x64中进行了编译,并且调试和运行项目效果很好。

Last but not least i tried everything from here: https://social.msdn.microsoft.com/Forums/sqlserver/en-US/38524a8c-8c4c-48e7-b62d-0d02fe0f5624/user-control-quotcould-not-find-typequot-error-in-form-designer?forum=vbgeneral 最后但并非最不重要的一点是,我尝试了以下所有操作: https : //social.msdn.microsoft.com/Forums/sqlserver/zh-CN/38524a8c-8c4c-48e7-b62d-0d02fe0f5624/user-control-quotcould-not-find- typequot错误,在外形设计?论坛= vbgeneral

  • Cleaning up project 清理项目
  • Recompiling 重新编译
  • Renaming the UserControl several Times 几次重命名UserControl
  • Removing it from the form (form opens) and putting it back to the place 从表单中将其删除(打开表单)并将其放回原处
  • ... ...

Nothing helped. 没有任何帮助。 Anyone had similar issues and was able to fix it? 任何人都有类似的问题并且能够解决?

Greetings from Germany 来自德国的问候

Image: Form does not open 图片:表格无法打开

I do not know what the point is and hope anyone can explain it. 我不知道这是什么意思,希望任何人都可以解释。

In a german topic i found the tip to compile the userControl in x86. 在一个德语主题中,我找到了在x86中编译userControl的技巧。 So i changed my Configuration for debug to compile the Usercontrol-Project in x86. 因此,我更改了调试配置,以在x86中编译Usercontrol-Project。 After doing a rebuild for the dll-Project it worked! 在为dll-Project重建后,它起作用了!

Configuration 组态

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

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