error in my design
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 c
2 answers
-
Danny Nguyen (WICLOUD CORPORATION) 7,185 Reputation points • Microsoft External Staff • Moderator
According to the Windows Forms designer error documentation, this error usually means the designer cannot find the referenced type because the required assembly or project reference is missing, or the control/project has not been built successfully yet. Microsoft specifically recommends checking that the type and any dependent assemblies are referenced, then rebuilding the solution. If the control has already been built, you can also add the reference manually from the References or Dependencies node in Solution Explorer.
You may want to check:
-
DVLD.ctrPersonInformationexists in a referenced project or assembly - the project/solution builds successfully
- cleaning and rebuilding the solution helps
- the control was renamed, moved, or its namespace changed
Also it would be great if you can provide a bit more context?
- Is
ctrPersonInformationa customUserControlin the same solution? - Does the full solution build successfully?
- Did this start after renaming files, changing namespaces, or moving the control to another project?
- Is the error happening only in the designer, or also at compile time?
- Can you share where
DVLD.ctrPersonInformationis defined and how it is referenced?
I hope this helps. If you found my response helpful or informative, I would greatly appreciate it if you could follow this guidance or provide feedback.
Thank you.
-
Danny Nguyen (WICLOUD CORPORATION) 7,185 Reputation points • Microsoft External Staff • Moderator
Hi, just checking in. Do you have any update on this post?
-
Danny Nguyen (WICLOUD CORPORATION) 7,185 Reputation points • Microsoft External Staff • Moderator
As we haven’t heard back from you for a while, we’ll go ahead and close this thread for now.
If you still need assistance later, feel free to reach out.
Thank you for your understanding.
Sign in to comment -
-
AI answer
The error indicates that the Windows Forms Designer cannot find the type
DVLD.ctrPersonInformationat design time. This is a design-time reference problem, not just a runtime one.To fix it, follow these steps in order:
- Build the project that contains
DVLD.ctrPersonInformation:- In Visual Studio, select Build > Build Solution.
- Ensure the build succeeds without errors.
- Ensure the project/assembly that defines
DVLD.ctrPersonInformationis referenced:- In the project where the form is designed, open Solution Explorer.
- Right‑click References (or Dependencies in SDK‑style projects) and choose Add Reference….
- Select the project or assembly that contains
DVLD.ctrPersonInformationand add it.
- Confirm the type name and namespace:
- Open the code file where
ctrPersonInformationis defined. - Verify the namespace is
DVLDand the class name is exactlyctrPersonInformation(including case). - In the designer file (
.Designer.cs), ensure the fully qualified name matches (DVLD.ctrPersonInformation).
- Open the code file where
- Clean and rebuild:
- Use Build > Clean Solution, then Build > Rebuild Solution.
- Close and reopen the designer if it was open.
If
ctrPersonInformationis a user control in the same solution, the most common cause is that its project has not been built yet or the reference between projects is missing.
References:
AI-generated content may be incorrect. Read our transparency notes for more information. - Build the project that contains
