C# WPF application launches in Visual, but not when ran directly -


i'm making wpf apllication , works how it's supposed when run inside visual studio.

if navigate folder , run there, crashes without kind of message.

here video demonstration: http://youtu.be/gvonat387vq

this application worked fine before when in 0.9. point on added new grid, started using properties.settings.default , added handler readonly files (because application reads , writes configuration file). , none of these seem cause issue.

edit:

reason found. event viewer wrote error out.

part of messagebox handled exception implemented:

system.windows.markup.xamlparseexception: invocation of constructor on type 'dayz_config_tweak_tool.mainwindow' matches specified binding constraint threw exception. ---> system.formatexception: token not valid. @ ms.internal.parsers.parsebrush(string brush, iformatprovider formatprovider, itypedescriptorcontext contex) @ system.windows.media.brush.parse(string value, itypedescriptorcontext context) @ system.windows.media.brushconverter:convertfrom(itypedescriptorcontext context, cultureinfo culture, object value) @ dayz_config_tweak_tool.mainwindow.initializebuttons() in #path xaml.cs#:line 222 @ dayz_config_tweak_tool.mainwindow..ctor() in #path xaml.cs#:line 44 

my settings hex color strings , missed hashtag '000000' instead of '#000000'. during debug running application automatically loaded "dark" theme that's initialized after application launches, did not occur once application ran outside of dev environment 1 reason or another. adding hashtag fixed issue.

basically running application outside devenv means properties.settings.default empty!! checking , loading before initializecomponent(); fixed issues!


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -