Author Topic: After project clean all disappears  (Read 1691 times)

KariM

  • Newbie
  • *
  • Posts: 33
    • View Profile
After project clean all disappears
« on: June 25, 2015, 04:33:11 AM »
Hi
After I try to clean project, I had 80 error messages like:
Message   2   The variable 'BasicLabel21' is either undeclared or was never assigned.      0   0   

Message   3   Could not find type 'MfgControl.AdvancedHMI.BasicLabel'.  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.      0   0   
Only forms and TabPages is present.

Project is started by VS2010 Express, and I edit it now with VS2013 Community edition.
Edit:
Next I look properties of project.
In Referense page Imported namespaces:
No selection of any line with text AdvancedHMI.
I build again projct: now all controlls are in forms and works. BUT I had this error:

6 pcs same error.
Improper use of the memory location

Instances of this error.
at System.ComponentModel.ReflectPropertyDescriptor.SetValue(Object component, Object value)
at Microsoft.VisualStudio.Shell.Design.VsTargetFrameworkPropertyDescriptor.SetValue(Object component, Object value)
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)
 
KariM
« Last Edit: June 25, 2015, 05:21:28 AM by KariM »

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: After project clean all disappears
« Reply #1 on: June 25, 2015, 06:21:02 AM »
Cleaning the solution deletes all of the compiled assemblies. After that none of the AdvancedHMI controls or drivers no longer exist. If you had a form open in design view, it will give errors for every AdvancedHMI control that was on the form. To recover from this:

- Close all of the forms that are open
- Close Visual Studio
- Re-open the solution
- Rebuild Solution

KariM

  • Newbie
  • *
  • Posts: 33
    • View Profile
Re: After project clean all disappears
« Reply #2 on: June 25, 2015, 07:44:40 AM »
Thanks Archie
That sounds easier than what I did.
And in my post last part problem disappered
by itself :-/
KariM