@Blog.Author(Nandip Makwana) .LearningExperience(ASP.NET, ASP.NET MVC, IIS, jQuery & Technology Surrounding it...)

September 12, 2017 comment , , ,

ASP.NET Core MVC Value Provider for Encrypted Route Parameter

Back in January 2013 & March 2013, I had published a detailed articles on this blog on how to create a custom Value Provider for ASP.NET MVC and ASP.NET 4.5 Model Binding respectively. In normal scenario it is not required to create custom Value Provider but sometime we require to process incoming request parameter values before default value providers feed it to model binder. For e.g. in an ecommerce application encrypted invoice id is passed in as a query string parameter or route parameter so that end-user can see and download invoice without login but as invoice id is encrypted they cannot manipulate it by guessing other possible value. In such case, we can access this encrypted query string or route parameter value from within MVC action method and decrypt it there and utilize decrypted values. This is fairly straightforward for relatively small application with only a handful of MVC actions accepting encrypted values. But consider a use case where you have plenty of action methods which need to accept encrypted values either passed as a query string or route parameter. Here instead of decrypting it manually from within each and every MVC actions, we can create custom Value Provider (I’ve named it as CryptoValueProvider) to do the job. CryptoValueProvider should read encrypted query string or route parameter, decrypt it and feed plain decrypted value to default model binder so that we can get direct value in action parameter. Here in this article, we will see how to create custom CryptoValueProvider in ASP.NET Core.

May 17, 2017 comment , ,

C#: The request was aborted: Could not create SSL/TLS secure channel

Last month we noticed that crawler on which I worked earlier was unable to crawl some of the HTTPS websites. Crawler was built in C# and deployed on several environments running Windows Server 2012 R2. Crawler was running fine on all environments except one where it was unable to connect with few HTTPS websites and it kept raising below exception

The request was aborted: Could not create SSL/TLS secure channel.

Here in this blog post, I will explain how I troubleshot to identify root cause of this exception and its possible solution.

November 25, 2016 comment , , ,

ASP.NET: Sharing OWIN Authentication Cookie across IIS Applications

It's been almost 3 years since I've shared my learning experience on this blog. During this past 3 years, I worked on various technology right from fixing some classic ASP pages in legacy application to ASP.NET Core, Visual Studio Team System (VSTS), Single-Sign-On (SSO) with CAS, Shibboleth, Azure AD and other related SSO technology/protocol, and much more. I'll try to post articles on some of the interesting learning experience later. But here in this post we will see how we can share OWIN authentication cookie across IIS application within same website.

February 27, 2014 comment , ,

Visual Studio 2013: New ASP.NET Project with Windows Azure Site

Yesterday Microsoft released Visual Studio 2013 Update 2 CTP2 along with Team Foundation Server 2013 Update 2 RC and TypeScript 1.0 RC. More detail of the same can be found on Somasegar's blog here.

As far as web development is concerns, this preview update includes, support for SASS, JSON project item and editor, ASP.NET Scaffolding, One ASP.NET Template changes. Complete list of web development enhancement can be found here.

As far as this blog post is concern, we will see step by step guide on how to create remote azure resource while creating new web project in Visual Studio 2013. At the end of tutorial, we will also see how we can edit any file of remote azure site from Visual Studio itself. Before we continue please download & install this preview update from here. Once you install, we are ready for step by step tutorial as follow!

November 23, 2013 comment , , ,

IIS: Enable Compression for HTTP 1.0 Request

Recently I was integrating Amazon CloudFront CDN in this blog. During the integration I found that default IIS configuration do not compress static resource when requested with HTTP 1.0. So in this quick & short post we will see how to enable static resource compression for HTTP 1.0 request in IIS.

November 17, 2013 comment , , ,

[Updated] ASP.NET Web Optimization Framework & Cookieless Domain

In last week, one reader of this blog asked on twitter how to use Scripts.Render & Styles.Render with cookieless domain. Ahh wait... Still if you have not read my original post then please first read how to setup ASP.NET & MVC 4: Cookieless domain for bundling and static resources. Earlier in that post I have explained for both static & bundled resource but in that post I have used HTML Link & Script tag to serve bundled resource from static domain. Because Scripts.Render & Styles.Render generate Script & Link tag same as requested domain whereas in case of static domain Script & Link tag should not refer to requested domain but it should refer static domain. Here in this post we will see how to configure ASP.NET Web Optimization framework to use cookieless domain with Scripts.Render & Style.Render.

Featured Content

Resources & Tools

About Nandip Makwana

Nandip Makwana is passionate about digital world and web. He completed his Masters in Computer Application in June 2011. Currently he is working as a Software Engineer. He has shown great promise and command over ASP.NET and technologies surrounding it during his academic years and professorial life...continue reading