Click here to Skip to main content
15,895,142 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I added two WPF user controls in my C# program.
For the first control, there was no problem. All things were OK.
But when I add the second control, I faced this warning:


Warning 1::thumbsdown: Could not load type 'WindowsFormsApplication9.myTabControl' from assembly 'WindowsFormsApplication9, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.



Also for loading my form I have problem and I have to click on:

Ignore and Continue



It does not depend on what is in my control.
I use "Microsoft Visual C# 2008" in Windows 7.
What can I do?
Posted
Updated 4-Jun-10 17:42pm
v6

You might have some invalid xaml in your control that's not working. WPF is real touchy about that. Does the control show up in the designer?
 
Share this answer
 
Comments
[no name] 9-Jun-10 4:41am    
Reason for my vote of 1
Wrong and rookie
John Simmons wrote:
You might have some invalid xaml in your control that's not working. WPF is real touchy about that. Does the control show up in the designer?


No, it doesn't; but, I there is no problem at runtime.
My WPF XAML is with the default code. I have not add anything to it yet.

-------------------
This is the Call Stack at the designer:

at System.Reflection.Assembly._GetType(String name, Boolean throwOnError, Boolean ignoreCase)
at System.UnitySerializationHolder.GetRealObject(StreamingContext context)
at System.ComponentModel.ReflectPropertyDescriptor.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)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900