Предоставление значения для system windows baml2006 typeconvertermarkupextension вызвало исключение

The exception in the title is thrown when I open a window in WPF, the strange thing is that this does not happen on my Windows 7 development machine nor does it happen when it is deployed on Windows 7.

I only get this error on Windows XP, and only the second time that I open the window.

Here is the code to open the window:

ReportParametersWindow win = null;

      bool canOverWrite = _shownReports.Contains(rpt.FriendlyName);

      if (!(canOverWrite))
        win = new ReportParametersWindow(rpt.FriendlyName, rpt.ReportParameters, canOverWrite);
      else
        win = new ReportParametersWindow(rpt.FriendlyName, (container.ParametersWindow as ReportParametersWindow).Controls, canOverWrite);

      win.ShowDialog();

And the XAML for the window:

<Window xmlns:my="clr-namespace:MHA.Modules.Core.Controls;assembly=MHA.Modules.Core"  
    x:Class="MHA.Modules.Reports.Views.ReportParametersWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Parameters" Height="500" Width="600" MinWidth="500" MaxHeight="500" 
    Icon="/MHA.Modules.Reports;component/Images/Parameters.ico" SizeToContent="WidthAndHeight" 
    WindowStartupLocation="CenterScreen"
    xmlns:odc="clr-namespace:Odyssey.Controls;assembly=Odyssey" Closed="Window_Closed">

<Grid>
    <Grid.RowDefinitions>
        <RowDefinition Height="*"/>
        <RowDefinition Height="40"/>
    </Grid.RowDefinitions>
    <ScrollViewer Grid.Row="0" Name="ScrollViewer1" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" CanContentScroll="True">
        <StackPanel Name="ParameterStack">
            <my:LocationCtl Text="Parameters for report - " Name="loc"/>
        </StackPanel>
    </ScrollViewer>
    <Grid Grid.Row="1">
        <Grid.ColumnDefinitions>
            <ColumnDefinition/>
            <ColumnDefinition/>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>

        <CheckBox ToolTip="This will replace the first report of the same type that was shown." Name="chkOverwrite" Content="Overwrite old" VerticalAlignment="Center" Margin="5,0"></CheckBox>

        <Button Grid.Column="2" HorizontalAlignment="Right" Margin="5,0" Height="30" Style="{StaticResource DionysusButton}" Width="100" IsDefault="True" Click="Button_Click">
            <StackPanel Orientation="Horizontal">
                <Image Source="/MHA.Modules.Reports;component/Images/Success.png"></Image>
                <TextBlock Margin="5,0" Text="Accept" VerticalAlignment="Center"></TextBlock>
            </StackPanel>
        </Button>
    </Grid>
</Grid>

Does anyone have suggestions?

4 / 4 / 2

Регистрация: 24.05.2013

Сообщений: 300

1

.NET 4.x

06.06.2013, 15:00. Показов 16047. Ответов 5


Студворк — интернет-сервис помощи студентам

Только начал изучать WPF…Задаю фон для программы:

XML
1
2
3
4
5
6
7
8
9
10
11
<Window x:Class="YourText_Version_WPF.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="YourText" Height="320" Width="548" WindowStyle="SingleBorderWindow" ResizeMode="CanMinimize" WindowStartupLocation="CenterScreen" Icon="black.ico">
    <Window.Background>
        <ImageBrush ImageSource="Fon.png"/>
    </Window.Background>
    <Grid>
        
    </Grid>
</Window>

В ответ получаю…
1)

Кликните здесь для просмотра всего текста

Первый этап обработки исключения типа «System.Windows.Markup.XamlParseException» в PresentationFramework.dll

Дополнительные сведения: Предоставление значения для «System.Windows.Baml2006.TypeConverterMarkupExtension» вызвало исключение.

2)

Кликните здесь для просмотра всего текста

Необработанное исключение типа «System.Windows.Markup.XamlParseException» в PresentationFramework.dll

Дополнительные сведения: Предоставление значения для «System.Windows.Baml2006.TypeConverterMarkupExtension» вызвало исключение.

P.S. Посоветуйте учебник по XAML …Для работы с WPF и C#.



0



  • Remove From My Forums
  • Question

  • This error has started to be thrown on one of our development machines. The following code is the cause

    <Style.Triggers>
    	<Trigger Property="Validation.HasError" Value="True">
    		<Setter Property="ToolTip">
    			<Setter.Value>
    				<Binding Path="(Validation.Errors)[0].ErrorContent" RelativeSource="{x:Static RelativeSource.Self}" />
    			</Setter.Value>
    		</Setter>
    	</Trigger>
    </Style.Triggers>

     This XAML is in an ElementHost control on a Windows Form in VS2010. The code has previously worked OK and still appears to work on other machines. The solution contains multiple projects and I have deleted and reloaded the project from source code.

    When the code is commented out the form loads OK (albeit without the tooltip functionality). When the code is uncommented this error returns

    System.Windows.Markup.XamlParseException occurred
     Message='Provide value on 'System.Windows.Baml2006.TypeConverterMarkupExtension' threw an exception.' Line number '66' and line position '42'.
     Source=PresentationFramework
     LineNumber=66
     LinePosition=42
    

    I have seen a few posts and related topics on similar errors without seeing any definite resolution. Has anyone encountered something like this and been able to fix it? 

Answers

  • We have now found a fix to the System.Windows.Baml2006.TypeConverterMarkupExtension threw an exception error.

    We removed the following reference from the csproj file and everything came back to life.

    <Reference Include="WPFToolkit, Version=3.5.40128.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
    

    We think that the act of adding a DatePicker to the xaml file may have been the thing that brought this on. The project has only recently beeen upgraded from .Net3.5.

    • Marked as answer by

      Thursday, August 11, 2011 3:43 AM

I found out that the error occurs during initialization

Error:
Providing value for System.Windows.Baml2006.TypeConverterMerkupExtension «caused an exception. Line number 8 and the position in row 9

What could it be?

<Window x:Class="Client.Index"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:l="clr-namespace:Client.index"
        Title="Главная программа"
        x:Name="window"
        KeyDown="window_KeyDown"
        WindowState="Maximized"
        Icon="/Client;component/Client.ico"
        >
    <Border x:Name="p_border">
        <ScrollViewer VerticalScrollBarVisibility="Auto" >
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition/>
                </Grid.RowDefinitions>
                <Grid Grid.Row="0" x:Name="gridrtfbox" Visibility="Collapsed">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="*"/>
                        <RowDefinition/>
                    </Grid.RowDefinitions>
                </Grid>
                <Grid Grid.Row="1">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="*" />
                        <RowDefinition Height="*" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="20" />
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition/>
                        <ColumnDefinition/>
                        <ColumnDefinition/>
                        <ColumnDefinition/>
                    </Grid.ColumnDefinitions>
                    <DockPanel x:Name="stack_d" Grid.Row="0"  Grid.ColumnSpan="4" VerticalAlignment="Stretch" >
                        <!--<l:CategoryView  />-->
                    </DockPanel>
                    <DockPanel x:Name="stack_trainer" Grid.Row="1"  Grid.ColumnSpan="4" DockPanel.Dock="Bottom" >
                        <!--<loc:TrainerView />-->
                    </DockPanel>

                    <Button Content="Почта" x:Name="mails"  Grid.Row="2" Grid.Column="0"  Width="100" HorizontalAlignment="Center" VerticalAlignment="Center"  Click="mails_Click"/>
                    <Button Content="Оплатить" Width="100" Grid.Row="2" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center"  Click="Button_Click_Payment"/>
                    <Button Content="Тех помощь" Width="100"  Grid.Row="2" Grid.Column="2" HorizontalAlignment="Center" VerticalAlignment="Center"  x:Name="support" Click="support_Click"/>
                    <Button Content="Настройки" x:Name="settings"  Grid.Row="2" Grid.Column="3"   Width="100" HorizontalAlignment="Center" VerticalAlignment="Center" Click="settings_Click"/>
                </Grid>
            </Grid>
        </ScrollViewer>
    </Border>
</Window>

C#:

using System;
using System.Windows;
using System.Windows.Input;
using System.Collections.ObjectModel;
using Client.payment;
using System.Data;
using MySql.Data.MySqlClient;
using DataBase;
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Threading;
using System.Windows.Threading;
using SandboxApplication.Alerts;
using System.Linq;
using System.Windows.Media.Imaging;
using System.Net;
using System.IO;
using System.Windows.Media;


namespace Client
{
    /// <summary>
    /// Interaction logic for Index.xaml
    /// </summary>
    public partial class Index : Window
    {


        static public string idClient = "0";
        static public string idPersonClient = "0";

        static public DataTable dtPayment;
        //DATE_FORMAT(bday,'%d.%m.%Y') as bday

