-
Difference Between NTLM and Kerberos?
Windows New Technology LAN Manager (NTLM) and Kerberos is a suite of security protocols offered by Microsoft to authenticate users identity and protect the integrity and confidentiality of their activity. NTLM is still supported by Microsoft, it has been replaced by Kerberos as the default authentication protocol in Windows 2000 and subsequent Active Directory (AD)…
-
ASP.Net Core getting message “The project doesn’t know how to run the profile Docker.”
Today, want to setup the Docker in my old ASP.Net Core web application. Then, I did Docker configuration manually in the Core application and run, it give me an error “The project doesn’t know how to run the profile Docker.” (I am using Visual Studio 2019) and setup the Linux based Docker in local machine.…
-
Understand the Prototype Pattern
Prototype pattern allow you to create objects by cloning existing ones. Why do we need to clone objects? 1. You may want to pass an object to some other module for processing, and you want to ensure that the original instance is not accidently tampered with in the process 2. At times creating a new…
-
Six ways to build Entity Framework (Core and EF6) applications
Based on requirement, we can design and develop better application using Entity Framework. 1) Separation of Concerns (SOC) There is a software principal called Separation of Concerns (SoC), which says that you should: A) Put code that has a similar, or strongly related functions should be grouped together [cohesion]. B) Make each group or projects…
-
ASP.NET Core Entity Framework Scaffolding Error Microsoft.EntityFrameworkCore.SqlServer
While creating MVC Controller using the scaffolding engine in Visual Studio, getting the following error ‘Microsoft.EntityFrameworkCore.SqlServer.Query.Internal.SqlServerSqlTranslatingExpressionVisitorFactory’ from assembly ‘Microsoft.EntityFrameworkCore.SqlServer, Version=3.1.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60’ does not have an implementation. As per the error message, it means that the version being used doesn’t implement Microsoft.EntityFrameworkCore.SqlServer.Query.Internal.SqlServerSqlTranslatingExpressionVisitorFactory’ method in 3.1.3.0 Solution – Step 1: We need to check the version…
-
Access Configuration from a View in ASP.NET Core
Let’s talk about the scenario, you have configured the Application Title into AppSettings.JSON 1) AppSettings.JSON To use the configuration settings, we have to make sure that the appsettings.json file is loaded to Configuration Builder, which is used to build the configuration of key/value-based settings. 2) Go to the Startup.CS file 3) ApplicationSettings class We can…
-
No assembly found containing an OwinStartupAttribute
After successfully compiled the web application, we are getting below error message: The following errors occurred while attempting to load the app. – No assembly found containing an OwinStartupAttribute. – No assembly found containing a Startup or [AssemblyName].Startup class. To disable OWIN startup discovery, add the appSetting owin:AutomaticAppStartup with a value of “false” in your…
-
Class File In App_Code Folder Not Working – ASP.NET MVC
Today, we have started to migrate the website (ASP.NET 2.0 Website) to ASP.NET MVC. As per the standard practice, we have created a class and put it inside of the App_Code folder in ASP.NET MVC 4.0. However, we cannot access it from controller. After getting some research, App_Code folder is a special ASP.NET run-time folder…
-
Could not load file or assembly ‘Owin, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f0ebd12fd5e55cc5’ or one of its dependencies. The system cannot find the file specified.
There is two possibilities: Possibility 1: You haven’t added the Owin.dll reference to the project. You can add the reference and recompile project. Possibility 2: You have a latest version of the dll (2.1.0 or higher), You can add below code to your web.config file. I’m using 3.0.1.0 so I have updated newVersion=”3.0.1.0″ <dependentAssembly> <assemblyIdentity name=”Microsoft.Owin” publicKeyToken=”31bf3856ad364e35″…
-
Convert Generic List In To DataTable
Create simple asp.net application with C#. Add new class (GenericToDataTable). using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Collections.Generic; using System.ComponentModel; using System.Reflection; public class GenericToDataTable { /// <summary> /// Default Constructor /// </summary> private GenericToDataTable() { } /// <summary> /// /// </summary> ///…