Just wanted to know in general what happens in this case, actually the problem is that one of my projects is using shell32.dll which compiles and executes fine on windows 7 PC however fails on other system like windows xp giving an runtime error
Unable to cast COM object of type 'System.__ComObject' to interface type 'Shell3 2.Shell'
I went through so many web resources but the results did not work for me.
The switch is documented here.