        //private delegate IntPtr LowLevelKeyboardProc(int nCode, IntPtr wParam, IntPtr lParam);
        //[DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)]
        //private static extern IntPtr SetWindowsHookEx(int id, LowLevelKeyboardProc callback, IntPtr hMod, uint dwThreadId);
        //[DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)]
        //private static extern bool UnhookWindowsHookEx(IntPtr hook);
        //[DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)]
        //private static extern IntPtr CallNextHookEx(IntPtr hook, int nCode, IntPtr wp, IntPtr lp);
        //[DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)]
        //private static extern IntPtr GetModuleHandle(string name);
        //[DllImport("user32.dll", CharSet = CharSet.Auto)]
        //private static extern short GetAsyncKeyState(System.Windows.Forms.Keys key);

        //private IntPtr ptrHook;
        //private LowLevelKeyboardProc objKeyboardProcess;


        Timer timer;

        public System.Windows.Controls.Border GetSetBorder
        {
            get { return p_border; }
            set { p_border = value; }
        }


        DateTime interval = new DateTime();


        string id = "";
        public void Update()
        {
            idPersonClient = id;
            MessageBox.Show("idPersonClient = id;");
            SetIdClient();
            MessageBox.Show(" SetIdClient();");
            DataPaymentGood(idClient);
            MessageBox.Show("DataPaymentGood(idClient);");
            string background_path = "";
            string myback = "";
            try
            {
                string sql = @"SELECT *";
                //string sql = @"SELECT  *";
                using (MySqlConnection connection = ConnectToDataBase.GetConnection())
                {
                    MySqlCommand command = new MySqlCommand(sql, connection);
                    // MySqlDataAdapter adapter = new MySqlDataAdapter();
                    connection.Open();
                    myback = command.ExecuteScalar().ToString();

                    if (File.Exists("images/" + myback) == false)
                    {
                        sql = @"SELECT *";
                        command = new MySqlCommand(sql, connection);
                        background_path = command.ExecuteScalar().ToString();
                        myback = background_path.Substring(background_path.LastIndexOf("/") + 1);
                        myback = "background" + myback;
                        string request = string.Format("{0}", background_path);
                        HttpWebRequest loHttp = (HttpWebRequest)WebRequest.Create(request);
                        loHttp.Method = "GET";
                        loHttp.ProtocolVersion = HttpVersion.Version11;
                        HttpWebResponse loWebResponse = (HttpWebResponse)loHttp.GetResponse();


                        using (StreamReader loResponseStream = new StreamReader(loWebResponse.GetResponseStream()))
                        {
                            System.Drawing.Image webImage = System.Drawing.Image.FromStream(loWebResponse.GetResponseStream());

                            webImage.Save(Directory.GetCurrentDirectory() + "/images/" + myback);
                            webImage.Dispose();
                        }
                        sql = "UPDATE *";
                        command = new MySqlCommand(sql, connection);


                        command = new MySqlCommand(sql, connection);
                        command.Parameters.Clear();
                        command.Parameters.AddWithValue("@background", myback);
                        command.Parameters.AddWithValue("@id", Index.idPersonClient);

                        int a = command.ExecuteNonQuery();
                    }


                    MessageBox.Show("int a = command.ExecuteNonQuery();");
                    //string back = background_path.Substring(background_path.LastIndexOf("/")-1);


                    // Create an ImageBrush

                    ImageBrush imgBrush = new ImageBrush();
                    imgBrush.ImageSource = new BitmapImage(new Uri(Directory.GetCurrentDirectory() + "/images/" + myback, UriKind.Absolute));
                    p_border.Background = imgBrush;
                    imgBrush = null;




                    //ImageSource imageSource = new BitmapImage(new Uri("images/background.jpg", UriKind.Relative));
                    //p_border.Background = new ImageBrush(imageSource);
                    //GetSetBorder.Background = null;

                }
                // idPersonClient
            }
            catch (NullReferenceException nullex)
            {
                //нет выбраного у польозвателя фона
                try
                {
                    string sql = @"SELECT path FROM Background LIMIT 1";
                    using (MySqlConnection connection = ConnectToDataBase.GetConnection())
                    {
                        MySqlCommand command = new MySqlCommand(sql, connection);
                        // MySqlDataAdapter adapter = new MySqlDataAdapter();
                        connection.Open();
                        background_path = command.ExecuteScalar().ToString();

                        string request = string.Format("{0}", background_path);
                        HttpWebRequest loHttp = (HttpWebRequest)WebRequest.Create(request);
                        loHttp.Method = "GET";
                        loHttp.ProtocolVersion = HttpVersion.Version11;
                        HttpWebResponse loWebResponse = (HttpWebResponse)loHttp.GetResponse();

                        StreamReader loResponseStream = new StreamReader(loWebResponse.GetResponseStream());
                        System.Drawing.Image webImage = System.Drawing.Image.FromStream(loWebResponse.GetResponseStream());

                        webImage.Save("images/background.jpg");

                        sql = "UPDATE *";
                        command = new MySqlCommand(sql, connection);
                        command.Parameters.Clear();
                        command.Parameters.AddWithValue("@id", Index.idClient);

                        int a = command.ExecuteNonQuery();

                        //System.Windows.Controls.Image finalImage = new  System.Windows.Controls.Image();
                        //BitmapImage logo = new BitmapImage();
                        //logo.BeginInit();
                        //logo.UriSource = new Uri("images/background.jpg");
                        //logo.EndInit();
                        //finalImage.Source = logo;







                        //FileStream fs = new FileStream("images/background.jpg", FileMode.Open);
                        //Image img = Image.FromStream(fs);
                        //fs.Close();


                        //ImageSource imageSource = Bitmap.FromFile();

                        // Create an ImageBrush
                        ImageBrush imgBrush = new ImageBrush();
                        imgBrush.ImageSource = new BitmapImage(new Uri("images/background.jpg", UriKind.Relative));


                        p_border.Background = imgBrush;
                    }
                }
                catch (NullReferenceException nullex2)
                {
                    //нет не одной записи в фоне
                    p_border.Background = null;
                }
                catch { }
            }
            catch (Exception ex) { }


            UpdateMessages();
            if (timer == null)
            {
                interval = DateTime.Parse(new TimeSpan(0, 0, 30).ToString());
                timer = new Timer(CheckMess, interval, 1000, long.Parse(interval.TimeOfDay.TotalSeconds.ToString()) * 1000);

            }

            try
            {

                //ProcessModule objCurrentModule = Process.GetCurrentProcess().MainModule;
                //objKeyboardProcess = new LowLevelKeyboardProc(captureKey);
                //ptrHook = SetWindowsHookEx(13, objKeyboardProcess, GetModuleHandle(objCurrentModule.ModuleName), 0);
            }
            catch { return; }
        }
        public Index(string id)
        {
            this.id = id;
            MessageBox.Show("public Index(string id)");
            InitializeComponent();
            MessageBox.Show("  InitializeComponent();");



        }
        public void SetIdClient()
        {
            try
            {
                string sql = @"SELECT *";
                using (MySqlConnection connection = ConnectToDataBase.GetConnection())
                {
                    MySqlCommand command = new MySqlCommand(sql, connection);
                    // MySqlDataAdapter adapter = new MySqlDataAdapter();
                    connection.Open();
                    idClient = command.ExecuteScalar().ToString();
                }
                // idPersonClient
            }
            catch { MessageBox.Show("Произошла ошибка в SetIdClient, обратитесь к администрации или попробуйте перезайти - программа может работать не коректно"); }
        }
        //[StructLayout(LayoutKind.Sequential)]
        //private struct KBDLLHOOKSTRUCT
        //{
        //    public System.Windows.Forms.Keys key;
        //    public int scanCode;
        //    public int flags;
        //    public int time;
        //    public IntPtr extra;
        //}
        //static bool LWin = false;
        //private IntPtr captureKey(int nCode, IntPtr wp, IntPtr lp)
        //{
        //    if (nCode >= 0)
        //    {
        //        KBDLLHOOKSTRUCT objKeyInfo = (KBDLLHOOKSTRUCT)Marshal.PtrToStructure(lp, typeof(KBDLLHOOKSTRUCT));
        //        if (objKeyInfo.key == System.Windows.Forms.Keys.PrintScreen) //здеся и перехватываем код клавиши
        //        {
        //            MessageBox.Show("Не шалить! ");
        //            if (Clipboard.ContainsImage())
        //            {
        //                Clipboard.Clear();
        //            }
        //            return (IntPtr)1;
        //        }
        //        else if (objKeyInfo.key == System.Windows.Forms.Keys.LWin)
        //        {
        //            LWin = true;
        //            return CallNextHookEx(ptrHook, nCode, wp, lp);
        //        }
        //        else if (objKeyInfo.key == System.Windows.Forms.Keys.D)
        //        {
        //            if (LWin)
        //            {
        //                return (IntPtr)1;
        //            }
        //        }
        //        LWin = false;
        //    }
        //    return CallNextHookEx(ptrHook, nCode, wp, lp);
        //}



