Hi,
Since your program runs very well on your local Visual Studio, this problem should not be caused by C#, so please consider the reasons Karen said and ask your question in the corresponding forum.
The Visual C# forum discusses and asks questions about the C# programming language, IDE, libraries, samples, and tools,so if you encounter c#-related errors in the future, please feel free to post here.
Best Regards,
Timon
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to
MSDN Support, feel free to contact MSDNFSF@microsoft.com.