HTML vs ASPX on a Server

Jen 61 Reputation points
2021-08-04T12:43:52.533+00:00

I have a asp.net web application on a server.
When I run this app from my machine; all html pages come up fine but none of the aspx pages come up and display an error. All html and aspx pages are in the same folder.

"404 - File or directory not found."

What do I need to do to fix the error?

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,400 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce Zhang-MSFT 3,741 Reputation points
    2021-08-05T01:55:28.207+00:00

    Hi @Jen ,

    Check IIS to make sure it has installed ASP.NET. Like this:
    120587-2021-08-05-094645.jpg

    Which ASP.NET do you use? 2.0, 3.5 or 4.8?

    As an administrator, run the command "%systemroot%\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis -i". Then reset IIS.

    Check Url rewrite rule or application route to make sure request wasn't redirected to other.


    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our  documentation  to enable e-mail notifications if you want to receive the related email notification for this thread.

    Best regards,
    Bruce Zhang

    0 comments No comments