How can I resolve this problem? - C#