HTML vs ASPX on a Server

Jen 61 Reputation points

I have a 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?

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

1 answer

Sort by: Most helpful
  1. Bruce Zhang-MSFT 3,736 Reputation points

    Hi @Jen ,

    Check IIS to make sure it has installed ASP.NET. Like this:

    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