Forum Xamarin Xamarin.Android get error when using xamarin live player but using android emulator no problem

I'm trying direct connect to Mysql Database using "", everything work on android emulator. But when I try debug using xamarin live player I get this error.

The type 'Exception' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=, Culture=neutral, PublicKeyToken=969db8053d3322ac'.

The type caught or thrown must be derived from System.Exception

Please help me I'm very new in xamarin.

Best Answer


  • JuniorJiangJuniorJiang Member, Xamarin Team Xamurai

    Hi @VincentDev , here is a discussion about connect to MySQL , you can refer to .
    However , suggest that do not connect your App directly to your database. This will cause a huge secruity problem. Use web services instead. The web services will handle the interaction between your client and server.

  • VincentDevVincentDev Member ✭✭
    Accepted Answer

    Thanks man, I solve my problem.

Sign In or Register to comment.