Topics

Web.config

C# - Get Web.Config Connection String in a Class Library
September 15, 2019 · 1 min read

If you can, pass the connection string as a parameter to the class library. Second option is System.Configuration.ConfigurationManager

IIS - Disable CORS
August 14, 2019 · 1 min read

Disable CORS for IIS 10 website by allowing all origins in two simple steps.

Azure Web App - Missing MIME types
July 11, 2019 · 2 min read

If you are seeing "404 Not Found" for .woff, .woff2 or for .json files even if they exist on your azure web app, this is the post for you.

Hunting security bugs in an old web application
October 09, 2017 · 4 min read

In this post, I am sharing one of my security bug hunting experience in an older ASP.NET web form project.

Redirect HTTPS requests to HTTP using IIS Rewrite rule in Web.Config
September 28, 2017 · 1 min read

Use the provided rewrite rule to redirect HTTPS requests to HTTP.

Redirect HTTP to HTTPS using Web.Config in IIS
September 25, 2017 · 1 min read

Use IIS Rewrite rule to redirect all HTTP request to HTTPS.

Redirect WWW to Non-WWW using Web.Config in IIS
September 19, 2017 · 1 min read

Use IIS rewrite rule to redirect (301) all www requests to non-www.

Inserting Rewrite rule in Release Config
August 12, 2017 · 2 min read

Adding rewrite rule in release config is handy so that it will not affect during Debug mode.

Redirect non-www urls to www urls
August 12, 2017 · 2 min read

When considering SEO, either you have to stick with www versioned url or non-www URLs. Having both accessible for a domain is a bad practice.