Calling Untrusted SSL HTTPS request using HttpClient give “Message=The remote certificate is invalid according to the validation procedure”

Scenario: +You want to deploy web application server (for example ASP.NET Web API) which require SSL certificate and HTTPS +You want to make a call to that server using HttpClient Problem: +You may see the following errors message when make a call to https required url using HttpClient HResult=-2146233079 Message=The…

Continue Reading Calling Untrusted SSL HTTPS request using HttpClient give “Message=The remote certificate is invalid according to the validation procedure”

Hello ASP.NET Web API

1. Create a simple ASP.NET Web API project with HTTP GET and POST method Create a simple Web API Controller like this: 2. Test the Web API using web browser or POSTMAN Navigate GET method by web browser http://localhost:3649/api/values in POSTMAN http://localhost:3649/api/values/1 in POSTMAN test HTTP POST method 3. Call…

Continue Reading Hello ASP.NET Web API

[MVC]: Migrate an existing project using ASP.NET Identity 1.0 to 2.0 Complete

Scenario: You have an existing ASP.NET MVC project that using previous version of ASP.NET Identity (v1.0.0). You want to use new features which announced in ASP.NET Identity 2.0 RTM versions: Two-Factor Authentication Account Lockout Account Confirmation Password Reset Security Stamp (Sign out everywhere) Make the type of Primary Key be…

Continue Reading [MVC]: Migrate an existing project using ASP.NET Identity 1.0 to 2.0 Complete

Logging: Using Log4Net in ASP.NET MVC 3

This article will describe how to configure logging with Log4Net in ASP.NET MVC 3 application. Firstly, Create a new ASP.NET MVC 3 Internet Application. From visual studio Tools –> Library Package Manager –> Manage NuGet Packages… In Manage NuGet Packages… windows, search Log4Net then install log4net package to your project.…

Continue Reading Logging: Using Log4Net in ASP.NET MVC 3

Logging: Using Elmah, Nuget in ASP.NET MVC 3 and Oracle database

Logging is one of the most important thing you must to thinking about when intend to building a production website. There are many many way to implement logging in a website, and it was not able to easily. So in this article, I will simplify the way to implement logging…

Continue Reading Logging: Using Elmah, Nuget in ASP.NET MVC 3 and Oracle database

Stored Procedures Paging Solution in ASP.NET MVC 2

The article Server-Side Paging with the Entity Framework and ASP.NET MVC 3 describes how to paging using Entity Framework and ASP.NET MVC 3. Using Skip() and Take() extension methods is main idea of the article. But you can’t do it if your project using Oracle database. Because EF is not…

Continue Reading Stored Procedures Paging Solution in ASP.NET MVC 2