LL-8426 avatar image
0 Votes"
LL-8426 asked LL-8426 commented

wpf, mainwindow is not loaded

I have create an app (WPF, c#), and it is deployed using clickonce. I can install , and running it in every computer, The App.Xaml.cs launches a login and if it is correct MainWindow is started. But in uan computer i get the following error: Error: 'La invocación del constructor del tipo 'UPOS10.MainWindow' que coincide con las restricciones de enlace especificadas produjo una excepción.' (número de línea: '14'; posición de línea: '9'). El valor no puede ser nulo. Nombre del parámetro: source en System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri) en System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri) en System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream) en System.Windows.Application.LoadBamlStreamWithSyncInfo(Stream stream, ParserContext pc) en System.Windows.Application.LoadComponent(Uri resourceLocator, Boolean bSkipJournaledProperties) en System.Windows.Application.DoStartup() en System.Windows.Application.<.ctor>b__1_0(Object unused) en System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) en System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) This error has been detected in a cOptiplex 755 computer running windows 10 pro 64 Bits. the app is Platform target ANY CPU Any one can help me???

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

It seems that there is a problem inside the constructor of MainWindow, line 14, maybe related to binding. Show some details about this code, and check the XAML for possible binding problems.

0 Votes 0 ·

I have being debugging this program instruction after instruction. Constructor, Windows_loaded, Windows_ContentRendered.... but i cannot catch any exception using VS 2017 or VS 2019. I cleanned up all "System.Deployment exceptions"... but NOTHING gives me the error on that computer, and only that computer, installed using clickonce... and in no other computer arround, x32 and x64 bits machine.. i am completely lost with this

0 Votes 0 ·

0 Answers