If you are getting any of these types of exceptions compiling code:
- error CS1501: No overload for method ‘WaitOne’ takes ‘1’ arguments
- error CS1501: No overload for method ‘WaitAny’ takes ‘2’ arguments
- error CS1501: No overload for method ‘WaitAll’ takes ‘2’ arguments
Then you are trying to compile code with .NET 3.5 that someone has written using .NET 3.5 SP1. And there ya go.
thanks, your tip fixed the exact same issue I was having :-)
Thanks that helped.
my hero
great, but what is the workaround for this? i mean if i have a dll with 3.5 sp1 created that i have to have compile into 3.5 now i can do to avoid this problem?
Hi Rahul,
There isn’t much you can do but recompile. It would be no different than having a 3.5 dll you need to work on a 2.0 system. You either need your user to upgrade to 3.5SP1, or recompile without SP1.