We have our own product which was built using ASP.NET built on .NET Framework 4.0, we deployed this on 2 boxes i.e. Test and production environment.
Issue is with Test box, In one of our web page we using one JavaScript file and it has been included on page like following way,
<script language="javascript" src="../Scripts/PageDetails_JavaScript.js"> </script>
When we open this page we are getting JavaScript error like..."'TreeNodeChecked' is undefined at line..", so for trouble shooting we used F12 Developer tool bar. From this we came to know that under Script tab same JavaScript file is getting loaded but it does not contain any content i.e. it is blank. Same file we tried to browse from IIS manually and we are not getting file download option rather we are getting blank page. We double checked physical path of this file and it was present, content are also present in it which are having of 19 KB in size.
We make copy of this file at same location i.e. PageDetails_JavaScript-Copy.js and successfully able to download it through IIS. There are other files also present in this directory (under Scripts folder) and all of those are working fine.
I want to know Is there any setting at IIS level to block specific file or something like that because of this issue is coming.
Note - When we try to browse same page from production box it is working fine. Both box are having same patch level.