Could not create an instance of type 'RadDocking'

28 posts, 0 answers
  1. Ujjwal Lahoti
    Ujjwal Lahoti avatar
    67 posts
    Member since:
    Jan 2010

    Posted 03 Feb 2010 Link to this post

    I am developing a demo application with RadDocking. I wrote a simple application using the code samples that came with Telerik controls for WPF. When this XAML is loaded in Designer I get the error message: 'Could not create an instance of type 'RadDocking''. However when I run this application it runs fine. Can anyone help me to figure out what is the problem?


    This is the XAML code.
    <Window x:Class="TestApplication.Window1" 
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
        xmlns:qsf="clr-namespace:Telerik.Windows.QuickStart;assembly=Telerik.Windows.QuickStart" 
        Title="Window1" Height="300" Width="300" 
        xmlns:radDock="http://schemas.telerik.com/2008/xaml/presentation"
        <Grid> 
            <radDock:RadDocking> 
                <radDock:RadDocking.DocumentHost> 
                    <radDock:RadSplitContainer> 
                        <radDock:RadPaneGroup> 
                            <radDock:RadDocumentPane Title="Description"
                                <radDock:RadDocumentPane.Content> 
                                    <TextBlock TextWrapping="Wrap" 
                                            Text="On the Documents tab above press Ctrl + Mouse Left button to display the Popup Menu. You can use the same combination on every tab." /> 
                                </radDock:RadDocumentPane.Content> 
                            </radDock:RadDocumentPane> 
                            <radDock:RadPane Header="NotDragable" CanFloat="False"
                                <radDock:RadPane.Content> 
                                    <TextBlock TextWrapping="Wrap" 
                                            Text="This pane cannot be dragged, because it has its property CanFloat set 'False'." /> 
                                </radDock:RadPane.Content> 
                            </radDock:RadPane> 
                        </radDock:RadPaneGroup> 
                    </radDock:RadSplitContainer> 
                </radDock:RadDocking.DocumentHost> 
            </radDock:RadDocking> 
        </Grid> 
    </Window> 





  2. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 04 Feb 2010 Link to this post

    Hi Ujjwal,

     Most probably you don't have reference to the Telerik.Window.QuckStart assembly and you added xml-namespace pointing to it. When I removed the xml-namespace everything worked fine.

    All the best,
    Miroslav Nedyalkov
    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Ujjwal Lahoti
    Ujjwal Lahoti avatar
    67 posts
    Member since:
    Jan 2010

    Posted 04 Feb 2010 Link to this post

    Thanks for the reply. I tried your suggestion it didn't help. I had reference to 'Telerik.Window.QuckStart' in my project.

    FYI: I am running Trial version of Telerik controls for WPF, to evaluate them for the project I am working on.
  5. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 04 Feb 2010 Link to this post

    Hello Ujjwal,

     Could you please to remove this line from the XAML:

    xmlns:qsf="clr-namespace:Telerik.Windows.QuickStart;assembly=Telerik.Windows.QuickStart"
    And to check you references. You should reference at least Telerik.Windows.Controls.dll, Telerik.Windows.Controls.Navigation.dll and Telerik.Windows.Controls.Docking.dll. 

    If this doesn't help, please open a support ticket and send us a project in which we could observe the problem. If you could send us additional information like which designer are you using - Visual Studio or Blend, which version are you using, etc. this would help us a lot.

    Regards,
    Miroslav Nedyalkov
    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.
  6. Ujjwal Lahoti
    Ujjwal Lahoti avatar
    67 posts
    Member since:
    Jan 2010

    Posted 04 Feb 2010 Link to this post

    Tried your suggestion, didn't help. So I create a ticket (ID is : 279207). Waiting for the reply....
  7. Frederic Gos
    Frederic Gos avatar
    3 posts
    Member since:
    May 2006

    Posted 05 Feb 2010 Link to this post

    Exact same problem here.

    Windows 7 64 bit, VS 2008 SP1, .NET 3.5 sp1

    Any solution?

    btw, I cant find the support ticket 279207. hmmm


  8. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 05 Feb 2010 Link to this post

    Hello Frederic,

     You cannot see the thread, because it is a support thread, but not a forum thread. Anyway we don't know what causes the problem in the Ujjwall's case yet.

    Could you please give us some more details about your error and about your configuration? If you could open a support ticket and send us a project that reproduces the problem, this would be very helpful.

    Greetings,
    Miroslav Nedyalkov
    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.
  9. Ujjwal Lahoti
    Ujjwal Lahoti avatar
    67 posts
    Member since:
    Jan 2010

    Posted 05 Feb 2010 Link to this post

    I tried this on another PC and created the project from scratch. When I created the XAML for the first time, it appeared fine in the designer. However I started getting the error: 'Could not create an instance of type 'RadDocking'', after I built the project.

    After that even I clean the project, I still continue to get the error. So after the first build, there are some project settings modified which is causing the error. Is there some project settings that need to be changed to get it to work?....

    Anyways, I am using the same configuration as Frederic, except that I am running Windows XP Pro 32 bit.

    Hope this helps in finding the cause of the problem.
  10. Ljubo Žižić
    Ljubo Žižić avatar
    8 posts
    Member since:
    Jul 2009

    Posted 06 Feb 2010 Link to this post

    Me too getting the same error....
  11. Ljubo Žižić
    Ljubo Žižić avatar
    8 posts
    Member since:
    Jul 2009

    Posted 06 Feb 2010 Link to this post

    reinstalling WPF controls solved it for me...
  12. Ujjwal Lahoti
    Ujjwal Lahoti avatar
    67 posts
    Member since:
    Jan 2010

    Posted 07 Feb 2010 Link to this post

    I tried reinstalling the WPF Controls, but alas the problem persists.....

    If the problem was solved for Ljubo by just reinstalling the controls, then it looks like there is some instability in the controls... Unfortunately in the current state the controls are unusable for me. Hoping for some insight from the Teleriks team.
  13. Ljubo Žižić
    Ljubo Žižić avatar
    8 posts
    Member since:
    Jul 2009

    Posted 07 Feb 2010 Link to this post

    JUst to be more precise..

    I am building a WPF Prism COmposite application and i was getting two errors:
    1.  'Could not create an instance of type 'RadDocking'
    2.  'Could not create an instance of type 'RadPane''

    First one in my Shell.xaml and the second one in my Module1.xaml. Reinstaling the controls solved the first error for me but the second one is still there.
    So me too hoping for some Telerik team assistance
  14. Ujjwal Lahoti
    Ujjwal Lahoti avatar
    67 posts
    Member since:
    Jan 2010

    Posted 07 Feb 2010 Link to this post

    Wanted to add one more data point.

    The Demo C# project that was installed with the Telerik WPF Controls, works fine. i.e. the designer continues to work fine even after the project is built. Hope this narrows the problem.

    Really hoping that this issue is resolved quickly.
  15. Boyan
    Admin
    Boyan avatar
    758 posts

    Posted 08 Feb 2010 Link to this post

    Hello Ujjwal Lahoti,

    Although we tried tried the project you sent and also tried with other projects on 2 different machines we are still unable to reproduce this issue. I have attached a screenshot with my SL versions. Could you verify that you are using the same versions or send me a screenshot with yours as I believe this can be caused by different version of SL.

    Best wishes,
    Boyan
    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.
  16. Ujjwal Lahoti
    Ujjwal Lahoti avatar
    67 posts
    Member since:
    Jan 2010

    Posted 08 Feb 2010 Link to this post

    Hi Boyan,

    First comment to the screen shot you sent is that I am trying to build a WPF application not Silverlight.

    About the problem I wanted to summarize all the posts here so that we know all the information at one place

    Problem:
    When this XAML is loaded in Designer I get the error message: 'Could not create an instance of type 'RadDocking''. However when I run this application it runs fine. The problem happens for even the simplest of XAML (see attached snapshot). There is definitely something wrong.

    <Window x:Class="TestApplication.Window1"  
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"  
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"  
        Title="Window1" Height="300" Width="300"  
        xmlns:radDock="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Docking"
         
        <Grid> 
            <radDock:RadDocking Name="radDocking1" /> 
        </Grid> 
    </Window>  


    Other Comments:
    1. The problem has happened on multiple PCs and different users (see comments by other forum members in this thread). It is not a one off thing.
    2. When you create the project and add a new component, XAML works fine, the problem starts when you build the project.
    3. The Demo project shipped with the RadControls for WPF doesn't have this problem. Main difference I observed in the XAML header is reference to 'QuickStart' and 'qsf' tag
    4. This issue is not limited to RadDocking. It applies to all the controls.

    System Configuration
    1. Visual Studio 2008 SP 1 (ver: 9.0.30729.1)
    2. MS .NET Framework 3.5 SP 1
    3. WPF
    4. OS: Windows XP Pro (Other users have seen this issue on Windows 7 as well)

    If you still can't figure out what is the problem, I will have to just figure out another product to use. In the current state the controls are unusable.
  17. Ujjwal Lahoti
    Ujjwal Lahoti avatar
    67 posts
    Member since:
    Jan 2010

    Posted 08 Feb 2010 Link to this post

    I couldn't upload the screenshot showing the error, using attachment feature, so here is the link to the screenshot:

    http://picasaweb.google.com/lh/sredir?uname=ulahoti&target=PHOTO&id=5435932852650545298&aid=5435932779520969617&authkey=Gv1sRgCLjpp8XO9KHIiAE&feat=email
  18. Ujjwal Lahoti
    Ujjwal Lahoti avatar
    67 posts
    Member since:
    Jan 2010

    Posted 08 Feb 2010 Link to this post

    One more data point to add:

    When I use the following XAML the designer in Visual Studio Works properly:
    <Window x:Class="TestApplication.Window1"  
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"  
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"  
        Title="Window1" Height="300" Width="300" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">  
         
        <Grid> 
            <telerik:RadButton Height="23" Margin="86,50,118,0" Name="radButton1" VerticalAlignment="Top">Button</telerik:RadButton> 
            <telerik:RadDocking Margin="44,95,34,67" Name="radDocking1" /> 
        </Grid> 
    </Window>  

    However when I remove the line with RadButton, I get the error 'Could not create an instance of type 'RadDocking''. The following XAML produces the error message:
    <Window x:Class="TestApplication.Window1"  
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"  
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"  
        Title="Window1" Height="300" Width="300" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">  
         
        <Grid> 
            <telerik:RadDocking Margin="44,95,34,67" Name="radDocking1" /> 
        </Grid> 
    </Window>  

    Looks like to me there is some initialization or environmental variables problem. I have reproduced this issue on 3 different PCs.





  19. Jacob Shepherd
    Jacob Shepherd avatar
    1 posts
    Member since:
    Sep 2009

    Posted 09 Feb 2010 Link to this post

    We were able to reproduce the issue described by Ujjwal Lahoti above.  We will be submitting a support ticket with the sample project.

    Thanks,
    Jacob
  20. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 10 Feb 2010 Link to this post

    Hi Everybody,

     Jacob suggested a work-around that might help - to add a hidden RadButton before the Docking control. Here is the suggested code:

    <Grid Name="Grid1">
    <!-- hack:  added button to prevent instance error in designer -->
        <telerik:RadButton Name="radButton1" Visibility="Hidden">.</telerik:RadButton>
        <telerik:RadDocking>
            <telerik:RadDocking.DocumentHost>
                <telerik:RadSplitContainer>
                    <telerik:RadPaneGroup>
                        <telerik:RadPane Header="Description">
                        </telerik:RadPane>
                        <telerik:RadPane Header="Incident 1" CanFloat="False">
                        </telerik:RadPane>
                        <telerik:RadPane Header="Incident 2" CanFloat="False">
                        </telerik:RadPane>
                    </telerik:RadPaneGroup>
                </telerik:RadSplitContainer>
            </telerik:RadDocking.DocumentHost>
        </telerik:RadDocking>
    </Grid>

    Best wishes,
    Miroslav Nedyalkov
    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.
  21. Ujjwal Lahoti
    Ujjwal Lahoti avatar
    67 posts
    Member since:
    Jan 2010

    Posted 10 Feb 2010 Link to this post

    Thanks for the work around....

    However I would like to know the cause of the problem. As has been mentioned earlier in this thread, you couldn't reproduce this problem on some PCs and now this problem is reproducible. By comparing the two systems can we figure out what is the difference. From my point of view the problem is very basic.

    Further this issue is not limited to RadDocking, as some other member posted on this thread, he observed the problem with RadPane as well. So would like to know would this work around is required every time or ... Essentially just want to understand the problem better. For now I guess I will use the workaround. Thanks,
  22. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 10 Feb 2010 Link to this post

    Hello Ujjwal,

    Of course we will continue investigating the issues, but at this time we don't know what causes this problem and even cannot reproduce it at our side - anyway we would be able to figure out what the problem is and hopefully to fix it.

    We will continue investigating the issues and let you know as soon as we have a solution or at least explanation.

    Sincerely yours,
    Miroslav Nedyalkov
    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.
  23. Ujjwal Lahoti
    Ujjwal Lahoti avatar
    67 posts
    Member since:
    Jan 2010

    Posted 11 Mar 2010 Link to this post

    Any updates on if this issue is fixed. It is really difficult to use the controls, if you can't see how they are rendered in the designer.

    I hate doing a work around every where.
  24. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 11 Mar 2010 Link to this post

    Hello Ujjwal,

     Unfortunately we don't have a solution yet.

    Greetings,
    Miroslav Nedyalkov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  25. Russell Aisbitt
    Russell Aisbitt avatar
    8 posts
    Member since:
    Oct 2009

    Posted 10 Nov 2010 Link to this post

    Have just installed the 2010Q3 release of WPF controls (after been relatively happy using the 2009Q3 release). Am having same problem as outlined in this thread with ALL radcontrols, namely unable to view XAML in designer after project is built. As this issue has been around for over 7 months, I was wondering if anyone has found a solution yet.
  26. George
    Admin
    George avatar
    1332 posts

    Posted 16 Nov 2010 Link to this post

    Hi Russell,

    Could you please give us some more information about your project? I guess you use WPF 3.5 version of our controls. I built a sample project using these assemblies (2010.3.1110.35) and everything worked fine. Could you please try to reproduce the problem in a sample project and send it to us? It would be very helpful in further investigation and pinpointing the issue.

    I will be glad to assist you further.

    Best wishes,
    George
    the Telerik team
    See What's New in RadControls for WPF in Q3 2010 on Tuesday, November 16, 2010 11:00 AM - 12:00 PM EST or 10:00 PM - 11:00 PM EST: Register here>>
  27. Russell Aisbitt
    Russell Aisbitt avatar
    8 posts
    Member since:
    Oct 2009

    Posted 17 Feb 2011 Link to this post

    Hi George,

    I have sent you a sample project that shows the problem

    Ticket ID is: 395466

    Best regards,

    Russell

  28. Swati
    Swati avatar
    17 posts
    Member since:
    Jan 2012

    Posted 09 Apr 2012 Link to this post

    Hi,

    I am facing the same problem. I used the above XAML now it is not giving the error but I am not able to Dock the floating windows. Nothing happens at run-time. I do not even see the Panes. :(         

    Is there any solution for this? below is my XAML: 


    <UserControl x:Class="Intellisys.UserControl2"
        Height="820.096"  Width="1419" Loaded="UserControl_Loaded"  GotFocus="UserControl_GotFocus"  AllowDrop="True" Background="DimGray" SizeChanged="UserControl_SizeChanged" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">
     
         
            <Grid  Name="Gr_Old">
                <telerik:RadButton Visibility="Hidden">.</telerik:RadButton>
                <telerik:RadDocking Name="raddocking1">
                    <telerik:RadSplitContainer Name="rs1">
                        <telerik:RadPaneGroup>
                            <telerik:RadPane Header="Pane1" Height="300" Width="300" x:Name="Pane1">
                            </telerik:RadPane>
                            <telerik:RadPane Header="Pane2" Height="300" Width="300"  x:Name="Pane2">
                            </telerik:RadPane>
                        </telerik:RadPaneGroup>
                    </telerik:RadSplitContainer>
                </telerik:RadDocking>
            </Grid>
        </UserControl>
  29. Swati
    Swati avatar
    17 posts
    Member since:
    Jan 2012

    Posted 09 Apr 2012 Link to this post

    Hi Ujjwal,

    Are you able to Dock windows now? If yes, please reply how you have resolved the issue. I am trying to dock the two floating windows but still I am not able to do it. 

    Warm regards,
    Swati.
Back to Top
UI for WPF is Visual Studio 2017 Ready