c# - Upgrading MSI throwing 'method not found' error -
i have project 2 class libraries. used 'setup , deployment tool' make msi files.
initially, have build v 1.0.0 , installed in machine. after that, have made few changes in libraries , made build v 1.0.1.
when tried install v1.0.1 in machine has 1.0.0. installed replacing older 1 expected.
but, when tried run app v1.0.1 , click button, throwing exception follows.
submitbutton_click : method not found: 'void library1.method..ctor(int32, system.string, int32, int32, system.datetime, system.string, system.datetime, int32, tabletevallibrary.skillmethod, system.string, tabletevallibrary.user, system.collections.generic.list`1<library1.porceedure>, int32)'
its weird. sure project has ctor , able run app via visual studio.
any suggestion me on this?
when upgrade vs setup (removepreviousversions) can succeed doesn't mean files have been updated. standard file replacement rules used, , means files replacced if file versions have been incremented.
so here scenario fits see: changed ctor , rebuilt it, , thought you'd installed it, older file different ctor still on system. call fail. should increment assemblyfileversion of code files when release ensure new versions replace older versions.
Comments
Post a Comment