Upload large files to Web API with Javascript

We can upload large files to a REST Web API with JavaScript using FormData. Below JavaScript code snippet uploads the file selected using a standard HTML file input tag. Update the maxAllowedContentLength in web.config as per the requirement. The below snippet shows the maxAllowedContentLength set to accept upto 2GB of data. Below code snippet is…

Configuring SQL Server Email Notifications for Job Status Alerts

Email Notifications can be configured for SQL Server Jobs for Complete (Success or Failure), Success and Failure states. Step 1: Configuring Outgoing Email Account 1. Navigate to SSMS > Object Explorer > Connect to Database Engine > Root Node (server) > Management > Database Mail. First time, it may prompt as “Database Mail is not enabled, would you like to enable?” Accept…

This configuration section cannot be used at this path

In ASP.NET web.config, when you want to use a configuration which is locked at a parent level in a machine/server, you need to explicitly unlock it to use web.config for your site. Typical error would be like, “This configuration section cannot be used at this path. This happens when the section is locked at a parent…

Successful Blog?

There is a question on Quora asking “How many days will it take for a blog to get followers or famous if daily I blog?” and I started writing my opinion in a few lines on my phone which quickly went long. I thought, let me get to my blog and write my thoughts on…

Detect if Fiddler is Running!

Fiddler is an awesome tool and helps do a lot of things for a developer. And at the same time you might be a little worried about someone running Fiddler to intercept the network activity from your app. If you have used Fiddler yourself, you will know what the risk is. For instance, if the…

4 Years of Blogging!

4 Years of Blogging! Started my blog exactly 4 years ago on 10/10/2010! Blogging has taught me many things in these 4 years and is a great way of learning by sharing. It gives an immense satisfaction when someone who was stuck for hours on something, lands on my blog to find answers. It’s a…

Visual Studio Tips and Tricks

We all learn new technologies from time to time. Coders/programmers (choose your term :)) spend most of the time in Visual Studio, yet very few try to get faster with Visual Studio. Visual Studio is a lethal weapon for the developers which can do magic, only if they know how to use it to the…