I have a windows forms project more than 10 years old developed in Visual Studio 2005. When I compile and execute it works well, the problem arises when I open the design screen, which does not come out, The following text appears:
.ErrorStyle {font-family: tahoma; font-size: 11 pt; text-align: left} .DetailsStyle {font-family: tahoma; font-size: 10pt; text-align: left; text-indent: 0; word-spacing: 0; line-height: 100%; float: left; margin-top: 0; margin-bottom: 0} .StackStyleVisible {font-family: tahoma; font-size: 10pt; text-align: left; margin-left: 20; text-indent: 0} .StackStyleHidden {display: none; font-family: tahoma; font-size: 10pt; text-align: left; margin-left: 20; text-indent: 0} One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes.
Could not find type 'Comun.DTO.cLogDTO'. 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.
Hide & nbspEdit
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.Error (IDesignerSerializationManager manager, String exceptionText, String helpLink)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeExpression (IDesignerSerializationManager manager , String name, CodeExpression expression)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializePropertyAssignStatement (IDesignerSerializationManager manager, CodeAssignStatement statement, CodePropertyReferenceExpression propertyReferenceEx, Boolean reportError)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeAssignStatement (IDesignerSerializationManager manager, CodeAssignStatement statement)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeStatement (IDesignerSerializationManager manager, CodeStatement statement)
Reading this text I see that a priori does not find the class Comun.DTO.cLogDTO
,
however, as I said, it compiles perfectly and I can access that class from the form.
Below this line makes references to serialization problems, and in this I already get lost because I do not know how to fix it, since a priori I understand that there should be nothing wrong because it compiles and works perfectly.
Greetings and thanks,
P.D: This happens to me in more forms of this project.
Edit: I edit to add that if I make a copy paste of the form, the form created if it is shown to me ... I do not understand why you can not see it and its copy if.