Trigger an Octopus Deploy application package installation from TeamCity
Push the package to Octopus Deploy from TeamCity Create project level parameters In TeamCity create the parameters to centralize the configuration of reused values On the project level create a system parameter for the Octopus package name including the…
Set up an application to auto-start on macOS
To set up an application to automatically start when the Macintosh computer starts Open Settings Select Users & Groups On the Login Items tab click the lock to enable changes Enter your credentials to unlock the function Click the + sign to add an…
Connect to a database on the host in a Docker container from a virtual machine
Docker is an emerging technology to launch applications without installation. The same host can run multiple Docker containers of any type, so one physical or virtual server can serve as a complete mini cloud environment. Most of the time Linux is used…
Add identity into an ASP.NET Core 2.1 MVC project and maintain full control of the Identity UI
To maintain full control over the Identity UI in an ASP.NET Core 2.1 MVC project, scaffold the identity using the Windows version of Visual Studio 2017. Scaffold the Identity Right click the web application project and select Add, New Scaffolded…
Add jQuery DataTables grid to an ASP.NET Core MVC web application
ASP.NET does not provide sortable, searchable tables. jQuery DataTables is a popular way to display user-friendly data in an ASP.NET Core MVC web application. Set up the environment Add the System.Linq.Dynamic.Core NuGet package to the web application…
The user account does not have permission to run this task
When a Scheduled task is created by another user (or SYSTEM) most of the time only that user can manually trigger the task execution. When you try to execute the scheduled task from the user interface you can get the error message: The user account does…
Error unprotecting the session cookie in an ASP.NET Core MVC application.
The new ASP.NET Core MVC framework automatically displays a message for the user to accept the application’s privacy policy. The default message is “Use this space to summarize your privacy and cookie use policy.” No cookies are saved…
Set the environment for an ASP.NET Core MVC web application
When the ASP.NET Core MVC web application starts, reads the name of the environment for an environment variable of the host computer. The compiled application contains the configuration for all supported environments, making possible to build and deploy…
Enable .NET Core Entity Framework Linq query execution
When we create a new .NET Core class it only contains the using System; reference. To enable Linq database queries in a .NET Core project, add using System.Linq; using System; using System.Linq; To enable the usage of .Include() in the Linq queries, add…
Return values to the controller in the model from the ASP.NET MVC view
When we create an ASP.NET MVC web application, the model (an object) is the easiest way to return values from the view to the controller. For the view to be able to return the values in the model, make sure the model contains properties, not fields, for…