Share via

error in my design

Raneem kamel 0 Reputation points
2026-06-12T08:27:58.93+00:00

Could not find type 'DVLD.ctrPersonInformation'. 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.

Developer technologies | Windows Forms

2 answers

Sort by: Most helpful
  1. Danny Nguyen (WICLOUD CORPORATION) 7,105 Reputation points Microsoft External Staff Moderator
    2026-06-12T10:17:43.8233333+00:00

    Hi @Raneem kamel ,

    I noticed this looks similar to your earlier post: error in my design - Microsoft Q&A

    In that thread, I suggested checking whether DVLD.ctrPersonInformation can be found by the Windows Forms Designer at design time. Based on the Windows Forms designer troubleshooting documentation, this error usually happens when the required type or assembly reference cannot be found, or when the project containing the control has not been built successfully. The doc also suggests cleaning and rebuilding the project/solution, and deleting the bin and obj folders if needed.

    Could you confirm whether you already tried the earlier suggestions?

    • Make sure DVLD.ctrPersonInformation exists in the expected namespace.
    • Make sure the project or assembly that contains this control is referenced.
    • Make sure the full solution builds successfully.
    • Try Clean/Rebuild.
    • If needed, close Visual Studio, delete the bin and obj folders, reopen the solution, and rebuild.
    • Check whether the control was renamed, moved, or had its namespace changed.

    If you already tried these and the issue still happens, please share the result of each check, especially whether the full solution builds successfully and where DVLD.ctrPersonInformation is defined. With that information, I can suggest the next troubleshooting steps.

    Hope to hear from you soon. I would greatly appreciate it if you could follow this guidance or provide feedback.

    Thank you.

    Was this answer helpful?

    0 comments No comments

  2. AI answer

    2026-06-12T08:28:12.93+00:00

    The error indicates that the Windows Forms Designer cannot locate the type DVLD.ctrPersonInformation at design time. This is treated the same as “The type '<type name>' could not be found” / “Could not find type '<type name>'” in the designer.

    Use these steps:

    1. Build the project that contains DVLD.ctrPersonInformation
      • In Visual Studio, select Build > Build Solution.
      • If ctrPersonInformation is a custom user control in the same solution, it must compile successfully before the designer can load it.
    2. Check project references
      • If DVLD.ctrPersonInformation is in another project (for example, a class library), open Solution Explorer, right‑click References (or Dependencies) of the form project, choose Add Reference…, and add a reference to the project or assembly that defines DVLD.ctrPersonInformation.
      • Ensure any assemblies that DVLD.ctrPersonInformation depends on are also referenced.
    3. Verify the type name and namespace
      • Open the code file where ctrPersonInformation is defined and confirm its namespace is DVLD and the class name is exactly ctrPersonInformation (including case).
      • Open the .Designer.cs file of the form that uses this control and verify the fully qualified name matches the actual namespace and class name.
    4. Confirm platform/target settings
      • Make sure the project that defines DVLD.ctrPersonInformation and the project that uses it are built for compatible platforms (for example, both Any CPU, or both x86). Then rebuild the solution.
    5. If the error persists only in the designer
      • Clean and rebuild the solution.
      • Close and reopen the form designer after a successful build.

    If DVLD.ctrPersonInformation was removed or renamed, update or remove the references to it from the form’s designer code.


    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.