We are excited to announce that the IIS.NET Forums are moving to the new Microsoft Q&A experience. Learn more >

404 Error on .asp file [Answered]RSS

3 replies

Last post Sep 25, 2017 07:20 PM by Lucky_

  • 404 Error on .asp file

    Sep 22, 2017 09:54 PM|Lucky_|LINK

    I am migrating some simple asp and asp.net apps from Server 2008R2 to a fresh install of Server 2016.

    I did the following:

    • Installed IIS and added .NET 3.5 as a feature.
    • Copied an app folder from old server to c:\inetpub\wwwroot\myappfolder
    • Granted full rights to the above folder for everyone (just for initial setup/testing purposes)
    • In IIS, I set the Default Application Pool .NET CLR Version to .NET CLR Version v.2.0.50727
    • I converted the app folder into an application using the default application pool

    When I'm on the server, I'm able to right-click on the application and select Manage Application->Browse and it works great. http://webserver/myappfolder/Default.asp works great.

    However when I'm on a client computer and try to visit http://webserver/myappfolder or even http://webserver/myappfolder/Default.asp I receive a 404 error. I have tested a variant of http://webserver/myappfolder/test.png and it works great. It doesn't appear to be a permissions/bindings/dns issue, but for some reason it won't execute an asp file when a client is accessing.

    Any ideas on how to resolve?

  • Re: 404 Error on .asp file

    Sep 23, 2017 04:46 PM|Paul Lynch|LINK

    Paul Lynch
  • Re: 404 Error on .asp file

    Sep 25, 2017 03:35 AM|Yuk Ding|LINK

    Hi Lucky,

    What the substatus code is? 404.0 or 404.3? Please check the IIS log.Just ensure the ASP module has been installed in turn windows features on or off ->world wide web service->application development features->ASP has been enabled. Secondly, just ensure the file is displayed in myappfolder and user has permission to access the file. If it is not a URL location issue, you only need to check the IIS log and provide the substatus code.

    Best Regards,

    Yuk Ding

    Yuk Ding

    MSDN Community Support
    Please remember to "Mark as Answer" the responses that resolved your issue.
  • Re: 404 Error on .asp file

    Sep 25, 2017 07:20 PM|Lucky_|LINK

    Thank you Paul and Yuk. I followed Paul's links and learned how to use the log to identify the substatus code. It was 404.3. I followed Yuk's advice and turned on ASP. This solved the problem.

    Thank you both!