Are you running into the following error in a ASP.NET Framework 4.x MVC project, and have already tried changing the max response values in web.config? Error: Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property. Solution: If you are using the Json()… Continue reading Fix maxJsonLength error in ASP.NET MVC 4 applications
Category: C#
How to use Tensorflow ONNX model in C# ML .NET for object detection
This is part 2 in the tutorial series on how to train a Tensorflow 2.x object detection model and use it in C# ML.NET. I advise you to read part 1 first if you haven’t already. 1. Introduction I created a Visual Studio 2022 .NET 6.0 solution which contains all of the example code to… Continue reading How to use Tensorflow ONNX model in C# ML .NET for object detection
How to auto refresh page contents in C# Blazor server app
Developing web apps with Blazor technology has a lot of benefits. One of the biggest benefits is being able to use C# for both front-end and backend, simplifying the toolkit for creating rich web apps. When you are using plain server-side rendered HTML, one would usually be required to use Javascript for making AJAX calls… Continue reading How to auto refresh page contents in C# Blazor server app
Extract frames from MP4 video with OpenCV in C# .NET framework 5.0
In order to convert a .MP4 video to images (.png) for every frame, you can use the OpenCV library, which is compatible with .NET framework 5.0. 1. Create new Console App First create a new Console App project in Visual Studio. Select “.NET 5.0” as Framework. 2. Install OpenCvSharp 4.x via NuGet When your project… Continue reading Extract frames from MP4 video with OpenCV in C# .NET framework 5.0