c# - xaml parse exception issue only on win7 -
i have issue got error
id 1000 (kernelbase.dll)
and
error id 1026 system.io.filenotfoundexception
when try run program on win 7 (witch had run fine before), runs on win 8/8.1/10. running .net framework 4.5.
i had been trying deleting code, error appears on other lines off code , thats keeps going on, know how fix or know how find out causing issue
binding failure occurred message : managed debugging assistant ' binding failure ' has detected problem in ' f: \ omini \ omini dækberegner.exe ' . additional information : assembly display name ' presentationframework.aero2 ' not loaded binding context '
c#
initializecomponent(); bredebox_nu.focus(); textboxes = new list<textbox> { bredebox_nu, profilbox_nu, fælgestr_nu, bredebox_ny, profilbox_ny, fælgestr_ny, oprofilbox, obredebox, ofælgestr }; win.sourceinitialized += new eventhandler(win_sourceinitialized); list<biler> items = new list<biler>();
the other error
system.windows.markup.xamlparseexception occurred hresult=-2146233087 line number = 616 line position = 48 message = ' there triggered exception @ setting property ' system.windows.frameworkelement.style ' . ' line number ' 616 ' , line position ' 48' . source = presentation framework stack trace : system.windows.markup.wpfxamlloader.load ( xamlreader xamlreader , ixamlobjectwriterfactory writer factory , boolean skipjournaledproperties , object rootobject , xamlobjectwritersettings settings , uri baseuri ) system.windows.markup.wpfxamlloader.loadbaml ( xamlreader xamlreader , boolean skipjournaledproperties , object rootobject , xamlaccesslevel access level , uri baseuri ) system.windows.markup.xamlreader.loadbaml ( stream stream , parsercontext parsercontext , object parent , boolean close stream) system.windows.application.loadcomponent(object component, uri resourcelocator) omini_tires_and_rims.mainwindow.initializecomponent() c:\users\sindakewin\documents\visual studio 2015\projects\omini_dækberegner\omini_dækberegner\mainwindow.xaml:linje 1 omini_tires_and_rims.mainwindow..ctor() c:\users\sindakewin\documents\visual studio 2015\projects\omini_dækberegner\omini_dækberegner\mainwindow.xaml.cs:linje 210 innerexception: filename=presentationframework.aero2, publickeytoken=31bf3856ad364e35 fusionlog ==== state information prior binding === log: display name = presentationframework.aero2, publickeytoken = 31bf3856ad364e35 (partial) wrn: there delivered partial binding assembly: wrn: assemblyname: presentationframework.aero2, publickeytoken = 31bf3856ad364e35 | domain id: 1 wrn: partial binding occurs tabloid given part of assemblyens display name. wrn may cause binder inputting wrong assembly. wrn: recommended give specified text id assembly, wrn: consisting of simple name, version, culture , token public key. wrn: more information , common solutions problem in white paper http://go.microsoft.com/fwlink/?linkid=109270. log: appbase = file: /// f: / omini / log: first privatepath = null
calling assembly: presentation framework, version = 4.0.0.0, culture = neutral, publickeytoken = 31bf3856ad364e35.
log: binding initiates in loadingcontex default. log: user application configuration file: f: \ omini \ omini dækberegner.exe.config log: user host configuration file: log: user machineconfigurationsfile c: \ windows \ microsoft.net \ framework \ v4.0.30319 \ config \ machine.config. log: policy not applied reference @ time (private, custom, partial, or location-based assemblybinding). log: attempting download new url file: /// f: /omini/presentationframework.aero2.dll. log: attempting download new url file: /// f: /omini/presentationframework.aero2/presentationframework.aero2.dll. log: attempting download new url file: /// f: /omini/presentationframework.aero2.exe. log: attempting download new url file: /// f: /omini/presentationframework.aero2/presentationframework.aero2.exe. ) hresult = -2147024894 message = file or assembly ' presentationframework.aero2 , publickeytoken = 31bf3856ad364e35 ' or 1 of dependencies not loaded . specified file not found. source = mscorlib stacktrace: system.reflection.runtimeassembly._nload (assemblyname filename, string codebase, evidence assemblysecurity, runtimeassembly location hint, stack crawl mark & stack field, intptr pprivhostbinder, boolean throwonfilenotfound, boolean forintrospection, boolean suppresssecuritychecks) system.reflection.runtimeassembly.nload (assemblyname filename, string codebase, evidence assemblysecurity, runtimeassembly location hint, stack crawl mark & stack field, intptr pprivhostbinder, boolean throwonfilenotfound, boolean forintrospection, boolean suppresssecuritychecks) system.reflection.runtimeassembly.internalloadassemblyname (assemblyname assemblyref, evidence assemblysecurity, runtimeassembly reqassembly, stack crawl mark & stack field, intptr pprivhostbinder, boolean throwonfilenotfound, boolean forintrospection, boolean suppresssecuritychecks) system.reflection.assembly.load (assemblyname assemblyref) system.windows.baml2006.baml2006schemacontext.resolveassembly (bamlassembly bamlassembly) system.windows.baml2006.baml2006schemacontext.resolvebamltypetotype (bamltype bamltype) system.windows.baml2006.baml2006schemacontext.resolvebamltype (bamltype bamltype, int16 typeid) system.windows.baml2006.baml2006schemacontext.getxamltype (int16 typeid) system.windows.baml2006.baml2006reader.process_elementstart () system.windows.baml2006.baml2006reader.process_onebamlrecord () system.windows.baml2006.baml2006reader.readobject (keyrecord record) system.windows.resourcedictionary.createobject (keyrecord key) system.windows.resourcedictionary.ongettingvalue (object key, object & value, boolean & cancache) system.windows.resourcedictionary.ongettingvalueprivate (object key, object & value, boolean & cancache) system.windows.resourcedictionary.getvaluewithoutlock (object key, boolean & cancache) system.windows.resourcedictionary.getvalue (object key, boolean & cancache) system.windows.deferredresourcereference.getvalue (base value source internal value source) system.windows.dependencypropertychangedeventargs.get_newvalue () system.windows.controls.control.ontemplatechanged (dependencyobject d, dependencypropertychangedeventargs e) system.windows.dependencyobject.onpropertychanged (dependencypropertychangedeventargs e) system.windows.frameworkelement.onpropertychanged (dependencypropertychangedeventargs e) system.windows.dependencyobject.notifypropertychange(dependencypropertychangedeventargs args) system.windows.dependencyobject.updateeffectivevalue(entryindex entryindex, dependencyproperty dp, propertymetadata metadata, effectivevalueentry oldentry, effectivevalueentry& newentry, boolean coercewithdeferredreference, boolean coercewithcurrentvalue, operationtype operationtype) system.windows.stylehelper.applystyleortemplatevalue(frameworkobject fo, dependencyproperty dp) system.windows.stylehelper.invalidatecontainerdependents(dependencyobject container, frugalstructlist`1& exclusioncontainerdependents, frugalstructlist`1& oldcontainerdependents, frugalstructlist`1& newcontainerdependents) system.windows.stylehelper.dostyleinvalidations(frameworkelement fe, frameworkcontentelement fce, style oldstyle, style newstyle) system.windows.stylehelper.updatestylecache(frameworkelement fe, frameworkcontentelement fce, style oldstyle, style newstyle, style& stylecache) system.windows.frameworkelement.onstylechanged(dependencyobject d, dependencypropertychangedeventargs e) system.windows.dependencyobject.onpropertychanged(dependencypropertychangedeventargs e) system.windows.frameworkelement.onpropertychanged(dependencypropertychangedeventargs e) system.windows.dependencyobject.notifypropertychange(dependencypropertychangedeventargs args) system.windows.dependencyobject.updateeffectivevalue(entryindex entryindex, dependencyproperty dp, propertymetadata metadata, effectivevalueentry oldentry, effectivevalueentry& newentry, boolean coercewithdeferredreference, boolean coercewithcurrentvalue, operationtype operationtype) system.windows.dependencyobject.setvaluecommon(dependencyproperty dp, object value, propertymetadata metadata, boolean coercewithdeferredreference, boolean coercewithcurrentvalue, operationtype operationtype, boolean isinternal) system.windows.baml2006.wpfknownmemberinvoker.setvalue(object instance, object value) ms.internal.xaml.runtime.clrobjectruntime.setvalue(xamlmember member, object obj, object value) ms.internal.xaml.runtime.clrobjectruntime.setvalue(object inst, xamlmember property, object value) innerexception:
xaml <gridviewcolumn header="model" width="140" > <gridviewcolumn.celltemplate> <datatemplate> <textblock x:name="txt" text="{binding model}" foreground="#ff00fb0b" /> </datatemplate> </gridviewcolumn.celltemplate> </gridviewcolumn>
i removed presentationframework.aero2
references in visual studio , replaced presentationframework.aero
, deleted of themes , replaced namespaces , runs fine on win 7 , win vista without issues
Comments
Post a Comment