This is a migrated thread and some comments may be shown as answers.

Docking Exception

7 Answers 86 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 05 Apr 2009, 04:00 AM

Hello,

I have installed the SL3 controls and am trying to get Docking working with the following Xaml :

<telerikDocking:RadDocking x:Name="docking1">

</telerikDocking:RadDocking>

This works fine, but when I add a SplitContainer:

 

<telerikDocking:RadDocking x:Name="docking1">
    <telerikDocking:RadSplitContainer InitialPosition="DockedRight">
    </telerikDocking:RadSplitContainer>
</telerikDocking:RadDocking>

An exception is thrown :
{System.NullReferenceException: Object reference not set to an instance of an object.
   at MS.Internal.JoltHelper.RaiseEvent(IntPtr target, UInt32 eventId, IntPtr coreEventArgs, UInt32 eventArgsTypeIndex)}

I'm guessing it's something to do with my setup - I just extracted the zip (RadControls_For_Silverlight3_Trial_2009.3.27.zip) to a new directory and referenced Telerik.Windows.Controls, Docking and Navigation dlls directly. There is also nothing else in my Xaml or code behind. I am also definitely running the SL3 Dev runtime.

Also, the Docking Demo provided is now broken - I get this exception instead though :
{System.Windows.Markup.XamlParseException: AG_E_RUNTIME_MANAGED_UNKNOWN_ERROR [Line: 22 Position: 32]
   at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
   at Telerik.Windows.Examples.Examples.Docking.FirstLook.Example.InitializeComponent()
   at Telerik.Windows.Examples.Examples.Docking.FirstLook.Example..ctor()}

Any help with this appreciated,

Jamie

7 Answers, 1 is accepted

Sort by
0
Ben Hayat
Top achievements
Rank 2
answered on 05 Apr 2009, 01:51 PM
Jamie/James, be sure you have referees to Telerik.Windows.Controls and Telerik.Windows.Controls.Navigation
0
James
Top achievements
Rank 1
answered on 06 Apr 2009, 08:34 AM
Hi Ben,

Yes I have added these references but still no luck I'm afraid..

I have tried creating a brand new SL3 project and adding just a RadDocking control and a single child RadSplitContainer control and can see everything perfectly in the VS Preview screen, but when I run the app I still get the same old JS error.

{System.NullReferenceException: Object reference not set to an instance of an object.
   at MS.Internal.JoltHelper.RaiseEvent(IntPtr target, UInt32 eventId, IntPtr coreEventArgs, UInt32 eventArgsTypeIndex)}

I can step through the code and it appears to be falling over after InitializeComponent() and after the RootVisual has been set in the ApplicationStartup event.

Thanks,
Jamie
0
Miroslav Nedyalkov
Telerik team
answered on 06 Apr 2009, 03:44 PM
Hello James,

This sounds really strange. I created a new SL3 application and added references to Teleirk.Windows.Controls, Teleirk.Windows.Controls.Navigation and Teleirk.Windows.Controls.Docking assemblies and copied/pasted your code in the page and everything worked fine. Are you sure you added references to all these assemblies? If yes, please, give us some more information about your environment. It will help us better understand your case and try to locate the source of the problem.

Kind regards,
Miroslav Nedyalkov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
James
Top achievements
Rank 1
answered on 07 Apr 2009, 08:28 AM
Hi There,

Here's a list of my references and their version numbers:

mscorlib
v2.0.50727

system
v2.0.50727

System.Core
v2.0.50727

System.Net
v2.0.50727

System.Windows
v2.0.50727

System.Windows.Browser
v2.0.50727

System.Xml
v2.0.50727

Telerik.Windows.Controls
2009.1.327.1020

Telerik.Windows.Controls.Docking
2009.1.327.1020

Telerik.Windows.Controls.Navigation
2009.1.327.1020

This is my VS setup:

Microsoft Visual Studio 2008
Version 9.0.30729.1 SP
Microsoft .NET Framework
Version 3.5 SP1

Installed Edition: Enterprise

Microsoft Silverlight Projects 2008   91899-153-0000007-60981
Microsoft Silverlight Projects 2008
Version 9.0.30729.4063

etc etc...

My SL runtime and browser:
Version: 3.0.40307.0

IE 8.0.6001.18702

I don't know if it's relevant but my system drive is letter E and I run my SL projects off my F drive, so hopefully there are no absolute paths floating around pointing to "C:\" drive!

I'm also running Vista 32bit SP1 en-NZ.

My Telerik SL3 controls are installed in a separate directory on my E drive, in isolation to the Q1 2009 directory in Program Files. 

Here is a screenshot of my vs project:
http://www.flickr.com/photos/36587020@N04/3420889534/sizes/o/

And here is a screenshot of the exception:
http://www.flickr.com/photos/36587020@N04/3420081495/sizes/o/

Anything else you would like to know please let me know,

Thanks

Jamie.

0
Ben Hayat
Top achievements
Rank 2
answered on 07 Apr 2009, 01:48 PM
Jamie, thank you for providing the details. Man, now I don't know what to say. Everything looks in order. I'm going to let Telerik guys take a shot at it. Hope you resolve it, and when you do, please share it with community for others!
0
Miroslav Nedyalkov
Telerik team
answered on 07 Apr 2009, 03:27 PM
Hello James,

We are still unable to reproduce the problem, but we are investigating it. Could you please, open a support ticket so that we can send other assemblies to try them. Thank you!

Regards,
Miroslav Nedyalkov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
James
Top achievements
Rank 1
answered on 08 Apr 2009, 08:27 AM
Ok thanks a lot, I have submitted a support ticket, with source code and the compiled application.

I've just tried running the compiled application inside a fresh VM with SL3 Beta runtime installed, and I still get the same error message..

Cheers,

Jamie.
Tags
General Discussions
Asked by
James
Top achievements
Rank 1
Answers by
Ben Hayat
Top achievements
Rank 2
James
Top achievements
Rank 1
Miroslav Nedyalkov
Telerik team
Share this question
or