Unable to open my C# project

爱⌒轻易说出口 提交于 2019-12-11 20:06:25

问题


I'm unable to open my project in Visual Studio 2008. It was developed in C# by my friend. It is showing the this error:

  "Could not find type 'LibrarySystem.ctrlSeparator'.
  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. "

Also

  "The variable 'ctrlSeparator1' is either undeclared or was never assigned. "

How do I rectify this problem?


回答1:


With all respect...the error message tells you everything you need to know...

It's trying to load a control, which does not exist. So either your friend didn't give you the whole project, or he used a Third-party-Component which you don't have.




回答2:


Obviously your friend used (or wrote himself) a external library.

Ask him to provide you with this assembly, so that you can compile the project.




回答3:


Either you don't have the complete project or you need to register dll. Make sure you have LibrarySystem.ctrlSeparator in code or assembly. If it is in unmanaged assembly then ask to friend whether it is needed to be registered.



来源:https://stackoverflow.com/questions/1808293/unable-to-open-my-c-sharp-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!