        static public DataTable DataPaymentGood(string id)
        {
            try
            {
                DataSet temp = new DataSet();
                string sql = "SELECT *";
                using (MySqlConnection connection = ConnectToDataBase.GetConnection())
                {
                    MySqlCommand command = new MySqlCommand(sql, connection);
                    MySqlDataAdapter adapter = new MySqlDataAdapter();
                    connection.Open();
                    adapter.SelectCommand = command;
                    int count = adapter.Fill(temp, "Purchased");
                }
                dtPayment = temp.Tables["Purchased"];
                return dtPayment;
            }
            catch (Exception ex)
            {
                //Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.
                MessageBox.Show(ex.Message);
                return null;
            }
        }
        static ObservableCollection<BasketTheme> basketTheme = new ObservableCollection<BasketTheme>();
        public static ObservableCollection<BasketTheme> GetBasketTheme { get { return basketTheme; } }

        static ObservableCollection<BasketTrainer> basketTrainer = new ObservableCollection<BasketTrainer>();
        public static ObservableCollection<BasketTrainer> GetBasketTrainer { get { return basketTrainer; } }

        private void Button_Click_Payment(object sender, RoutedEventArgs e)
        {
            try
            {
                Payment p = new Payment();
                p.ShowDialog();
            }
            catch { }
        }

        private void window_KeyDown(object sender, KeyEventArgs e)
        {
            try
            {
                if (e.Key == Key.F5)
                {
                    Index i = new Index(idClient);
                    i.Show();
                    this.Close();
                }
                if (e.Key == Key.Escape)
                    this.Close();
            }
            catch { }
        }

        private void support_Click(object sender, RoutedEventArgs e)
        {
            Support s = new Support(this);
            s.Show();
        }

        private void mails_Click(object sender, RoutedEventArgs e)
        {
            Mail s = new Mail(this);
            s.Show();
        }




        #region Messages



        static ObservableCollection<Message> messages = new ObservableCollection<Message>();
        public static ObservableCollection<Message> GetMessages { get { return messages; } }
        DataSet dtSet = new DataSet();
        int total_messages = 0;
        public void ChekingMess()
        {
            try
            {
                string sql = @"SELECT *";
                using (MySqlConnection connection = ConnectToDataBase.GetConnection())
                {
                    MySqlCommand command = new MySqlCommand(sql, connection);
                    connection.Open();
                    int temp_total_messages = int.Parse(command.ExecuteScalar().ToString());

                    if (temp_total_messages > total_messages)
                    {

                        this.Dispatcher.Invoke(DispatcherPriority.Normal, (Action)(() =>
                        {
                            UpdateAll();
                            SimpleAlert am = new SimpleAlert();
                            am.Title = "У вас новое сообщение ";
                            am.Message = "Зайдите в сообщения";
                        }));
                    }
                }
            }
            catch { }
        }
        void CheckMess(object obj)
        {
            ChekingMess();
        }
        #region UPDATE
        public void UpdateMessages()
        {
            try
            {
                Helper.RemoveAll(GetMessages);

                string sql = @"SELECT *";
                total_messages = -1;
                if (dtSet.Tables["Messages"] != null)
                    dtSet.Tables["Messages"].Clear();
                using (MySqlConnection connection = ConnectToDataBase.GetConnection())
                {
                    MySqlCommand command = new MySqlCommand(sql, connection);
                    MySqlDataAdapter adapter = new MySqlDataAdapter();
                    connection.Open();
                    adapter.SelectCommand = command;
                    total_messages = adapter.Fill(dtSet, "Messages");

                }
                if (total_messages > 0)
                {
                    for (int i = 0; i < dtSet.Tables["Messages"].Rows.Count; i++)
                    {
                        int id = int.Parse(dtSet.Tables["Messages"].Rows[i].ItemArray[0].ToString());
                        int from_id = int.Parse(dtSet.Tables["Messages"].Rows[i].ItemArray[1].ToString());
                        string name_from = dtSet.Tables["Messages"].Rows[i].ItemArray[2].ToString();
                        int to_id = int.Parse(dtSet.Tables["Messages"].Rows[i].ItemArray[3].ToString());
                        string name_to = dtSet.Tables["Messages"].Rows[i].ItemArray[4].ToString();
                        string title = dtSet.Tables["Messages"].Rows[i].ItemArray[5].ToString();
                        string text = dtSet.Tables["Messages"].Rows[i].ItemArray[6].ToString();
                        DateTime send_date = new DateTime();
                        DateTime receive_date = new DateTime();
                        try
                        {
                            send_date = DateTime.Parse(dtSet.Tables["Messages"].Rows[i].ItemArray[7].ToString());
                        }
                        catch { }
                        try
                        {
                            receive_date = DateTime.Parse(dtSet.Tables["Messages"].Rows[i].ItemArray[8].ToString());
                        }
                        catch { }
                        Message f = new Message(id, from_id, name_from, to_id, name_to, title, text, send_date, receive_date);
                        messages.Add(f);
                    }
                }
                messages = new ObservableCollection<Message>(messages.OrderBy(Send_date => Send_date));
            }
            catch { }
        }
        void UpdateAll()
        {
            UpdateMessages();
            //UpdateClient();

            //UpdateAdmin();
            //UpdateClientNotPaid();
        }
        #endregion



        #endregion

        private void settings_Click(object sender, RoutedEventArgs e)
        {
            Settings s = new Settings(this);
            s.ShowDialog();
        }
    }
}

  • Remove From My Forums
  • Question

  • This error has started to be thrown on one of our development machines. The following code is the cause

    <Style.Triggers>
    	<Trigger Property="Validation.HasError" Value="True">
    		<Setter Property="ToolTip">
    			<Setter.Value>
    				<Binding Path="(Validation.Errors)[0].ErrorContent" RelativeSource="{x:Static RelativeSource.Self}" />
    			</Setter.Value>
    		</Setter>
    	</Trigger>
    </Style.Triggers>

     This XAML is in an ElementHost control on a Windows Form in VS2010. The code has previously worked OK and still appears to work on other machines. The solution contains multiple projects and I have deleted and reloaded the project from source code.

    When the code is commented out the form loads OK (albeit without the tooltip functionality). When the code is uncommented this error returns

    System.Windows.Markup.XamlParseException occurred
     Message='Provide value on 'System.Windows.Baml2006.TypeConverterMarkupExtension' threw an exception.' Line number '66' and line position '42'.
     Source=PresentationFramework
     LineNumber=66
     LinePosition=42
    

    I have seen a few posts and related topics on similar errors without seeing any definite resolution. Has anyone encountered something like this and been able to fix it? 

Answers

  • We have now found a fix to the System.Windows.Baml2006.TypeConverterMarkupExtension threw an exception error.

    We removed the following reference from the csproj file and everything came back to life.

    <Reference Include="WPFToolkit, Version=3.5.40128.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
    

    We think that the act of adding a DatePicker to the xaml file may have been the thing that brought this on. The project has only recently beeen upgraded from .Net3.5.

    • Marked as answer by

      Thursday, August 11, 2011 3:43 AM

The exception in the title is thrown when I open a window in WPF, the strange thing is that this does not happen on my Windows 7 development machine nor does it happen when it is deployed on Windows 7.

I only get this error on Windows XP, and only the second time that I open the window.

Here is the code to open the window:

ReportParametersWindow win = null;

      bool canOverWrite = _shownReports.Contains(rpt.FriendlyName);

      if (!(canOverWrite))
        win = new ReportParametersWindow(rpt.FriendlyName, rpt.ReportParameters, canOverWrite);
      else
        win = new ReportParametersWindow(rpt.FriendlyName, (container.ParametersWindow as ReportParametersWindow).Controls, canOverWrite);

      win.ShowDialog();

And the XAML for the window:

<Window xmlns:my="clr-namespace:MHA.Modules.Core.Controls;assembly=MHA.Modules.Core"  
    x:Class="MHA.Modules.Reports.Views.ReportParametersWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Parameters" Height="500" Width="600" MinWidth="500" MaxHeight="500" 
    Icon="/MHA.Modules.Reports;component/Images/Parameters.ico" SizeToContent="WidthAndHeight" 
    WindowStartupLocation="CenterScreen"
    xmlns:odc="clr-namespace:Odyssey.Controls;assembly=Odyssey" Closed="Window_Closed">

<Grid>
    <Grid.RowDefinitions>
        <RowDefinition Height="*"/>
        <RowDefinition Height="40"/>
    </Grid.RowDefinitions>
    <ScrollViewer Grid.Row="0" Name="ScrollViewer1" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" CanContentScroll="True">
        <StackPanel Name="ParameterStack">
            <my:LocationCtl Text="Parameters for report - " Name="loc"/>
        </StackPanel>
    </ScrollViewer>
    <Grid Grid.Row="1">
        <Grid.ColumnDefinitions>
            <ColumnDefinition/>
            <ColumnDefinition/>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>

        <CheckBox ToolTip="This will replace the first report of the same type that was shown." Name="chkOverwrite" Content="Overwrite old" VerticalAlignment="Center" Margin="5,0"></CheckBox>

        <Button Grid.Column="2" HorizontalAlignment="Right" Margin="5,0" Height="30" Style="{StaticResource DionysusButton}" Width="100" IsDefault="True" Click="Button_Click">
            <StackPanel Orientation="Horizontal">
                <Image Source="/MHA.Modules.Reports;component/Images/Success.png"></Image>
                <TextBlock Margin="5,0" Text="Accept" VerticalAlignment="Center"></TextBlock>
            </StackPanel>
        </Button>
    </Grid>
