Blend 3 exception

4 posts, 0 answers
  1. James
    James avatar
    29 posts
    Member since:
    Sep 2008

    Posted 20 Aug 2009 Link to this post

    This is probably not specifically a GridView problem, but...

    I've had a page which has worked fine and I've edited it using Blend 3, but now I'm getting errors when trying to display it in Blend 3.

    The error is 'Value does fall within the expected range' and a full stack trace indicates that it's in MS.Internal.XcpImports.Collection_insertValue....

    The only thing (famous last words) that I've done recently is change some of the references in the project.

    This is driving me mad, as I can't now edit the layout using Blend! Does anyone have any ideas?

    The XAML code is below - the parser puts error underlines underneath the initial navigation:Page.

    <navigation:Page   
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"   
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
        mc:Ignorable="d" 
        xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation" 
        xmlns:dataInput="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.Input" 
        xmlns:telerikNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation" 
        xmlns:telerikGridView="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView" 
        x:Class="GlastirSLApplication2.UserWorkdesk"   
        Title="Glastir Home" 
        d:DesignWidth="640" d:DesignHeight="480" 
        x:Name="UserWorkdesk1">  
     
        <Grid x:Name="LayoutRoot1" > 
            <Grid.ColumnDefinitions> 
                <ColumnDefinition Width="0.12*"/>  
                <ColumnDefinition Width="0*"/>  
                <ColumnDefinition Width="0.88*"/>  
            </Grid.ColumnDefinitions> 
            <telerikNavigation:RadMenu Height="145"  Orientation="Vertical" VerticalAlignment="Top" d:LayoutOverrides="Height, VerticalMargin" Grid.ColumnSpan="2">  
                <telerikNavigation:RadMenuItem x:Name="mnuOpen" Header="Open" Tag="/CaseWorkdesk"  Click="mnuClick"/>  
                <telerikNavigation:RadMenuItem Header="Close" /> 
                <telerikNavigation:RadMenuItem Header="Cancel" /> 
                <telerikNavigation:RadMenuItem Header="Release" /> 
            </telerikNavigation:RadMenu> 
            <telerikGridView:RadGridView x:Name="grdCases"  AutoGenerateColumns="False" IsReadOnly="True" Margin="4,0,0,0" Grid.Column="2">  
                <telerikGridView:RadGridView.Columns> 
                    <telerikGridView:GridViewDataColumn Header="Case Number"  DataMemberPath="CaseNumber" Width="200"/>  
                    <telerikGridView:GridViewDataColumn Header="CRN"  DataMemberPath="CRN" Width="100"/>  
                    <telerikGridView:GridViewDataColumn Header="SRN"  DataMemberPath="SRN" Width="100"/>  
                    <telerikGridView:GridViewDataColumn Header="Status"  DataMemberPath="EditStatus" Width="200"/>  
                    <telerikGridView:GridViewDataColumn Header="Created"  DataMemberPath="Created" Width="250"/>  
                </telerikGridView:RadGridView.Columns> 
     
            </telerikGridView:RadGridView> 
        </Grid> 
    </navigation:Page> 

    Thanks,

    James
  2. Stefan Dobrev
    Admin
    Stefan Dobrev avatar
    790 posts

    Posted 20 Aug 2009 Link to this post

    Hi James,

    I have just tried your XAML locally and everything works fine on my instance of Blend. After updating the references did you add a reference to the System.Windows.Controls.Navigation.dll that holds the Page object?

    Greetings,
    Stefan Dobrev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. DevCraft banner
  4. James
    James avatar
    29 posts
    Member since:
    Sep 2008

    Posted 21 Aug 2009 Link to this post

    Hi Stefan,
    Thanks for looking into this.

    Yes, I have a reference to System.Windows.Controls.Navigation in the project. The project compiles and runs fine from VS2008, it's just Blend which is having problems.

    If I create a new page and add, for example, a radMenu to it by editing the XAML, the XAML editor immediatly flags the opening or closing page tag with an error underline. It must be something to do with references, I think.

    I've attached the references section from my csproj file below.

    James

      <ItemGroup> 
        <Reference Include="ActivityControl, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">  
          <SpecificVersion>False</SpecificVersion> 
          <HintPath>Libs\ActivityControl.dll</HintPath> 
        </Reference> 
        <Reference Include="System.ComponentModel.DataAnnotations" /> 
        <Reference Include="System.Runtime.Serialization" /> 
        <Reference Include="mscorlib" /> 
        <Reference Include="system" /> 
        <Reference Include="System.Core" /> 
        <Reference Include="System.Net" /> 
        <Reference Include="System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e" /> 
        <Reference Include="System.Windows.Controls.Data, Version=2.0.5.0, Culture=neutral, PublicKeyToken=3d8c6023c75a3242, processorArchitecture=MSIL">  
          <SpecificVersion>False</SpecificVersion> 
          <HintPath>..\..\Silverlight\Telerik\Trial\System.Windows.Controls.Data.dll</HintPath> 
        </Reference> 
        <Reference Include="System.Windows.Controls.Data.DataForm.Toolkit, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">  
          <SpecificVersion>False</SpecificVersion> 
          <HintPath>Libs\System.Windows.Controls.Data.DataForm.Toolkit.dll</HintPath> 
        </Reference> 
        <Reference Include="System.Windows.Controls.Data.Input" /> 
        <Reference Include="System.Windows.Controls.Layout.Toolkit, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> 
        <Reference Include="System.Windows.Controls.Toolkit, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> 
        <Reference Include="System.Windows.Ria" /> 
        <Reference Include="System.Xml" /> 
        <Reference Include="System.Windows.Browser" /> 
        <Reference Include="System.Windows.Controls" /> 
        <Reference Include="System.Windows.Controls.Navigation" /> 
        <Reference Include="Telerik.Windows.Controls, Version=2009.2.724.1020, Culture=neutral, PublicKeyToken=5803cfa389c90ce7, processorArchitecture=MSIL">  
          <SpecificVersion>False</SpecificVersion> 
          <HintPath>..\..\..\Silverlight\Telerik\Trial\Telerik.Windows.Controls.dll</HintPath> 
        </Reference> 
        <Reference Include="Telerik.Windows.Controls.Docking.dll">  
          <HintPath>..\..\..\Silverlight\Telerik\Trial\Telerik.Windows.Controls.Docking.dll</HintPath> 
        </Reference> 
        <Reference Include="Telerik.Windows.Controls.Editor.dll">  
          <HintPath>..\..\..\Silverlight\Telerik\Trial\Telerik.Windows.Controls.Editor.dll</HintPath> 
        </Reference> 
        <Reference Include="Telerik.Windows.Controls.Gauge.dll">  
          <HintPath>..\..\..\Silverlight\Telerik\Trial\Telerik.Windows.Controls.Gauge.dll</HintPath> 
        </Reference> 
        <Reference Include="Telerik.Windows.Controls.GridView, Version=2009.2.724.1020, Culture=neutral, PublicKeyToken=5803cfa389c90ce7, processorArchitecture=MSIL">  
          <SpecificVersion>False</SpecificVersion> 
          <HintPath>..\..\..\Silverlight\Telerik\Trial\Telerik.Windows.Controls.GridView.dll</HintPath> 
        </Reference> 
        <Reference Include="Telerik.Windows.Controls.Input.dll">  
          <HintPath>..\..\..\Silverlight\Telerik\Trial\Telerik.Windows.Controls.Input.dll</HintPath> 
        </Reference> 
        <Reference Include="Telerik.Windows.Controls.Navigation, Version=2009.2.724.1020, Culture=neutral, PublicKeyToken=5803cfa389c90ce7, processorArchitecture=MSIL">  
          <SpecificVersion>False</SpecificVersion> 
          <HintPath>..\..\..\Silverlight\Telerik\Trial\Telerik.Windows.Controls.Navigation.dll</HintPath> 
        </Reference> 
        <Reference Include="Telerik.Windows.Controls.Scheduler, Version=2009.2.724.1020, Culture=neutral, PublicKeyToken=5803cfa389c90ce7, processorArchitecture=MSIL">  
          <SpecificVersion>False</SpecificVersion> 
          <HintPath>..\..\..\Silverlight\Telerik\Trial\Telerik.Windows.Controls.Scheduler.dll</HintPath> 
        </Reference> 
        <Reference Include="Telerik.Windows.Data, Version=2009.2.724.1020, Culture=neutral, PublicKeyToken=5803cfa389c90ce7, processorArchitecture=MSIL">  
          <SpecificVersion>False</SpecificVersion> 
          <HintPath>..\..\..\Silverlight\Telerik\Trial\Telerik.Windows.Data.dll</HintPath> 
        </Reference> 
        <Reference Include="Telerik.Windows.Themes.Office_Black.dll">  
          <HintPath>..\..\..\Silverlight\Telerik\Trial\Telerik.Windows.Themes.Office_Black.dll</HintPath> 
        </Reference> 
        <Reference Include="Telerik.Windows.Themes.Office_Blue.dll">  
          <HintPath>..\..\..\Silverlight\Telerik\Trial\Telerik.Windows.Themes.Office_Blue.dll</HintPath> 
        </Reference> 
        <Reference Include="Telerik.Windows.Themes.Office_Silver.dll">  
          <HintPath>..\..\..\Silverlight\Telerik\Trial\Telerik.Windows.Themes.Office_Silver.dll</HintPath> 
        </Reference> 
        <Reference Include="Telerik.Windows.Themes.Summer.dll">  
          <HintPath>..\..\..\Silverlight\Telerik\Trial\Telerik.Windows.Themes.Summer.dll</HintPath> 
        </Reference> 
        <Reference Include="Telerik.Windows.Themes.Vista.dll">  
          <HintPath>..\..\..\Silverlight\Telerik\Trial\Telerik.Windows.Themes.Vista.dll</HintPath> 
        </Reference> 
      </ItemGroup> 
  5. Hristo
    Admin
    Hristo avatar
    832 posts

    Posted 26 Aug 2009 Link to this post

    Hello James,

    We have tested your scenario with Silverlight 3 (3.0.40723.0) and Blend 3 (the Trail version).
    Everything works as expected.
    From your ticket you indicates that you are using 2009.1 526 but from the references from your project it seems that you are using newer (2009.2.724.1020) version.
    1020 indicates that you are using our assemblies that were build against Silverlight 2.
    But I assume you are using Silverlight 3.
    So could you please tell us the version of Silverlight, Blend and RadControls that you are using?
    Also if you are using Silverlight 3 - you should use the latest available assemblies (2009 Q2 SP1).
    They are build against Silverlight 3 and takes full advantage of it.
    Please try to upgrade to the latest official assemblies and let us know if you experience the same error.

    Waiting for you response.

    Best wishes,
    Hristo
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top