You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using nuget 9.0.1 version, I have this exception :
On the following code :
Note that I do not have this issue on 8.0.1 nuget package.
Here the code :
using (Sql4CdsConnection sqlConnection = new Sql4CdsConnection(ServiceClient))
{
using (var cmd = sqlConnection.CreateCommand())
{
cmd.CommandText = @"select '%Object reference not set to an instance of an object%' as ExceptionName,
SUBSTRING(typename, 1, CHARINDEX(',', typename)-1) as TypeName, count(*) as Count
from plugintracelog
where createdon between '2024-06-04 00:00:00' and '2024-06-05 00:00:00'
and exceptiondetails like '%Object reference not set to an instance of an object%'
group by typename
order by 3 desc
";
cmd.ExecuteReader();
}
}
Regards
Sybaris
The text was updated successfully, but these errors were encountered:
This seems to be related to a difference between .NET Framework and .NET Core - the query runs as expected in .NET Framework but produces this error in .NET Core. I've opened an issue at dotnet/runtime#103197 to see if this can be resolved properly in the .NET runtime, but in the meantime I've added a workaround for the next update.
Hi,
Using nuget 9.0.1 version, I have this exception :
![image](https://private-user-images.githubusercontent.com/11009997/336987503-0853afd4-f1c9-472a-b57e-dcdd19f38e64.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0Nzk3NzIsIm5iZiI6MTczOTQ3OTQ3MiwicGF0aCI6Ii8xMTAwOTk5Ny8zMzY5ODc1MDMtMDg1M2FmZDQtZjFjOS00NzJhLWI1N2UtZGNkZDE5ZjM4ZTY0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDIwNDQzMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWEwZTE4OGY4OGUxOGNmZGUxMTZlMzI3ZjNiN2I5OTZhZTFlYzliZjk5NjdiYzZlYjlkZDk4MjBhZTBkODU5N2ImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.5wIEd9vSkGAc8T1pVW89wiIBdog49NYbJNRkrPxggZg)
On the following code :
![image](https://private-user-images.githubusercontent.com/11009997/336987639-8c31a312-ce32-492f-9300-6502c42daae9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0Nzk3NzIsIm5iZiI6MTczOTQ3OTQ3MiwicGF0aCI6Ii8xMTAwOTk5Ny8zMzY5ODc2MzktOGMzMWEzMTItY2UzMi00OTJmLTkzMDAtNjUwMmM0MmRhYWU5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDIwNDQzMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTlkMTI5YjRjMGRlMzA4MTg5OWZlMmVhM2Y3OTIzZjY4MTczYWQxNzcwNGNhNWU1ZmQ5MjhhNmYyMDU1MDJiNzEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.AHllfJFfVybrzGN3z2UliZ0Q4DJnRXZEc01mRHv0JI0)
Note that I do not have this issue on 8.0.1 nuget package.
Here the code :
Regards
Sybaris
The text was updated successfully, but these errors were encountered: