16/01/2021 by Nitesh

405 HTTP Verb Not Allowed – ASP.Net Core 3.1 and IIS

If you are using ASP.Net Core Web APIs and hosting it on IIS, the application running on your local machine may throw error as “405 HTTP Verb Not Allowed” when hosted on Production or UAT server. The server may be a Virtual Machine or a standard shared hosting. Or there may be a situation where…

Continue Reading »

04/01/2017 by Nitesh

Generate MachineKey using Windows PowerShell

In this post we will see how we can Generate MachineKey using Windows PowerShell from our local development machine. Problem: Many a times when a ASP.Net application is running on production server, we get an error message stating – “Validation of viewstate MAC failed. If this application is hosted by a web farm or cluster,…

Continue Reading »

22/04/2016 by Nitesh

Enable IIS Server to Serve .mp4 files through web.config file

Now, most of the websites are being developed using HTML5 and using videos on the background is an easy job using the video tag.. It is advised to serve video files using a CDN, however, in case you want to host videos from your own server, you need to configure IIS to server .mp4 files….

Continue Reading »

14/04/2016 by Nitesh

SOLUTION: Friendly URLs not working on shared server

So, you have created an awesome website in ASP.Net using the awesome friendly URLs and it is all working on your machine, you upload the code to a shared server and your Friendly URLs stop working. Ahhhh! Something that you expected to work out of the box as it works on Microsoft Azure but it…

Continue Reading »

17/08/2015 by Nitesh

301 Redirect Non WWW to WWW Using Web.config in ASP.Net

Friends, Whenever we host a domain on server, we are able to access the webpage from http://www.mydomain.com as well as http://domain.com. For SEO purposes, this is not good as Google and other search engines penalises the website as duplicate content. To resolve this, we can redirect the non-www domain to www domain.  In this post, we…

Continue Reading »

1 2