How to resolve this exception - C#