WPF工具包和发布WPF应用程序

时间:2014-12-16 11:51:59

标签: wpf visual-studio-2010 publish wpftoolkit

我在发布引用WPFToolkit库的WPF应用程序时遇到问题。当我使用Visual Studio 2010 Express使用ClickOnce发布应用程序并在远程计算机上运行应用程序时,它会出现错误"无法启动应用程序"。但在我的开发环境中工作正常。当我在项目中删除对WPFToolkit的引用时,它可以在远程机器上运行,但我的项目需要运行该库。有什么建议?感谢。

解决方案

<Grid.Background>
    <ImageBrush ImageSource="C:\Users\server\Documents\Visual Studio 2010\Projects\WpfApplicationTest\WpfApplication\images\cool-light-background-vector_edit.jpg" Stretch="Fill" /> 
</Grid.Background>

**SHOULD BE**
<Grid.Background>
<ImageBrush ImageSource="images\cool-light-background-vector_edit.jpg" Stretch="Fill" /> 
</Grid.Background>

已编辑日志错误

错误摘要     下面是错误的摘要,这些错误的详细信息将在后面的日志中列出。     *激活C:\ Documents and Settings \ All Users \ Documents \ Jewellery \ WpfApplication.application导致异常。检测到以下失败消息:         +值不在预期范围内。

组件商店交易失败摘要     未检测到任何交易错误。

警告     在这次行动中没有任何警告。

操作进度状态     * [2014年12月16日18:14:47]:已启动C:\ Documents and Settings \ All Users \ Documents \ Jewellery \ WpfApplication.application的激活。     * [2014年12月16日18:14:48]:部署清单的处理已成功完成。     * [2014年12月16日18:14:48]:已开始安装应用程序。     * [2014年12月16日18:14:48]:应用程序清单的处理已成功完成。     * [2014年12月16日18:14:50]:找到兼容的运行时版本4.0.30319。     * [16/12/2014 18:14:51]:使用Microsoft.Windows.Design.Extensibility检测依赖程序集Microsoft.Windows.Design.Extensibility,Version = 3.5.0.0,Culture = neutral,PublicKeyToken = B03F5F7F11D50A3A,processorArchitecture = msil ,Version = 3.5.0.0,Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a,processorArchitecture = msil。     * [16/12/2014 18:14:51]:使用Microsoft.Windows.Design.Interaction检测依赖程序集Microsoft.Windows.Design.Interaction,Version = 3.5.0.0,Culture = neutral,PublicKeyToken = B03F5F7F11D50A3A,processorArchitecture = msil ,Version = 3.5.0.0,Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a,processorArchitecture = msil。     * [2014年12月16日18:14:51]:信任请求和平台检测完成。     * [2014年12月16日18:15:00]:订阅依赖项的下载已完成。     * [2014年12月16日18:15:00]:已下载的应用程序的提交已开始。     * [2014年12月16日18:15:06]:应用程序的安装已成功完成。

错误细节     在此操作期间检测到以下错误。     * [16/12/2014 18:15:06] System.ArgumentException          - 价值不在预期范围内。          - 来源:System.Deployment         - 堆栈跟踪:             在System.Deployment.Application.NativeMethods.CorLaunchApplication(UInt32 hostType,String applicationFullName,Int32 manifestPathsCount,String [] manifestPaths,Int32 activationDataCount,String [] activationData,PROCESS_INFORMATION processInformation)

0 个答案:

没有答案