Quantcast
Channel: MySQL Forums - Connector/NET and C#, Mono, .Net
Viewing all articles
Browse latest Browse all 1451

Mysql enterprise 8 with .net core 3.1. Getting error Data is Null. This method or property cannot be called on Null values. (no replies)

$
0
0
I have .net core 3.1 application
I am getting following error on mysql 8 enterprise edition when connecting from a linux
rogram Exception has been thrown by the target of an invocation.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.Data.SqlTypes.SqlNullValueException: Data is Null. This method or property cannot be called on Null values.
at MySql.Data.MySqlClient.MySqlDataReader.GetFieldValue(Int32 index, Boolean checkNull)


Strange thing is when trying to same db from windows i am not getting this error.
Stored procedure i am accessing having just one parameter.
Error from linux system removed when i added CheckParameters=false in the connection string.
But i am confused why it is happening as my stored procedure have no more then single parameter.

Viewing all articles
Browse latest Browse all 1451

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>