小编Sao*_*rse的帖子

单击一次问题 - 此 XML 文档中禁止使用 DTD

我正在尝试使用单击一次部署 WPF 应用程序。当我使用本地文件夹(发布和安装)时,一切正常。当我尝试从共享 Dropbox 文件夹进行部署时,我在尝试安装时收到以下错误:

清单可能无效或无法打开文件。+ 此 XML 文档中禁止使用 DTD

任何帮助将不胜感激。

PLATFORM VERSION INFO
    Windows             : 10.0.14393.0 (Win32NT)
    Common Language Runtime     : 4.0.30319.42000
    System.Deployment.dll       : 4.6.1586.0 built by: NETFXREL2
    clr.dll             : 4.6.1586.0 built by: NETFXREL2
    dfdll.dll           : 4.6.1586.0 built by: NETFXREL2
    dfshim.dll          : 10.0.14393.0 (rs1_release.160715-1616)

SOURCES
    Deployment url          : https://www.dropbox.com/sh/nrz5q2ybvf3xdpa/AFD3Ynd5F4rFc2KGQI4Y7WGpa?dl=0/Nouvem.application

ERROR SUMMARY
    Below is a summary of the errors, details of these errors are listed later in the log.
    * Activation of https://www.dropbox.com/sh/nrz5q2ybvf3xdpa/AFD3Ynd5F4rFc2KGQI4Y7WGpa?dl=0/Nouvem.application resulted in exception. Following failure messages were …
Run Code Online (Sandbox Code Playgroud)

wpf clickonce

6
推荐指数
0
解决办法
458
查看次数

WPF ListViewItem事件无法在触摸屏上正确触发

 <Window x:Class="WpfApplication2.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        WindowState="Maximized"
        Title="MainWindow" Height="550" Width="525">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition/>
            <RowDefinition Height="4*"/>
            <RowDefinition/>
        </Grid.RowDefinitions>
        <TextBox Name="TextBox" VerticalContentAlignment="Center" FontSize="30" ></TextBox>
        <ListView Grid.ColumnSpan="6"  Grid.Row="1"
                     x:Name="GridControlProducts"
                    SelectionMode="Single"
                    ScrollViewer.HorizontalScrollBarVisibility="Disabled"
                    ScrollViewer.VerticalScrollBarVisibility="Disabled">
            <ListView.ItemsPanel>
                <ItemsPanelTemplate>
                    <WrapPanel Orientation="Horizontal" />
                </ItemsPanelTemplate>
            </ListView.ItemsPanel>
            <ListView.ItemContainerStyle>
                <Style TargetType="{x:Type ListViewItem}">
                    <Setter Property="Width" Value="200"/>
                    <Setter Property="Height" Value="200"/>
                    <EventSetter Event="PreviewMouseDown" Handler="button_Click" />
                </Style>
            </ListView.ItemContainerStyle>
        </ListView>       


        <Button Content="Close" Grid.Column="0" Grid.Row="2" Click="Button_Click_1" ></Button>

    </Grid>
</Window>
// code behind
public MainWindow()
        {
            InitializeComponent();

            for (int i = 0; i < 10; i++)
            {
                this.GridControlProducts.Items.Add("Test");
            }
        }

 private …
Run Code Online (Sandbox Code Playgroud)

c# wpf events xaml touchscreen

6
推荐指数
2
解决办法
332
查看次数

标签 统计

wpf ×2

c# ×1

clickonce ×1

events ×1

touchscreen ×1

xaml ×1