简体   繁体   English

为什么我的aspx出现404错误?

[英]Why am I getting a 404 error for aspx?

I inherited a website from another developer. 我从另一个开发人员那里继承了一个网站。 I was told it uses .NET 3.5. 有人告诉我它使用.NET 3.5。 It runs fine in Visual Studio, but if I try to run it in IIS, I get a 404 error. 它可以在Visual Studio中正常运行,但是如果我尝试在IIS中运行它,则会收到404错误。 The strange part is, if I put an html or a "Hello World" aspx file in the website root, IIS is able to return the page perfectly fine. 奇怪的是,如果我在网站根目录中放置了html或“ Hello World” aspx文件,则IIS可以很好地返回页面。 I only get 404 errors on pages that were part of the original site. 在原始网站的一部分页面上,我只会收到404错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM