locked
Tag does not exist in XML namespace... RRS feed

  • Question

  • The solution builds fine in Visual Studio IDE. But from a TFS Build, i get this error:

    error MC3074: The tag 'Rectangle.Effect' does not exist in XML namespace 'http://schemas.microsoft.com/winfx/2006/xaml/presentation'. Line 11 Position 22.

     

    Here's the xaml its complaining about:

     

     

    <UserControl x:Class="FPDT.CustomControls.D3LineChart"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:d3="http://research.microsoft.com/DynamicDataDisplay/1.0" 
      Height="Auto" Width="Auto" Loaded="UserControl_Loaded">
      <UserControl.Resources>
        
        <DataTemplate x:Key="followMarkerTemplate">
          <Grid>
            <Rectangle RadiusX="5" RadiusY="5" Fill="LightGray" Stroke="DarkGray">
              <Rectangle.Effect>
                <DropShadowEffect Color="DarkGray" Direction="290" ShadowDepth="4"/>
              </Rectangle.Effect>
            </Rectangle>
            <StackPanel Orientation="Vertical" Margin="3">          
              <TextBlock><TextBlock Text="{Binding Data.Value}"/></TextBlock> 
            </StackPanel>
          </Grid>
        </DataTemplate>
      </UserControl.Resources>
      <Grid>
        <Grid.RowDefinitions>
          <RowDefinition Height="200*" />
        </Grid.RowDefinitions>    
        <d3:ChartPlotter Grid.Row="0" Grid.Column="0" x:Name="plotter" NewLegendVisible="True" Domain="{x:Static d3:DataDomains.XPositive}" 
                 MouseRightButtonDown="plotter_MouseRightButtonDown" MouseDoubleClick="plotter_MouseDoubleClick" FontSize="11" 
                 FontWeight="Normal" Margin="2,17,2,2" FontFamily="Tahoma" Padding="0" ViewportClipToBoundsEnlargeFactor="1.1" 
                 VerticalAlignment="Stretch" HorizontalAlignment="Stretch" VerticalContentAlignment="Center" 
                 HorizontalContentAlignment="Stretch" ForceCursor="False" IsTabStop="False" SnapsToDevicePixels="True" 
                 LegendVisibility="Collapsed" BorderThickness="1">       
          <d3:AxisNavigation Placement="Bottom"/>
          <d3:AxisNavigation Placement="Right"/>
          <d3:AxisNavigation Placement="Left"/>
                  
          <d3:ChartPlotter.DataTransform>
            <d3:Log10XTransform/>
          </d3:ChartPlotter.DataTransform>
    
        </d3:ChartPlotter>
        <Image x:Name="imgGraphHelp" Source="/img/toolbar-help.ico" Width="15" Height="16" VerticalAlignment="Top" HorizontalAlignment="Right" />
      </Grid>
    </UserControl>
    
    

     

    Monday, September 27, 2010 9:53 PM

All replies

  • Hi,

    It seems that you are building a WPF project.

    1 Which version of TFS/VS are you using?

    2 If you log on Build Server and build the solution using Visual Studio, will it success?

    3 In step2, if you log on as TFSBuild account(the account running TFSBuildService), will is success?


    Best regards,
    Ruiz
    MSDN Subscriber Support in Forum
    If you have any feedback on our support, please contact msdnmg @ microsoft.com
    Tuesday, September 28, 2010 5:42 AM
    Moderator
  • Hi,

    It seems that you are building a WPF project.

    1 Which version of TFS/VS are you using?

    2 If you log on Build Server and build the solution using Visual Studio, will it success?

    3 In step2, if you log on as TFSBuild account(the account running TFSBuildService), will is success?


    Best regards,
    Ruiz
    MSDN Subscriber Support in Forum
    If you have any feedback on our support, please contact msdnmg @ microsoft.com

    1) Using VS/TFS 08.

    2/3) Don't have permissions to remote desktop to the build server

    Tuesday, September 28, 2010 2:59 PM
  • Hi,

    Step2 is to verify whether Build Server can build the project, for example,  all the necessary softwares have been installed on the machine.

    Step3 is to isolate the permission issue because the TFSBuild account is not a Local Administrator on Build Server by default.

    If you donot have the permission to access Build Server, please contact your TFS Administrator to try above steps which are helpful to troubleshoot this issue.


    Best regards,
    Ruiz
    MSDN Subscriber Support in Forum
    If you have any feedback on our support, please contact msdnmg @ microsoft.com
    Tuesday, September 28, 2010 6:01 PM
    Moderator