WPF プロジェクトをデプロイするときに問題が発生しました。デプロイされたプロジェクトが起動時にクラッシュし、4 行目の位置 70 で「同じインスタンスで BeginInit 呼び出しをネストすることはできません」という内部例外を含む XAML.Parse.Exception が生成されます。アプリは自分のコンピューターで完全な権限を持っています。これについて尋ねられたいくつかの質問には問題に対する実際の解決策がなかったので、私はこの質問をしています.
最初の数行で参照している XAML コードを次に示します。
<Window
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" x:Class="ASRV.MainWindow"
Title="ASRV GUI" Height="768" Width="1024" ResizeMode="CanMinimize">
<Window.Resources>
</Window.Resources>
<Window.Background>
<ImageBrush ImageSource="pack://siteoforigin:,,,/background.png"/>
</Window.Background>