Hello All,
I have used various infragistics controls like Ultragroupbox, checkbox etc, in my application.
Application is working fine but the form does not display any control on the designer instead it displays some error in XML format on the designer.
It creates lot of problem for me when I need to change properties for any control... I have to go to designer.cs file and check which control is it.
I don't know why it won't display the controls on the designer.
Is it due to some DLL conflict?
Need help to resolve this problem
Thanks,
Rahul Jain
Hi Rahul,
What's the error?
It displays error like:
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.</font><font size="2" face="Arial"></font></b></td></tr><tr><td colspan="2" align="left" valign="top"><DIV id="div1" class="ErrorStyle" width="100%"><span style="font-weight: 600"><br>The path is not of a legal form. </span><br><a href="" id="details0">Hide</a><font color="#0000FF">  </font></DIV> </td> </tr> <tr><td colspan="2" align="left" valign="top"><DIV id="div20" class="StackStyleVisible" width="100%"><br> at System.IO.Path.NormalizePathFast(String path, Boolean fullCheck)<br> at System.IO.Path.NormalizePath(String path, Boolean fullCheck)<br> at System.IO.Path.GetFullPathInternal(String path)<br> at System.Reflection.AssemblyName.GetAssemblyName(String assemblyFile)<br> at Microsoft.VisualStudio.Design.VSTypeResolutionService.AddProjectDependencies(Project project)<br> at Microsoft.VisualStudio.Design.VSTypeResolutionService.AssemblyEntry.get_Assembly()<br> at Microsoft.VisualStudio.Design.VSTypeResolutionService.AssemblyEntry.Search(String fullName, String typeName, Boolean ignoreTypeCase, Assembly& assembly, String description)<br> at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchProjectEntries(AssemblyName assemblyName, String typeName, Boolean ignoreTypeCase, Assembly& assembly)<br> at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchEntries(AssemblyName assemblyName, String typeName, Boolean ignoreCase, Assembly& assembly, ReferenceType refType)<br> at Microsoft.VisualStudio.Design.VSTypeResolutionService.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase, ReferenceType refType)<br> at Microsoft.VisualStudio.Design.Serialization.CodeDom.AggregateTypeResolutionService.GetType(String name, Boolean throwOnError, Boolean ignoreCase)<br> at Microsoft.VisualStudio.Design.Serialization.CodeDom.AggregateTypeResolutionService.GetType(String name)<br> at System.ComponentModel.Design.DesignerHost.System.ComponentModel.Design.IDesignerHost.GetType(String typeName)<br> at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.EnsureDocument(IDesignerSerializationManager manager)<br> at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager manager)<br> at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)<br> at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.DeferredLoadHandler.Microsoft.VisualStudio.TextManager.Interop.IVsTextBufferDataEvents.OnLoadCompleted(Int32 fReload)</DIV></td></tr></table></div></body></html>
Hm, that's one I have not seen before. There's no mention there of any of the Infragistics assemblies, so this looks like the form is somehow corrupt. It appears to be failing when it's trying to find a reference to an assembly, but I don't even see anything here about which assembly it is looking for.
Does this happen in any new projects you create? Does it happens with any of the samples for NetAdvantage?
My best guess is that there is something wrong with the project references. You might want to just remove all of the Infragistics project references from the project and re-add them and see if that helps. Make sure that none of them have CopyLocal set to true, also.
Thanx for the reply Mike......
I also think that the error is due to some invalid reference in the project but I am unable to find which assembly is conflicting.
When I change some properties for a user control that uses infragistics controls, it works fine.....
But next time when I reopen the form, again it displays error which I posted in the earlier post.
I am unable to find the exact reason for the error.
Anyways thanx for your help....
Hope will find the solution soon.....
Well, if it's in the same project, then this can't be an issue with the project references.
Does your UserControl have a parameterless constructor? I've seen cases where the designer cannot open a form because the form itself doesn't have a parameterless constructor, although in such a case, the error message is usually more descriptive.
The Form uses the User Control and It is the form that does not display any control be it the user control used on the form or any other standard control.
The User Control that is used in the form is present in the same project but in different folder.
So there's a UserControl with some Infragistics controls on it... is it the UserControl designer that will not open? Or a form containing an instance of the UserControl?
If it's a form, is the UserControl defined inside the same project as the form? Or is it a separate project in the same solution? Or a completely different solution?