Refused to execute script because its MIME type (‘text/HTML’) is not executable, and strict MIME type checking is enabled.

Hi, friends recently, I was working on one task to enable bundling and minification in ASP.NET MVC4 web application that was already running on the internet. I have implemented the bundling and minification and everything was working fine on the local machine but once I deployed the application to the dev environment. Some new errors seem to appear once I run the application as shown below in figure 1. Continue reading

Dis-Allowing Images access to  web crawler in ASP.NET MVC

Introduction: This article is intended as a knowledge sharing purpose here I am trying to solve a problem which I faced in my MVC web application (This implementation can be done with any ASP.NET Technologies).

Problem Statement: We have a public facing website, as you may be aware of web crawler’s if not i.e.  A program or script which scans the www, for the purpose of web indexing or extracting email contents from the website for spamming purpose. So web crawler indexes our pages and media folders. We can restrict the indexing of media folder by disallowing the folder in Robot.txt file. This article is solely for restricting the web crawler to index the media folder content using c#. Continue reading