“Why do the Java developers get paid less than those working on the Microsoft stack? Because they can’t C#!”
I guess that joke works better when told, not written.. I’m sorry.
Anyway, C# (or C-sharp when trying to get rid of special characters) is more or less Microsoft’s competitor for Java. Multiparadigm, but largely Object-Oriented programming language.
Visual Studio failing to copy a referenced assembly to a project in build might lead to surprising runtime errors. This post will explain one method of fixing these issues, using Microsoft.IdentityModel.Clients.ActiveDirectory as the example – as earlier versions of that assembly had this issue! Problem After the build, you might get…Continue reading A quick (and handy!) hack to force referenced assembly to getting copied to a project
This post describes the easiest way to debug the issues that may stop your Seed-method in Configuration.cs from going through. This problem concerns typically your ASP.NET MVC projects, either on .NET Framework or .NET Core – the same basic idea should work for both situations. The solution here shows you,…Continue reading The easiest way to debug Seed-method in Code-first migrations in Entity Framework
This post describes how to fix the “Could not load file or assembly ‘[assemblyname]’ or one of its dependencies. An attempt was made to load a program with an incorrect format.” error. The solution described in this post shows you how to resolve the issue when you’re deploying from Visual…Continue reading Fixing the “Could not load file or assembly or one of its dependencies” error
This post describes a quick solution to launching a new Visual Studio instance for debugging the code. There are a lot of applications for this, but where I’ve found it exceptionally useful, has been in debugging the Entity Framework’s code-first migration (one of the ways for database initialization) Seed-method. It…Continue reading Launching a new debugger instance from code in Visual Studio
If you’re developing something like a WPF app and you need to update values on the User Interface based on a long-running operation that runs in a background thread (like depicted in my other blog post right here – that post is for a full-trust SharePoint solution, but the basic principle…Continue reading Using Dispatcher to update values in GUI elements from a background thread
This post describes one of the more no-brainerish ways of fixing a ‘System.OutOfMemoryException’ exception being thrown in your ASP.Net MVC application using C# and Entity Framework. Problem While developing a web project, for example, an ASP.NET MVC web application that is using EF, sometimes when handling a lot of data…Continue reading Exception of type ‘System.OutOfMemoryException’ was thrown.
This page describes multiple ways to fix the ‘Spatial types and functions are not available for this provider because the assembly ‘Microsoft.SqlServer.Types’ version 10 or higher could not be found.‘ exception which comes up during debugging or publishing your program, app or service using DbGeography. Symptoms While running a console…Continue reading Solving the “Spatial types and functions are not available …” -problem