I just finished a WPF project in C# , it worked great until couple of minutes ago. Then I deleted some files that I don't need anymore ,like Page1.xaml and Page1.xaml.cs . Then I tried to publish the project with ClickOnce, and I got 129 errors...
"
Error Failed to copy file 'C:\Users\xxxxx\source\repos\OATradex\bin\Release\app.publish\Application Files\OATrade_1_0_0_15\System.Xml.XPath.dll.deploy' to 'C:/Users/xxxxxx/Downloads/OANDA/release/Application Files/OATrade_1_0_0_15/System.Xml.XPath.dll.deploy'.
Unable to add 'Application Files/OATrade_1_0_0_15/System.Xml.XPath.dll.deploy' to the Web site. Unable to add file 'Application Files\OATrade_1_0_0_15\System.Xml.XPath.dll.deploy'. The system cannot find the path specified. OATrade 1
"
Now it does not start in debug mode either. When I try to start it I get 2 exceptions:
System.Windows.Markup.XamlParseException HResult=0x80131501 Message=The invocation of the constructor on type 'OATrade.MainWindow' that matches the specified binding constraints threw an exception. ... ... This exception was originally thrown at this call stack: [External Code] OATrade.MainWindow.MainWindow() in MainWindow.xaml.cs
Inner Exception 1: TypeInitializationException: The type initializer for 'OATrade.MainWindow' threw an exception.
Inner Exception 2: InvalidDeploymentException: Application identity is not set.
Can anybody help me please. I am completely lost, I do not know what to do!!! I tried to check uncheck "Just My Code" deleted bin folder nothing helps.
Thank you.
User contributions licensed under CC BY-SA 3.0