</Grid>

Does anyone have suggestions?

4 / 4 / 2

Регистрация: 24.05.2013

Сообщений: 300

1

.NET 4.x

06.06.2013, 15:00. Показов 14344. Ответов 5


Только начал изучать WPF…Задаю фон для программы:

XML
1
2
3
4
5
6
7
8
9
10
11
<Window x:Class="YourText_Version_WPF.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="YourText" Height="320" Width="548" WindowStyle="SingleBorderWindow" ResizeMode="CanMinimize" WindowStartupLocation="CenterScreen" Icon="black.ico">
    <Window.Background>
        <ImageBrush ImageSource="Fon.png"/>
    </Window.Background>
    <Grid>
        
    </Grid>
</Window>

В ответ получаю…
1)

Кликните здесь для просмотра всего текста

Первый этап обработки исключения типа «System.Windows.Markup.XamlParseException» в PresentationFramework.dll

Дополнительные сведения: Предоставление значения для «System.Windows.Baml2006.TypeConverterMarkupExtens ion» вызвало исключение.

2)

Кликните здесь для просмотра всего текста

Необработанное исключение типа «System.Windows.Markup.XamlParseException» в PresentationFramework.dll

Дополнительные сведения: Предоставление значения для «System.Windows.Baml2006.TypeConverterMarkupExtens ion» вызвало исключение.

P.S. Посоветуйте учебник по XAML …Для работы с WPF и C#.

__________________
Помощь в написании контрольных, курсовых и дипломных работ, диссертаций здесь

0

The exception in the title is thrown when I open a window in WPF, the strange thing is that this does not happen on my Windows 7 development machine nor does it happen when it is deployed on Windows 7.

I only get this error on Windows XP, and only the second time that I open the window.

Here is the code to open the window:

ReportParametersWindow win = null;

      bool canOverWrite = _shownReports.Contains(rpt.FriendlyName);

      if (!(canOverWrite))
        win = new ReportParametersWindow(rpt.FriendlyName, rpt.ReportParameters, canOverWrite);
      else
        win = new ReportParametersWindow(rpt.FriendlyName, (container.ParametersWindow as ReportParametersWindow).Controls, canOverWrite);

      win.ShowDialog();

And the XAML for the window:

<Window xmlns:my="clr-namespace:MHA.Modules.Core.Controls;assembly=MHA.Modules.Core"  
    x:Class="MHA.Modules.Reports.Views.ReportParametersWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Parameters" Height="500" Width="600" MinWidth="500" MaxHeight="500" 
    Icon="/MHA.Modules.Reports;component/Images/Parameters.ico" SizeToContent="WidthAndHeight" 
    WindowStartupLocation="CenterScreen"
    xmlns:odc="clr-namespace:Odyssey.Controls;assembly=Odyssey" Closed="Window_Closed">

<Grid>
    <Grid.RowDefinitions>
        <RowDefinition Height="*"/>
        <RowDefinition Height="40"/>
    </Grid.RowDefinitions>
    <ScrollViewer Grid.Row="0" Name="ScrollViewer1" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" CanContentScroll="True">
        <StackPanel Name="ParameterStack">
            <my:LocationCtl Text="Parameters for report - " Name="loc"/>
        </StackPanel>
    </ScrollViewer>
    <Grid Grid.Row="1">
        <Grid.ColumnDefinitions>
            <ColumnDefinition/>
            <ColumnDefinition/>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>

        <CheckBox ToolTip="This will replace the first report of the same type that was shown." Name="chkOverwrite" Content="Overwrite old" VerticalAlignment="Center" Margin="5,0"></CheckBox>

        <Button Grid.Column="2" HorizontalAlignment="Right" Margin="5,0" Height="30" Style="{StaticResource DionysusButton}" Width="100" IsDefault="True" Click="Button_Click">
            <StackPanel Orientation="Horizontal">
                <Image Source="/MHA.Modules.Reports;component/Images/Success.png"></Image>
                <TextBlock Margin="5,0" Text="Accept" VerticalAlignment="Center"></TextBlock>
            </StackPanel>
        </Button>
    </Grid>
</Grid>

Does anyone have suggestions?

The exception in the title is thrown when I open a window in WPF, the strange thing is that this does not happen on my Windows 7 development machine nor does it happen when it is deployed on Windows 7.

I only get this error on Windows XP, and only the second time that I open the window.

Here is the code to open the window:

ReportParametersWindow win = null;

      bool canOverWrite = _shownReports.Contains(rpt.FriendlyName);

      if (!(canOverWrite))
        win = new ReportParametersWindow(rpt.FriendlyName, rpt.ReportParameters, canOverWrite);
      else
        win = new ReportParametersWindow(rpt.FriendlyName, (container.ParametersWindow as ReportParametersWindow).Controls, canOverWrite);

      win.ShowDialog();

And the XAML for the window:

<Window xmlns:my="clr-namespace:MHA.Modules.Core.Controls;assembly=MHA.Modules.Core"  
    x:Class="MHA.Modules.Reports.Views.ReportParametersWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Parameters" Height="500" Width="600" MinWidth="500" MaxHeight="500" 
    Icon="/MHA.Modules.Reports;component/Images/Parameters.ico" SizeToContent="WidthAndHeight" 
    WindowStartupLocation="CenterScreen"
    xmlns:odc="clr-namespace:Odyssey.Controls;assembly=Odyssey" Closed="Window_Closed">

<Grid>
    <Grid.RowDefinitions>
        <RowDefinition Height="*"/>
        <RowDefinition Height="40"/>
    </Grid.RowDefinitions>
    <ScrollViewer Grid.Row="0" Name="ScrollViewer1" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" CanContentScroll="True">
        <StackPanel Name="ParameterStack">
            <my:LocationCtl Text="Parameters for report - " Name="loc"/>
        </StackPanel>
    </ScrollViewer>
    <Grid Grid.Row="1">
        <Grid.ColumnDefinitions>
            <ColumnDefinition/>
            <ColumnDefinition/>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>

        <CheckBox ToolTip="This will replace the first report of the same type that was shown." Name="chkOverwrite" Content="Overwrite old" VerticalAlignment="Center" Margin="5,0"></CheckBox>

        <Button Grid.Column="2" HorizontalAlignment="Right" Margin="5,0" Height="30" Style="{StaticResource DionysusButton}" Width="100" IsDefault="True" Click="Button_Click">
            <StackPanel Orientation="Horizontal">
                <Image Source="/MHA.Modules.Reports;component/Images/Success.png"></Image>
                <TextBlock Margin="5,0" Text="Accept" VerticalAlignment="Center"></TextBlock>
            </StackPanel>
        </Button>
    </Grid>
</Grid>

Does anyone have suggestions?

Исключение в заголовке возникает, когда я открываю окно в WPF, странно то, что этого не происходит ни на моем компьютере для разработки Windows 7, ни при развертывании в Windows 7.

Я получаю эту ошибку только в Windows XP и только во второй раз, когда открываю окно.

Вот код для открытия окна:

ReportParametersWindow win = null;

      bool canOverWrite = _shownReports.Contains(rpt.FriendlyName);

      if (!(canOverWrite))
        win = new ReportParametersWindow(rpt.FriendlyName, rpt.ReportParameters, canOverWrite);
      else
        win = new ReportParametersWindow(rpt.FriendlyName, (container.ParametersWindow as ReportParametersWindow).Controls, canOverWrite);

      win.ShowDialog();

И XAML для окна:

<Window xmlns:my="clr-namespace:MHA.Modules.Core.Controls;assembly=MHA.Modules.Core"  
    x:Class="MHA.Modules.Reports.Views.ReportParametersWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Parameters" Height="500" Width="600" MinWidth="500" MaxHeight="500" 
    Icon="/MHA.Modules.Reports;component/Images/Parameters.ico" SizeToContent="WidthAndHeight" 
    WindowStartupLocation="CenterScreen"
    xmlns:odc="clr-namespace:Odyssey.Controls;assembly=Odyssey" Closed="Window_Closed">

<Grid>
    <Grid.RowDefinitions>
        <RowDefinition Height="*"/>
        <RowDefinition Height="40"/>
    </Grid.RowDefinitions>
    <ScrollViewer Grid.Row="0" Name="ScrollViewer1" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" CanContentScroll="True">
        <StackPanel Name="ParameterStack">
            <my:LocationCtl Text="Parameters for report - " Name="loc"/>
        </StackPanel>
    </ScrollViewer>
    <Grid Grid.Row="1">
        <Grid.ColumnDefinitions>
            <ColumnDefinition/>
            <ColumnDefinition/>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>

        <CheckBox ToolTip="This will replace the first report of the same type that was shown." Name="chkOverwrite" Content="Overwrite old" VerticalAlignment="Center" Margin="5,0"></CheckBox>

        <Button Grid.Column="2" HorizontalAlignment="Right" Margin="5,0" Height="30" Style="{StaticResource DionysusButton}" Width="100" IsDefault="True" Click="Button_Click">
            <StackPanel Orientation="Horizontal">
                <Image Source="/MHA.Modules.Reports;component/Images/Success.png"></Image>
                <TextBlock Margin="5,0" Text="Accept" VerticalAlignment="Center"></TextBlock>
            </StackPanel>
        </Button>
    </Grid>
