HTTP Error 404 File or directory not found

HTTP Error 404 File or directory not found

1. you are trying to access extensions which are not registered in IIS or webserver.
To register your custom extensions open web server and add MIME type with appropriate type.

2.  you installed the IIS 6.0 and framework 2.0 on windows 2003 operating system. After deploying the web you observed that web is
responding an error with 404.
  By default, once you installed the IIS. It want not allow to run or web pages or CGI, perl etc.
you need to allow them to fix this error. You need to open IIS 6.0 and find the node called Web services extensions.
In right pen you can allow or prohibit the access to 2.0 or CGI.
For more information you can refer below link

or you can use support forum at

The default IIS settings will allow you to only see the Static pages.

Another reason for file or directory not found is, you don't have configured correct runtime for web. To configure runtime you need to execute aspnet_regiis found at appropriate version of .net framework.
For 64 bit machine look at Framework64 folder and for 32 bit look at Framework folder.




C# Delete All Files In File HandlingIt is an error to use a section registered as allowDefinition3dMachineToApplication beyond application level This error can be caused by a virtual directory not being configured as an application in IISError The SSIS Runtime has failed to start the distributed transaction due to error 0x8004D01B The Transaction Manager is not available The DTC transaction failed to start This could occur because the MSDTC Service is not runningCould not load file or assembly SystemServiceModelDomainServicesHosting Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35 or one of its dependencies The system cannot find the file delete file file on Server and File UploadC#-move files from folders(c#) write to text fileC# Get File SizeC# Create Directory


My name is Satalaj, but people call me Sat. Here is my homepage: . I live in Pune, PN and work as a Software Engineer. I'm former MVP in year 2010.
Disclaimer: Views or opinion expressed here are my personal research and it has nothing to do with my employer. You are free to use the code, ideas/hints in your projects. However, you should not copy and paste my original content to other web sites. Feel free to copy or extend the code.
If you want to fight with me, this website is not for you.

I'm Satalaj.