.NET Programming for Beginners – Windows Forms (C#)

Hi there! We are happy to announce our brand new course titled: “.NET Programming for Beginners – Windows Forms (C#)“. We are really excited about this course, since via the course, we share our passion, expertise, as well as tips and tricks, about Windows Forms (WinForms) programming in .NET, using Visual Studio and C#. But … Read more…

There was an error reflecting type… (.NET/C#)

Let’s say you have a C# (or VB.NET) project with namespace “MyProject” and you are trying to serialize a class named “MyClass” and you get the error message: There was an error reflecting type ‘MyProject.MyClass’. The first thing to check, is that the class which you want to serialize (that save it to disk), contains … Read more…

Microsoft SSIS Service failed to start. Configuration system failed to initialize

About the “Microsoft SSIS Service failed to start” Issue It happened at some point to encounter problems with SQL Server Integration Services 11.0 (SSIS) not being able to start. This occurred on a Windows 2008 R2 server that has been regularly patched. After checking in Windows Event Viewer, I found the exact error message which … Read more…

Using the C# SqlParameter Object for Writing More Secure Code

C# SqlParameter is a handy feature allows you to safely pass a parameter to a SqlCommand object in .NET. A security best practice when writing .NET data access code, is to always use parameters in SqlCommand objects (whenever parameters are required of course). The reason for this, is that parameters help prevent SQL injection attacks. … Read more…

The Net.Tcp Port Sharing Service service on Local Computer started and then stopped

The Error Message Under certain circumstances, you might be experiencing problems with the “Net.Tcp Port Sharing” Service on Windows Server, thus giving the error message: The Net.Tcp Port Sharing Service service on Local Computer started and then stopped. Some services stop automatically if they are not in use by other services or programs. So, even though … Read more…

Cannot declare instance members in a static class

This short post examines the error message “Cannot declare instance members in a static class” when developing in C# in Visual Studio. This article provides useful information such as how you can reproduce the error message in order to better understand its root cause, as well as how you can resolve the issue. Reproducing the … Read more…

How to Establish a Simple Connection from a C# Program to SQL Server

This is a basic example on how to establish a connection to SQL Server from a C# program with the use of the “using” statement in C# which help you better managing your database connections.   Using the System.Data.SqlClient Use the System.Data.SqlClient namespace in the top section of your code as below: using System.Data.SqlClient;   Setting … Read more…

Cannot implicitly convert type ‘string’ to ‘System.Windows.Forms.DataGridViewTextBoxColumn

When developing a .NET application (i.e. in C#), under certain circumstances, you might get the error message: Cannot implicitly convert type ‘string’ to ‘System.Windows.Forms.DataGridViewTextBoxColumn   Example of Exception in Visual Studio when Using the Reserved Word “Name” as a DataGridView Column Name.   Why you got the implicit conversion error If you get the above error, … Read more…

The timeout period elapsed prior to obtaining a connection from the pool

If you are working with .NET applications, at some time you might get the below (or similar) error message: Timeout expired.  The timeout period elapsed prior to obtaining a connection from the pool.  This may have occurred because all pooled connections were in use and max pool size was reached.   Why you get the connection … Read more…

The Entity Framework – Part 2 – Inheritance

As promised on my previous Entity Framework-related post I will try through a series of posts which will contain examples, to talk about the ADO. NET Entity Framework and all the cool features it provides the developer with. This post discusses about one of those features; Inheritance. Inheritance allows creating entities having as base type … Read more…

The ADO .NET Entity Framework

During the development cycle of a database application, the developer may face issues having to do with the fact that the logical (relational) and related infrastructure may not match the application’s needs. This happens as relational schemas are often normalized in such a way, for being able to be shared across multiple applications.   Learn … Read more…

I am an INETA Country Leader

Today I have officially received the role of the INETA Country Leader for Cyprus.It was an honor for me to receive this role as it will allow me to further promote the .NET community activity in Cyprus. The main responsibility of this role is to supervise INETA User Groups in Cyprus and to promote technical … Read more…