</Grid>

Есть ли у кого-нибудь предложения?

24 ответы

Решение довольно странное, но я его понял.

Я понял, что ошибка возникает в InitializeComponent() окна, затем я добавил попытку перехвата в конструктор и показал InnerException Exception.

Ошибка, которую я получил: «Формат изображения не распознан».

Я понятия не имею, почему это происходит только на XP и во второй раз, когда отображается окно, но путем замены моего .ico на .png проблема была решена.

Надеюсь, это поможет кому-то.

ответ дан 11 окт ’12, 08:10

Я только что столкнулся с этой проблемой… Я знаю, что это старо, но в конечном итоге мне пришлось установить для изображений ресурс и всегда копировать… только просмотрев мою папку /bin/Debug, я понял что изображения не находились в правильном месте пути

ответ дан 22 авг.

Эта проблема также может возникнуть, если требуемый образ недоступен в указанном месте. Итак, проверьте внутреннее исключение и добавьте любое изображение, которое могло быть пропущено или написано с ошибкой.

ответ дан 01 мар ’13, в 23:03

Я получил эту ошибку, потому что моя командная привязка кнопки была неправильной:

<Button Command="MyCommand" />

вместо

<Button Command="{Binding MyCommand}" />

Создан 25 фев.

Вы должны сначала импортировать изображение в свой проект Обозреватель решений — Показать все

Введите описание изображения здесь

затем щелкните правой кнопкой мыши изображение и выберите «Включить».

Введите описание изображения здесь

Теперь используйте конец

ответ дан 28 авг.

В моем случае основной причиной было неправильное свойство BuildAction для всех изображений. Я исправил это, изменив BuildAction с Content на Resource.

Создан 17 июн.

Я получил это исключение после перемещения моего словаря ресурсов из корня моего приложения в подкаталог. В моем случае проблема заключалась в путях к изображениям внутри моих сеттеров стилей внутри словаря. После того, как я поставил перед ними косую черту «/», приложение снова начало работать. Если у вас возникла аналогичная проблема, откройте словарь ресурсов, и ошибка будет выделена синей волнистой линией.

Создан 23 сен.

В моем случае я добавил ссылку «WpfToolkit» в свой модуль, и в этом нет необходимости. После удаления этой ссылки все было ок. Странный!

Создан 17 янв.

Просто перейдите в «Проект»> «Настройки вашего проекта» и установите файл .ico в качестве значка, теперь ваш файл .ico упоминается в вашем файле манифеста, и вы можете просто включить свой файл .ico в свой файл XAML, используя

Icon=»[имя файла значка].ico»

<Window  x:Class="[Your project's name].MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="" Height="500" Width="720"
     Icon="[your icon's name].ico">

Создан 20 ноя.

В моем случае я обнаружил, что файл добавленного значка (изображения) не добавлен в мой проект. Это разрешено после того, как я добавил эти новые файлы изображений в свой проект, а не только копию файла.

Создан 06 июля ’14, 08:07

В моем случае файлы существовали на диске, но не упоминались в проекте. Я добавил их в проект, но ошибка осталась, несмотря на перезагрузку решения и перезапуск Visual Studio.

Я изменил ссылки на существующий файл, который уже был в проекте, и он работал нормально (хотя и с неправильной графикой). Затем я изменил его на исходную ссылку, и он снова работал нормально, но с правильным изображением. Предположительно, ошибка каким-то образом кэшировалась, пока не была удалена из системы…

ответ дан 12 дек ’14, 16:12

Удалите ссылку «WPFToolkit» из вашего файла cs.proj.

<Reference Include="WPFToolkit, Version=3.5.40128.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />

Это должно сработать.

ответ дан 30 мар ’15, в 08:03

скопируйте и вставьте имя файла изменено. вот почему я получаю эту ошибку.

Создан 06 июн.

ну, в моем случае я добавил новые фотографии в папку изображений в FileExplore, в то время как папка изображений была добавлена ​​в проект некоторое время назад. и не было никаких проблем с путем изображения в проекте. но когда я создаю проект, я сталкиваюсь с той же ошибкой. затем я добавляю эти новые фотографии в проект щелкните правой кнопкой мыши в папке изображения и добавить существующий элемент и выбрал новые фотографии. затем я очистил решение и построить его снова.

Создан 22 июля ’19, 13:07

Есть много способов вызвать эту проблему. Поскольку исключение не является конкретным. Вот список решений, которые можно попробовать из этой темы.

Во-первых, Вы можете try/catch что собой представляет InitializeComponent() call, который вызывает исключение, чтобы получить более подробную информацию о том, что произошло.

  • Если изображение представляет собой файл значка (.ico), используйте вместо него изображение (.png) или его эквивалент.
    • В некоторых случаях .ico файлы проблематичны — я использовал .NETCore
  • Убедитесь, что ваш файл изображения имеет действие сборки Resource or Embedded Resource

    Файлы ресурсов, описанные в этом разделе, отличаются от файлов ресурсов, описанных в разделе Ресурсы XAML, и от встроенных или связанных ресурсов, описанных в разделе Управление ресурсами приложения (.NET). — MSDN

  • Убедитесь, что ваша ссылка на файл полба и исправлен правильно

    • Пример: «/Resources/logo.png», если у вас есть папка на уровне проекта.
      • Обратите внимание на префикс /.
  • В кодах цветов в файле xaml отсутствует префикс хэштега "#000FE0"

ответ дан 21 апр.

В моем случае другая программа использовала изображение и каким-то образом блокировала доступ. Я сделал копию, и это сработало.

<Window
.....
     Height="450" Width="400" 
     Icon="../Resources/SettingsCopy.png" >

Создан 20 июля ’20, 19:07

Чтобы улучшить пользователя 2125523:

Если вы добавили изображение в проект и дважды проверили правильность написания файла, попробуйте переименовать изображение, чтобы оно отражало другое существующее изображение. Соберите/запустите, затем верните имя файла образа и снова соберите/запустите.

Например: мой исходный код продолжал выдавать ошибку OP. LargeImage="/img/32/delete.order.png" хотя этот файл существует.

<telerik:RadRibbonButton Text="Object Properties" Size="Large"
    Name="PropertiesButton" IsTabStop="True"
    telerik:ScreenTip.Description="Get object properties" 
    Click="PropertiesButton_Click"
    LargeImage="/img/32/properties.png" 
    SmallImage="/img/16/properties.png" />
<telerik:RadRibbonButton Text="Reset Tab Order" Size="Large" 
    Name="ClearTabOrderButton" IsTabStop="True"
    telerik:ScreenTip.Description="Reset tab order of all fields"
    Click="ClearTabOrder_Click"
    LargeImage="/img/32/delete.order.png" 
    SmallImage="/img/16/delete.order.png" />

Итак, я изменил LargeImage="/img/32/delete.order.png" в LargeImage="/img/32/properties.png", запустил программу и изменил ее обратно на "/img/32/delete.order.png". Наконец ошибка исчезла.

FYI VS2012.3 Win8.1 Предварительная версия

Создан 11 июля ’13, 17:07

У меня была такая же проблема, и чтобы добавить изображение к вашему решению, вы должны сделать это с помощью мастера. В обозревателе решений -> щелкните правой кнопкой мыши соответствующую папку -> добавить существующий элемент ->, а затем перейдите к своему изображению. Это сработало для меня. Надеюсь это поможет. Спасибо за ваши ответы.

Создан 25 июля ’13, 16:07

Попробуйте установить Build Action of Property файла изображения как Resource.

ответ дан 28 апр.

Исключение раньше возникало в конструкторе. Привязка команды кнопки была неправильной. Например: <Button Command="MyCommand" />—> Неправильно
<Button Command="{Binding MyCommand}" />—> Право

Создан 08 июн.

В моем случае я получил эту ошибку, когда у меня было

<Border Background="eeeeee">

вместо

<Border Background="#eeeeee">

