Configuring SMTP Server Using PowerShell

Configuring SMTP Server Using PowerShell

Let us first go through the manual steps required for configuring SMTP server and PowerShell script is included in the end. For this example, we are using Microsoft Windows Server 2016 and the configuration might change based on the operating system. Restart the server and test the smtp mail functionality using below PowerShell command Send-MailMessage -SMTPServer localhost -To to@gmail.com -From […]

Publish MVC App With Different Configurations

Publish MVC App With Different Configurations

By default, all the Asp.Net web applications come up with two default configurations debug and release. These configurations are maintained in Web.Debug.config & Web.Release.config files. Configurations are not used when we are developing the application, they are used when we are publishing the application. First Let us see how to add a new configuration (UAT) and later publishing the application […]

Configuring Free SSL on IIS Server

Configuring Free SSL on IIS Server

This article helps you to configure free SSL for a website hosted in IIS. For configuring SSL to any website a certificate has to be purchased from 3rd party authorities like Comodo, Identrust etc. On the other hand, you can also purchase SSL from domain name providers like GoDaddy, Bigrock etc. There are also free SSL certificate providers like https://www.sslforfree.com, […]

Eager & Lazy Loading – Entity Framework

Eager & Lazy Loading – Entity Framework

Eager loading is the process of loading the relational data at one instance. Lazy loading is the process of loading relational data when needed (on demand basis). The entity frame work supports both eager and lazy loading patterns. In below figure the Department and Employee are having a one-to-many relationship. Let us see how we can achieve eager/lazy loading using below entities. Data […]