c# - Unable to cast usercontrol -
i'm getting error appears @ seemingly random occations.
unable cast object of type 'asp.controls_ucscalevalue_ascx' type 'controls_ucscalevalue'.
what makes weird occur, , dissappears no real change in code.
we're 2 people working on project, while error appear on 1 machine, other able run error free. according github we're both synced up.
the line triggers code one
controls_ucscalevalue value = (controls_ucscalevalue)page.loadcontrol("controls/ucscalevalue.ascx");
it works 90% of time, last 10% we're stuck , can't figure out how rid of error message.
it bug of microsoft. if edit user control error dissapear, if edit other control error appears again. occurs in proyects in asp.net 2.0. in msn can read error , download fix. here: msdn fix loadcontrol