(обратите внимание на пропуск #)

Создан 20 сен.

Я нашел «UpdateSourceTrigger=Pr» где-то в своем XAML.

Должно быть, это произошло во время редактирования.

Компиляция прошла нормально, ошибок не было.

Установка точки останова в Application_DispatcherUnhandledException в app.xaml.cs выявила ошибку.

Исправлено на «UpdateSourceTrigger=PropertyChanged», и мир был таким, каким должен был быть.

Работаю на Win 10 Pro, VS2017

Создан 23 янв.

Я столкнулся с этой ошибкой и понял, что в формате пути к источнику изображения есть ошибка. косая черта / было добавлено следующее:

Source="/TestProject;component/Images//hat_and_book.png

Я удалил эту лишнюю косую черту, и ошибка исчезла.

Создан 22 июля ’19, 08:07

это вызвано опцией нестандартного тега в xaml, чтобы найти его установленным InitializeComponent(); Функция в пробном режиме — вот так

 try { 
InitializeComponent(); 
} 
catch (Exception ex) { 
MessageBox.Show(ex.Message.ToString()); 
}

теперь MessageBox (( показать номер строки с неправильной настройкой в ​​​​файле управления .axml (он просто показывает первую неправильную ошибку тега строки после ее исправления, затем снова запустите приложение и посмотрите следующий)

ответ дан 21 окт ’17, 17:10

Не тот ответ, который вы ищете? Просмотрите другие вопросы с метками

c#
wpf
xaml

or задайте свой вопрос.

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.

Already on GitHub?
Sign in
to your account

Comments

@terence-m-lee

Received the exception below when trying to create a simple splash screen. Not sure if I am missing something, but I basically copied the markup provided in the intro. Markup and exception are included.


A first chance exception of type 'System.Windows.Markup.XamlParseException' occurred in PresentationFramework.dll

Additional information: 'Provide value on 'System.Windows.Baml2006.TypeConverterMarkupExtension' threw an exception.' Line number '9' and line position '10'.

<Window x:Class="DemoApp.SplashScreen"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:gif="http://wpfanimatedgif.codeplex.com"
        Title="SplashScreen" Height="300" Width="300"
        ResizeMode="NoResize" WindowStyle="None"   
        WindowStartupLocation="CenterScreen" Background="white" BorderThickness="5" BorderBrush="LightGray" Topmost="True">
    <Grid Height="290" VerticalAlignment="Top">
        <Image gif:ImageBehavior.AnimatedSource="Images/loading.gif" />
    </Grid>
</Window>

@thomaslevesque

Hi @terence-m-lee,
What is the build action for the loading.gif file? It should be «Resource».

@terence-m-lee

It was not but I changed it to that and the error no longer shows up. Thanks!
The only issue now is that the gif does not play, but I am wondering if it is because of where in my code that I am instantiating my custom splash screen.

public MainWindow()
{
    var splashScreen = new SplashScreen();
    splashScreen.Show();
    //Initialize Components
    splashScreen.Close();  
}

The splash screen and gif image show up, but the gif does not play.

@thomaslevesque

That’s because the UI thread is busy doing the «Initialize components» stuff, so it cannot paint your splash screen. In fact, this problem isn’t even related to WpfAnimatedGif; if you add a button or some other interactive UI component to your splash screen, you’ll see that’s it doesn’t respond to input.

2 participants

@thomaslevesque

@terence-m-lee

Desktop Studio — Unhandled Dispatcher Error

Предоставление значения для «System.Windows.Baml2006.TypeConverterMarkupExtension» вызвало исключение.

При обработке данных изображения произошло переполнение.

Переполнение или потеря точности в арифметической операции.
____________________________________________________
System.Windows.Markup.XamlParseException

Message:
Предоставление значения для «System.Windows.Baml2006.TypeConverterMarkupExtension» вызвало исключение.

Stack Trace:
в System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
в System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
в System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
в System.Windows.Application.LoadBamlStreamWithSyncInfo(Stream stream, ParserContext pc)
в System.Windows.Application.LoadComponent(Uri resourceLocator, Boolean bSkipJournaledProperties)
в System.Windows.Application.DoStartup()
в System.Windows.Application.<.ctor>b__1_0(Object unused)
в System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
в System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

LineNumber:
0

LinePosition:
0

BaseUri:
pack://application:,,,/CxFrameworkWPF;component/studio/studioeditorwpf.xaml

TargetSite:
System.Object Load(System.Xaml.XamlReader, System.Xaml.IXamlObjectWriterFactory, Boolean, System.Object, System.Xaml.XamlObjectWriterSettings, System.Uri)

Source:
PresentationFramework

HResult:
-2146233087
____________________________________________________
System.OverflowException

Message:
При обработке данных изображения произошло переполнение.

Stack Trace:
в System.Windows.Media.Imaging.ColorConvertedBitmap.FinalizeCreation()
в System.Windows.Media.Imaging.ColorConvertedBitmap..ctor(BitmapSource source, ColorContext sourceColorContext, ColorContext destinationColorContext, PixelFormat format)
в System.Windows.Media.Imaging.BitmapSource.CreateCachedBitmap(BitmapFrame frame, BitmapSourceSafeMILHandle wicSource, BitmapCreateOptions createOptions, BitmapCacheOption cacheOption, BitmapPalette palette)
в System.Windows.Media.Imaging.BitmapFrameDecode.FinalizeCreation()
в System.Windows.Media.Imaging.BitmapFrameDecode..ctor(Int32 frameNumber, BitmapCreateOptions createOptions, BitmapCacheOption cacheOption, BitmapDecoder decoder)
в System.Windows.Media.Imaging.BitmapDecoder.SetupFrames(BitmapDecoder decoder, ReadOnlyCollection`1 frames)
в System.Windows.Media.Imaging.BitmapDecoder.get_Frames()
в System.Windows.Media.Imaging.BitmapFrame.CreateFromUriOrStream(Uri baseUri, Uri uri, Stream stream, BitmapCreateOptions createOptions, BitmapCacheOption cacheOption, RequestCachePolicy uriCachePolicy)
в System.Windows.Media.ImageSourceConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)
в System.Windows.Baml2006.TypeConverterMarkupExtension.ProvideValue(IServiceProvider serviceProvider)
в MS.Internal.Xaml.Runtime.ClrObjectRuntime.CallProvideValue(MarkupExtension me, IServiceProvider serviceProvider)

TargetSite:
Void FinalizeCreation()

Source:
PresentationCore

HResult:
-2146233066
____________________________________________________
System.ArithmeticException

Message:
Переполнение или потеря точности в арифметической операции.

Stack Trace:

HResult:
-2147024362

The uninstalling; repair; installation of 1.05; manual deletion of iRPA records in WinRegistry did not solve the problem.

b.r.

Содержание

  1. System windows baml2006 typeconvertermarkupextension error
  2. Answered by:
  3. Question
  4. Answers
  5. All replies
  6. System windows baml2006 typeconvertermarkupextension error
  7. Answered by:
  8. Question
  9. Answers
  10. All replies
  11. System windows baml2006 typeconvertermarkupextension error
  12. Answered by:
  13. Question
  14. Answers
  15. All replies

This forum has migrated to Microsoft Q&A. Visit Microsoft Q&A to post new questions.

Answered by:

Question

This error has started to be thrown on one of our development machines. The following code is the cause

This XAML is in an ElementHost control on a Windows Form in VS2010. The code has previously worked OK and still appears to work on other machines. The solution contains multiple projects and I have deleted and reloaded the project from source code.

When the code is commented out the form loads OK (albeit without the tooltip functionality). When the code is uncommented this error returns

I have seen a few posts and related topics on similar errors without seeing any definite resolution. Has anyone encountered something like this and been able to fix it?

Answers

Hi Martin B Horner,

This exception is a MarkupExtension exception, and I read your code snippet, the part relative to MarkupExtension is:

I wonder if your «x:» is mapping to the correct reference, like:

xmlns : x =»http://schemas.microsoft.com/winfx/ 2006 /xaml»

Additional, you could try to code it as below way to check if that machine thrown that exception:

Binding Path =»(Validation.Errors)[0].ErrorContent» RelativeSource =»< RelativeSource Mode =Self>» />

If that exception persists, I think if that machine has some specific part you have not metioned, like PresentationFramework assembly version.

Sheldon _Xiao[MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.

Hello and Thanks,

I have checked the reference and it is
xmlns:x=http://schemas.microsoft.com/winfx/2006/xaml.
I have also tried

and it raises the same error.
I would suspect something missing on this machine except that it is now happening on 3 machines and on at least 2 of them the code code was running until yesterday. 2 other machines are still running OK but they have only VS 2010 and Vault running on them.

I bumped into this as well but it was a different problem. My XAML file had a reference here .

I see this as a bug in WPF 4 (which is where I experienced this pain). The short version is that I added a Thickness to a ResourceDictionary over 1 year ago but never used the control that referenced it. Then one day I finally got around to clicking just the right button and BAM!

The bug is due to VS 2010’s debugger; it did not reveal the entire error message or I would have saved myself 6 hours of dicecting every part of the application. It is usually good at giving you the «Vew Details» link, but in my case that option was not present on the error dialog; apparently VS 2010 has two version of it. I finally tracked it down by process of elimination. Below are the details:

The offending Thickness declaration:

The message VS 2010 debugger showed me:

System.Windows.Markup.XamlParseException, Message=’Provide value on ‘System.Windows.Baml2006.TypeConverterMarkupExtension’ threw an exception.’ Line number ‘5’ and line position ‘3’.

The message .NET was *trying* to tell me:

-> InnerException was: NullReferenceException, Message=0.1in is not a valid value for Double.

—> InnerException was: System.FormatException, Message=Input string was not in a correct format.

I hope and pray this issue has not made it into the new VS 2012 or we are in for more lost time. I suggest foregoing that second error dialog all together and sticking to the one with «View Details»

I have to also note an odd behavior ov WPF. I found this bug by typing this in the Watch window:

OmegusPrime.Application.Current.TryFindResource(«keyNormalPadding_PS»)

but if you run the evaluation again, the return value becomes NULL. Perhaps this is WPF’s way of removing offending references.

Источник

System windows baml2006 typeconvertermarkupextension error

This forum has migrated to Microsoft Q&A. Visit Microsoft Q&A to post new questions.

Answered by:

Question

I am using Visual Studio 2010 and have a WPF project. Everything works great, EXCEPT when I deploy to a Windows XP SP3 machine. I receive this error: Provide value on ‘System.Windows.Baml2006.TypeConverterMarkupExtension’ threw an exception.

I have been trying to figure this out for days and have Googled so many things. Everything, so far, that I’ve seen suggested, I’ve tried to no avail.

Does anyone have any insight on this issue?

Thanks so much for your time!

Answers

I recently got this error myself. What it tured out to be for me was I was using a ImageBrush as a static resource. The image file image.png that i had set to the bursh was not in the correct directory. Everything compiles and for some reason i got no errors in my build. When i went to deploy my application i got the ‘System.Windows.Baml2006.TypeConverterMarkupExtension’ threw an exception. as well. So I would guess that your problem is something not mapping correctly in xaml and in runtime its not found when requested. Hope this helps

I had tried that earlier, but that didn’t fix it either, sadly. I’ll just stick with 3.5 .NET Framework, until my clients upgrade to Windows 7 🙂

I’ve had this error message appear when running certain WPF applications running XP sp3.

The fix in my case was to check the icon (.ico) files being used by any of your windows in your application.

It turned out that having a 256 * 256 32bit png image in the icon file used by the application window was causing the problem. Deleting that image, leaving the other icon types solved the problem.

Try adding a try..catch around the contents of your initialization routine or your main entrypoint function, and inside the catch block dig down to the innerException to get a much nicer error message about what caused the parser to throw its wrapper exception. When I do that, it usually tells me something like «ImageFormat not supported» along with some info about the element that was being parsed. From there it is usually quite easy to go straight to the offending Xaml block and fix it.

So wrap a try..catch around your highest level, and in the catch block pop up an alert box with the top level exception’s message *and also* the innerException’s message. The innerException often points straight to the heart of the issue.

Источник

System windows baml2006 typeconvertermarkupextension error

This forum has migrated to Microsoft Q&A. Visit Microsoft Q&A to post new questions.

Answered by:

Question

I am using Visual Studio 2010 and have a WPF project. Everything works great, EXCEPT when I deploy to a Windows XP SP3 machine. I receive this error: Provide value on ‘System.Windows.Baml2006.TypeConverterMarkupExtension’ threw an exception.

I have been trying to figure this out for days and have Googled so many things. Everything, so far, that I’ve seen suggested, I’ve tried to no avail.

Does anyone have any insight on this issue?

Thanks so much for your time!

Answers

I recently got this error myself. What it tured out to be for me was I was using a ImageBrush as a static resource. The image file image.png that i had set to the bursh was not in the correct directory. Everything compiles and for some reason i got no errors in my build. When i went to deploy my application i got the ‘System.Windows.Baml2006.TypeConverterMarkupExtension’ threw an exception. as well. So I would guess that your problem is something not mapping correctly in xaml and in runtime its not found when requested. Hope this helps

I had tried that earlier, but that didn’t fix it either, sadly. I’ll just stick with 3.5 .NET Framework, until my clients upgrade to Windows 7 🙂

I’ve had this error message appear when running certain WPF applications running XP sp3.

The fix in my case was to check the icon (.ico) files being used by any of your windows in your application.

It turned out that having a 256 * 256 32bit png image in the icon file used by the application window was causing the problem. Deleting that image, leaving the other icon types solved the problem.

Try adding a try..catch around the contents of your initialization routine or your main entrypoint function, and inside the catch block dig down to the innerException to get a much nicer error message about what caused the parser to throw its wrapper exception. When I do that, it usually tells me something like «ImageFormat not supported» along with some info about the element that was being parsed. From there it is usually quite easy to go straight to the offending Xaml block and fix it.

So wrap a try..catch around your highest level, and in the catch block pop up an alert box with the top level exception’s message *and also* the innerException’s message. The innerException often points straight to the heart of the issue.

Источник

Исключение в заголовке бросается, когда я открываю окно в WPF, странно, что этого не происходит на моей машине разработки Windows 7 и не происходит, когда она развертывается в Windows 7.

Я получаю эту ошибку только в Windows XP и только второй раз, когда я открываю окно.

Вот код для открытия окна:

ReportParametersWindow win = null;

      bool canOverWrite = _shownReports.Contains(rpt.FriendlyName);

      if (!(canOverWrite))
        win = new ReportParametersWindow(rpt.FriendlyName, rpt.ReportParameters, canOverWrite);
      else
        win = new ReportParametersWindow(rpt.FriendlyName, (container.ParametersWindow as ReportParametersWindow).Controls, canOverWrite);

      win.ShowDialog();

И XAML для окна:

<Window xmlns:my="clr-namespace:MHA.Modules.Core.Controls;assembly=MHA.Modules.Core"  
    x:Class="MHA.Modules.Reports.Views.ReportParametersWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Parameters" Height="500" Width="600" MinWidth="500" MaxHeight="500" 
    Icon="/MHA.Modules.Reports;component/Images/Parameters.ico" SizeToContent="WidthAndHeight" 
    WindowStartupLocation="CenterScreen"
    xmlns:odc="clr-namespace:Odyssey.Controls;assembly=Odyssey" Closed="Window_Closed">

<Grid>
    <Grid.RowDefinitions>
        <RowDefinition Height="*"/>
        <RowDefinition Height="40"/>
    </Grid.RowDefinitions>
    <ScrollViewer Grid.Row="0" Name="ScrollViewer1" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" CanContentScroll="True">
        <StackPanel Name="ParameterStack">
            <my:LocationCtl Text="Parameters for report - " Name="loc"/>
        </StackPanel>
    </ScrollViewer>
    <Grid Grid.Row="1">
        <Grid.ColumnDefinitions>
            <ColumnDefinition/>
            <ColumnDefinition/>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>

        <CheckBox ToolTip="This will replace the first report of the same type that was shown." Name="chkOverwrite" Content="Overwrite old" VerticalAlignment="Center" Margin="5,0"></CheckBox>

        <Button Grid.Column="2" HorizontalAlignment="Right" Margin="5,0" Height="30" Style="{StaticResource DionysusButton}" Width="100" IsDefault="True" Click="Button_Click">
            <StackPanel Orientation="Horizontal">
                <Image Source="/MHA.Modules.Reports;component/Images/Success.png"></Image>
                <TextBlock Margin="5,0" Text="Accept" VerticalAlignment="Center"></TextBlock>
            </StackPanel>
        </Button>
    </Grid>
</Grid>

Есть ли у кого-нибудь предложения?

11 окт. 2012, в 08:52

Поделиться

Источник

20 ответов

Решение довольно странное, но я понял.

Я понял, что ошибка произошла в InitializeComponent() окна, затем я добавил попытку catch в конструктор и показал InnerException исключения.

Ошибка, которую я получил, это «Формат изображения не распознан».

Я понятия не имею, почему это происходит только на XP, и во второй раз, когда отображается окно, но, заменив мой .ico на .png, проблема была решена.

Надеюсь, это поможет кому-то.

Chrisjan Lodewyks
11 окт. 2012, в 09:38

Поделиться

Я тоже столкнулся с этой проблемой… Я знаю, что это старо, но то, что я должен был сделать, это установить изображения в Resource и Copy Always… только путем просмотра папки my/bin/Debug я понял, что изображения не были в допустимом местоположении пути

Kevin
22 авг. 2013, в 14:14

Поделиться

Эта проблема также может возникать, если требуемое изображение недоступно в указанном месте. Итак, проверьте внутреннее исключение и добавьте любое изображение, которое может быть пропущено или написано неправильно.

user2125523
02 март 2013, в 00:22

Поделиться

Я получил эту ошибку, потому что моя команда Binding Button была неправильной:

<Button Command="MyCommand" />

вместо

<Button Command="{Binding MyCommand}" />

McNos
25 фев. 2014, в 08:50

Поделиться

В моем случае основной причиной было неправильное свойство BuildAction для всех изображений. Я исправил это, изменив BuildAction от Content to Resource.

Ludwo
17 июнь 2013, в 19:17

Поделиться

В моем случае я добавил «WpfToolkit» refrence к моему модулю, и нет необходимости.
После удаления этой ссылки все было в порядке. Странно!

Amit K.S
17 янв. 2014, в 11:11

Поделиться

Я получил это исключение, переместив словарь ресурсов из корня моего приложения в подкаталог. В моем случае проблема заключалась в пути изображения внутри моих стилейщиков внутри словаря. После того, как мне предшествовала косая черта ‘/’, приложение снова принялось за работу. Если у вас возникла аналогичная проблема, откройте словарь ресурсов, и ошибка будет выделена синей «squiggly» линией.

Eternal21
23 сен. 2013, в 15:19

Поделиться

Вы должны сначала импортировать изображение в свой проект
Обозреватель решений — Показать все

Изображение 122734

затем щелкните правой кнопкой мыши по изображению и выберите «Включить»

Изображение 122735

Теперь используйте
конец

soheil momeni
27 авг. 2016, в 22:11

Поделиться

скопировать и вставить имя файла. поэтому я получаю эту ошибку.

Birkan AYDIN
06 июнь 2016, в 08:50

Поделиться

Просто зайдите в Project > [Your Project Name] Settings и установите ваш .ico файл как значок, теперь ваш файл .ico указан в вашем файле манифеста, и вы можете просто включить ваш .ico файл в ваш файл XAML, используя

Значок = «[имя файла значка].ico»

<Window  x:Class="[Your project name].MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="" Height="500" Width="720"
     Icon="[your icon name].ico">

Kamal Hasan
20 нояб. 2015, в 20:41

Поделиться

Удалите ссылку «WPFToolkit» из файла cs.proj.

<Reference Include="WPFToolkit, Version=3.5.40128.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />

Он должен сделать трюк.

nostafict
30 март 2015, в 09:04

Поделиться

В моем случае файлы существовали на диске, но не упоминались в проекте. Я добавил их в проект, но ошибка сохранилась, несмотря на перезагрузку решения и перезапуск Visual Studio.

Я изменил ссылки на существующий файл, который уже был в проекте, и он работает нормально (хотя и с неправильной графикой). Затем я изменил его на исходную ссылку, и он снова начал работать отлично, но с правильным изображением. Предположительно, ошибка была как-то кеширована, пока она не вышла из системы…

Buzzwig
12 дек. 2014, в 17:53

Поделиться

В моем случае, я обнаружил, что добавленный mew файл с иконкой (изображением) не добавлен в мой проект. Он разрешен после добавления этих новых файлов изображений в мой проект, а не только для копирования файлов.

Will
06 июль 2014, в 09:36

Поделиться

Я нашел «UpdateSourceTrigger = Pr» где-то в моем XAML.

Должно быть, это произошло во время редактирования.

Компиляция прошла нормально, без ошибок.

Установка точки останова в Application_DispatcherUnhandledException в app.xaml.cs выявила ошибку.

Исправлено в «UpdateSourceTrigger = PropertyChanged», и мир был на этом должен был быть.

Erik
23 янв. 2019, в 15:48

Поделиться

В моем случае я получил эту ошибку, когда у меня был

<Border Background="eeeeee">

вместо

<Border Background="#eeeeee">

(обратите внимание на missign #)

Josh
20 сен. 2017, в 15:57

Поделиться

Исключение используется в конструкторе. Неправильная привязка к кнопке.
Например: <Button Command="MyCommand" /> → Неправильно
<Button Command="{Binding MyCommand}" /> → Вправо

Kinjal Sheth
08 июнь 2015, в 12:14

Поделиться

Попробуйте установить Build Action из Property файла изображения как Resource.

Wei Song
27 апр. 2015, в 23:01

Поделиться

У меня была такая же проблема, и я добавил вам решение, которое вы должны сделать с помощью wizzard. В проводнике решений → щелкните правой кнопкой мыши по соответствующей папке → добавьте существующий элемент → , а затем перейдите к своему изображению. Это сработало для меня. Надеюсь это поможет.
Спасибо за ответы.

Elyas
25 июль 2013, в 16:38

Поделиться

Чтобы улучшить работу с пользователем2125523:

Если вы добавили изображение в проект и отметили и дважды отметили правильность написания файла, попробуйте переименовать изображение, чтобы зеркалировать другое существующее изображение. Создайте/запустите, затем верните свое имя файла изображения и снова запустите/запустите.

Например:
Мой исходный код продолжал бросать ошибку OP на LargeImage="/img/32/delete.order.png", хотя этот файл существует.

<telerik:RadRibbonButton Text="Object Properties" Size="Large"
    Name="PropertiesButton" IsTabStop="True"
    telerik:ScreenTip.Description="Get object properties" 
    Click="PropertiesButton_Click"
    LargeImage="/img/32/properties.png" 
    SmallImage="/img/16/properties.png" />
<telerik:RadRibbonButton Text="Reset Tab Order" Size="Large" 
    Name="ClearTabOrderButton" IsTabStop="True"
    telerik:ScreenTip.Description="Reset tab order of all fields"
    Click="ClearTabOrder_Click"
    LargeImage="/img/32/delete.order.png" 
    SmallImage="/img/16/delete.order.png" />

Итак, я изменил LargeImage="/img/32/delete.order.png" на LargeImage="/img/32/properties.png", запустил программу и поменял ее на "/img/32/delete.order.png". Наконец ошибка исчезла.

FYI VS2012.3 Win8.1Preview

Owen
11 июль 2013, в 16:55

Поделиться

это вызвано опцией нестандартного тега в xaml, чтобы найти его установленным
InitializeComponent();
Режим работы в режиме — вроде этого

 try { 
InitializeComponent(); 
} 
catch (Exception ex) { 
MessageBox.Show(ex.Message.ToString()); 
}

now MessageBox ((показать номер строки с неправильной настройкой в ​​файле управления .axml. (он просто показывает ошибку первого тега строки после исправления, затем снова запускает приложение и видит следующий)

hooman_b
21 окт. 2017, в 18:15

Поделиться

Ещё вопросы

  • 0Перенаправление на определенную веб-страницу после того, как пользователи выбирают из выпадающего меню форму и php
  • 1Интеграция с Android SDK Tools
  • 0Как можно перенаправить на страницу 404 в Angular Ui Router?
  • 1Android, широкий или несколько экранов
  • 0относительно входного имени в JavaScript
  • 1Кодировка HMAC в R против Python
  • 0Извлечение элемента из сбалансированного KD-дерева двух измерений
  • 1Рефакторинг шахматной игры C # по схеме проектирования MVC
  • 0Как заблокировать значок, установленный сервером?
  • 1Как убить текущий процесс страницы
  • 0Пустое сообщение для пользовательского интерфейса блока?
  • 1Группа видов (элементов управления) на нескольких экранах
  • 0XSS дезинфицирует ввод вложенных html-тегов
  • 1группировка данных zingchart и выборка вниз
  • 0Установите libcurl для C ++ в Windows
  • 1Как я могу управлять фонариком на телефоне?
  • 1Hibernate: ограничить количество строк в таблице
  • 1Sublime Text и проект Java на Mac
  • 1Как получить данные из сложной структуры объекта / массива?
  • 1Как установить диапазон дат за 3 месяца с текущей даты в окне выбора даты?
  • 1Android настроить строку в ListPreference
  • 1Проверьте, загрузил ли канал YouTube видео
  • 0комментарии в drupal auto width
  • 1Проблема с циклом for при повторении последних 5 объектов в обратном порядке
  • 0Нормализация данных с использованием lodash, javascript
  • 1Как получить заголовок «X-Forwarded-Proto» в приложении REST?
  • 1Как вернуть объект из службы отдыха в Java?
  • 0Возвращаемое значение для функции внутри функции slideUp ()
  • 1Scrapy не выполняет данные запросы
  • 1Очистка числовых данных в Pandas с apply + лямбда
  • 1Как найти имя выходного узла данного файла .ckpt.meta в тензорном потоке
  • 0Массив фильтров во втором контроллере
  • 1Бегущая пристань из фетра
  • 1Может ли SAX использовать XML-файл локального ресурса?
  • 1Изменение WPF TreeView SelectedItem в событии SelectedItemChanged
  • 1В Java, когда один из методов в объекте «синхронизирован», все ли методы «синхронизированы»?
  • 0Uncaught TypeError: Свойство ‘setCurrency’ объекта [object Object] не является функцией
  • 0фокус: всегда выше классов
  • 1В Windows 7 (64-битная версия) нужно ли устанавливать только 64-битную Java и 64-битную версию Eclipse?
  • 0Установить пользовательский маршрут ASP.NET WEB API 2
  • 1Камера Android, внутренняя Listoption?
  • 1Получить входные значения и вставить в функцию с двумя параметрами, чтобы сделать прямоугольник?
  • 0положение: исправлена прокрутка на панели навигации.
  • 1Ошибка пути JSP при перенаправлении сервлета
  • 0PHP загружает столбцы MySQL для UniqieID, а затем обновляет столбцы
  • 0Каждая производная таблица должна иметь свой псевдоним. используя mysql и netbeans [дубликаты]
  • 0Запустить несколько копий некоторых программ из программы на С ++
  • 1Подкласс IntEnum не сравнивается должным образом
  • 0отображение изображения и текста в одном и том же DIV через контент
  • 0Выбор класса для списка и установка только одного из них

Сообщество Overcoder

  • Прерывистый звук на компьютере windows 10
  • Прекращена работа программы internet explorer windows
  • Предоставление задач windows 10 как отключить
  • Прерывается установка windows 10 с флешки
  • Прекращена работа программы itunes windows 7