×

While hosting .net application on IIS Server 10.0, if the .aspx files are inaccessible giving the error message as - Error 404, File or Directory not found

While hosting .net application on IIS Server 10.0, if the .aspx files are inaccessible giving the error message as - Error 404, File or Directory not found

While hosting .net application on IIS Server 10.0, if the .aspx files are inaccessible giving the error message as - Error 404, File or Directory not found


This is because while installing IIS server, the asp (Active Server pages), the auto server dynamic pages are not accessed by default. To make it accessible, follow the below steps-


      • Goto Server manager

      • Add Roles And Features

      • Next, Goto the Server Roles page, expand IIS (Web server), Check on the ASP.net(depends on the type of .net version installed. Ex. if .net 4.6 is installed, the check ASP .net 4.6) and Install.

Once done, this will start serving the .aspx files. You may need to make changes in the configuration files if any error like, Server Error in '/' Application, occurs




Trendy