Posts

Donate

Visual Studio 2022 Create A New GitHub Repository Not Authenticating GitHub Account (Re-enter your credentials)

Image
Hello, I encountered this issue lately wherein after I updated my Visual Studio 2022 IDE to it's latest version, I am unable to autheticate my GitHub account when creating a new GitHub repository. It just keeps showing Re-enter your credentials even if I have successfully logged-in to my GitHub account. After several unsuccessful attempts of re-entering my GitHub credentials, I finally solved it by removing and adding again my GitHub account in Visual Studio and then logged-in again. After that the Owner dropdown shows that I was successfully authenticated by GitHub. Cheers!

GitHub Language Bar Not Showing On Newly Uploaded C# Project Repository

Image
Good day! I published a C# Console project to my GitHub repository few days ago and when checking back on the repository, I noticed that the programming language bar or indicator is missing. Only the updated status is shown as seen from the screenshot below. I did some research and have'nt found a specific answer to my problem. What I did was I opened up my project and noticed that the access modifier of the Program class is internal. internal class Program { static void Main( string [] args) { Console.ReadLine(); } } So, I tried changing the internal access modifier of the class to public and re-published it again. Voila! The language bar or indicator is now visible. public class Program { public static void Main( string [] args) { Console.ReadLine(); } } Cheers!

React Todo List Application With Create React App

Image
Hello, Here's a basic todo list application written in React.js and Create React App which is the output of the course React Project for Beginners: Building a Todo List App from Skillshare. Since I do have some background with Vue.js, I decided to try React.js thru trainings and will develop some database-driven applications with ASP.NET Core soon. Source Code: Todo List App Project Cheers!

ASP.NET Core 101 Contoso Crafts Website Upgrade To .NET 8

Image
Hello, After the release of .NET 8, I tried upgrading some of the sample projects that I have written in .NET Core 3.x to .NET 8. These were tutorials or video series from Microsoft Learn website that taught students the basics of .NET Core. The only major change that I have for this project is to fix a minor issue in the Blazor component which is Bootstrap modal not showing on first button click. The solution I found in the forums is to add a mouseover event to the button which is explained First click modal doesn't open in .NET 5 Blazor server side bool unlock; void start( string productId) { if (!unlock) { selectProductId = productId; selectedProduct = ProductService.GetProducts().First(x => x.Id == productId); unlock = true ; } } See below the complete Blazor component with the modal click issue. @using Microsoft.AspNetCore.Components.Web @using ContosoCrafts.WebSite.Models @using ContosoCrafts.WebSite.Services @inject Json...

How To Apply Checkbox Check All To WPF DataGrid Using MVVM Pattern In VB.NET

Image
Good day Gents! In this post, I will demonstrate the VB.NET version on how to create a WPF DataGrid application that has a check all checkbox behavior for selecting all rows using the MVVM Pattern. First is we need to create a .NET WPF Visual Basic project that targets the .NET framework with a project structure similar to the screenshot below. App.config Update your App.config's connection string with your local database connection. <configuration> <startup> <supportedRuntime version= "v4.0" sku= ".NETFramework,Version=v4.5.2" /> </startup> <connectionStrings> <add name= "products" connectionString= "data source=.;Initial Catalog=TestDatabase;Trusted_Connection=True;" providerName= "System.Data.SqlClient" /> </connectionStrings> </configuration> DBUtil.vb The DBUtil class will retrieve records from the database and u...

How To Apply Checkbox Check All To WPF DataGrid Using MVVM Pattern

Image
Good day Gents! In this post, I will demonstrate on how to create a WPF DataGrid application that has a check all checkbox behavior for selecting all rows using the MVVM Pattern. First is we need to create a .NET Core WPF project that targets the .NET 7 framework with a project structure similar to the screenshot below. App.config Update your App.config's connection string with your local database connection. <configuration> <connectionStrings> <add name= "products" connectionString= "data source=.;Initial Catalog=TestDatabase;Integrated Security=true;" providerName= "System.Data.SqlClient" /> </connectionStrings> </configuration> DBUtil.cs The DBUtil class will retrieve records from the database and update the discontinued field of a particular product. public static class DBUtil { public static DataTable GetProduct() { DataSet ds = new DataSet(); string q...

Entity Framework Core Scaffold-DbContext Error - The certificate chain was issued by an authority that is not trusted.

Image
Hello, I was converting a .NET core 2.2 console application into a .NET 7 project that will reverse engineer a sample database from Microsoft called ContosoRetailDW as the data source for my Entity Framework Core project. Upon running the Scaffold-DbContext command in Nuget Package Manager Console, an error occured was shown on the window with the specific message "A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - The certificate chain was issued by an authority that is not trusted.)" Scaffold-DbContext "Server=Your_Server;Database=ContosoRetailDW;Integrated Security=True" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models After reading through the forums, the solution that worked form me was to add a TrustServerCertifcate setting with a value to true or Encrypt setting set to false. The latter is the recommended one based from the forum answers. Option...

Donate