Catatan

Create minimal WEB API ASP.NET

Imej
Tutorial: Create a minimal web API with ASP.NET Core https://docs.microsoft.com/en-us/aspnet/core/tutorials/min-web-api?view=aspnetcore-6.0&tabs=visual-studio Use a database with minimal API, Entity Framework Core, and ASP.NET Core https://docs.microsoft.com/en-us/learn/modules/build-web-api-minimal-database/?wt.mc_id=academic-0000-chnoring Return value JSON or XML format JSON and XML Serialization in ASP.NET Web API https://docs.microsoft.com/en-us/aspnet/web-api/overview/formats-and-model-binding/json-and-xml-serialization Deploying Web API ASP.NET Quickstart: Deploy an ASP.NET web app https://docs.microsoft.com/en-us/azure/app-service/quickstart-dotnetcore?tabs=net60&pivots=development-environment-vs The .NET Core Hosting Bundle https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/hosting-bundle?view=aspnetcore-6.0 Publish .NET 5 Web API on IIS || .NET Core Hosting on IIS

Android TV & PC stick

Imej
PCG02 GLE Fanless PC Stick Intel Gemini Lake J4125 Windows 10 Pro https://store.mele.cn/collections/pc-stick/products/pcg02-gle-fanless-pc-stick-intel-gemini-lake-j4125-windows-10-pro?variant=41993279537330

ASP.NET C# Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed.

Imej
The Error: <asp:AsyncPostBackTrigger ControlID="Timer1" /> The Solutions: Change  <asp:AsyncPostBackTrigger ControlID="Timer1" /> to  <asp:PostBackTrigger ControlID="Timer1" /> Reference Solution: https://social.msdn.microsoft.com/Forums/en-US/cc3f69ee-6634-4f2c-ab97-0427825ce0e4/syswebformspagerequestmanagerparsererrorexception-the-message-received-from-the-server-could-not?forum=aspwebforms#:~:text=WebForms.-,PageRequestManagerParserErrorException%3A%20The%20message%20received%20from%20the%20server%20could%20not%20be,or%20server%20trace%20is%20enabled.

Add ProjectInstaller in Windows Service

Imej
How to create ProjectInstaller.cs class in Windows Service? On Solution Explorer, Go to Service1.cs and double click on the file to open the design view. Right-click in the Design View box and select Add Installer. The class will be generated as below. Click on serviceProcessInstaller1. Set Account : LocalSystem Build the application.

Transaction (Process ID 111) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.

What's Deadlock in SQL Server? -  https://debug.to/951/transaction-was-deadlocked-on-lock-resources-with-another-process How to fix SQL Server deadlocks -  https://www.red-gate.com/products/dba/sql-monitor/resources/articles/monitor-sql-deadlock Transaction (Process ID) was deadlocked on lock resources with another process and has been chosen as the deadlock victim -  https://social.msdn.microsoft.com/Forums/en-US/0337e7ea-fc82-4cc2-8ce9-f8d3e04042e8/transaction-process-id-was-deadlocked-on-lock-resources-with-another-process-and-has-been-chosen?forum=aspsqlserver

How to log data to the Windows Event Log in C#

if (!EventLog.SourceExists(sSource)) {       EventLog.CreateEventSource(sSource, sLog); } Rujukan:  How to log data to the Windows Event Log in C#

WMPLib Media Player

Imej
Failed to AxHost. System Reflection Solution: Remove AxWMPLib and WMPLib references. Remove Media Player from Toolbar Close the tab windows. Rebuild the project. Go to Manage NuGet Package to download the new WMPLib to replace the corrupted WMPLib. Rebuild the application, add a media player on the toolbar and now we can drag and drop the media player to windows. References: https://social.msdn.microsoft.com/Forums/windows/en-US/c2a286ed-6973-4cd4-a2c7-79e5f784b71a/error-on-visual-studio?forum=winforms