开发者

System.ComponentModel.InotifyPropertyChanging error

开发者 https://www.devze.com 2023-02-05 03:32 出处:网络
I am developing a windows form app that will need to run on a production machine that is only running .net 2.0.

I am developing a windows form app that will need to run on a production machine that is only running .net 2.0.

in this project i am, however, using some 3.0+ related classes (ie linq) , therefore even know i have set the target framework to 2.0 in visual studio, i have copied all 3.0+ related dlls to to production server but i am getting the following error when i am working with multi threating any idea why ?

System.ComponentModel.INotifyPropertyChanging' from assembly 'System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

here are the list of dlls i have copied to release folder

as you can see i have copied the latest version of System.dll to the target folder but the app seems to be using the one installed on machine and ignore mine

any help would greatly be appreciated

thanks


That interface was added to System.dll in a service pack; 2.0 SP 1 (also shipped with .Net 3.5); http://msdn.microsoft.com/en-us/library/system.componentmodel.inotifypropertychanging(v=VS.90).aspx

It cannot work on vanilla 2.0.

Either install the 2.0 SP 1 service pack (or 3.5), or live without it.


ok this seems to work :)

Assembly Redirect

0

精彩评论

暂无评论...
验证码 换一张
取 消