I used the Radzen tool to create a simple CRUD page.
I found there was an error if I ran the application in Visual Studio by release mode.
There was no issue when I ran the application in debug mode.
If I changed the code in client/Services/DbService.cs
from
var response = await httpClient.SendAsync(httpRequestMessage);
return await response.ReadAsync<ODataServiceResult>();
to
return await httpClient.SendAsync(httpRequestMessage);
There was no problem in both the release and debug mode.
Could you please tell me how I can fix the issue in release mode instead of changing the code, as the code is scaffolded by the Radzen tool? Thank you.
@enchev
Please find the attached class file. The function name is UpdateOnTrainUser.(All update functions will throw an error in release mode) TcmService.zip (6.3 KB)
The version is .Net Core 3.1.
Please let me know if you need more information. Thank you so much.
This code is from WebAssembly application while this thread category is for Blazor server-side. Can you verify also if you are using latest Radzen version? Here is how OData service code looks in application generated using latest Radzen: