XamlParseException after deploying WPF project

前端 未结 10 1086
心在旅途
心在旅途 2020-11-30 10:08

I have been trying to deploy my WPF app, I created a Setup Project using the Setup Wizard.The only Project Output I added was Primary. After building this and installing the

相关标签:
10条回答
  • 2020-11-30 10:22

    I had this problem with a WPF solution in VS2010. The solution contained a simple dll and a test project (set to startup) for testing the dll. My dll was set to x86 and my test project was set to x64. When I changed the test project to x86 the problem was resolved.

    0 讨论(0)
  • 2020-11-30 10:25

    I just had a good 4 hours trying to figure this out. Mine ended up being nothing to do with the xaml! Turned out it was a minor error in the code behind on MainWindow initialize.

    If all else fails, check there

    0 讨论(0)
  • 2020-11-30 10:27

    Was getting the same type of issue once i had published and installed my project (was working fine in debug VS2013 Desktop, no errors etc) but used the advice in from http://geekswithblogs.net/lbugnion/archive/2007/03/14/108728.aspx and wham! installed project was working..

    try
    
    {
      InitializeComponent();
    }
    catch ( Exception ex )
    {
      // Log error (including InnerExceptions!)
      // Handle exception
    }
    
    0 讨论(0)
  • 2020-11-30 10:27

    I solved this problem by removing Sign the assembly, here :

    0 讨论(0)
  • 2020-11-30 10:32

    If you get this exception in the debugger check the InnerException member of the exception. It might give you a hint about which assembly that is missing.

    0 讨论(0)
  • 2020-11-30 10:34

    Cleaning and Rebuilding the solution might help!

    0 讨论(0)
提交回复
热议问题