简体   繁体   English

找不到页面-VS2012 FTP发布后的.aspx Web应用程序

[英]page not found - .aspx Webapplication after VS2012 FTP publishing

I have a small .aspx webapplication to test my server, wrote a few lines codes in it. 我有一个小的.aspx Web应用程序来测试服务器,并在其中编写了几行代码。 I try publish from Visual Studio and it says successfully published but I dont see anything on my website (if I upload an index.html, I see index.html, so there is no domain issue) 我尝试从Visual Studio中发布,并说发布成功,但是我的网站上看不到任何内容(如果我上载index.html,则看到index.html,因此没有域问题)

I tried publishing files into my desktop and uploaded from Filezilla, got the same error. 我尝试将文件发布到桌面并从Filezilla上传,但遇到了同样的错误。

Here is the process screenshare of each step. 这是每个步骤的过程屏幕共享。

在此处输入图片说明

Help kindly appreciated. 帮助表示赞赏。

I solved it: :) 我解决了::)

I added " Default.aspx " and I only have WebForm1.aspx because IIS recognizes only Default.aspx as homepage. 我添加了“ Default.aspx ”,并且我只有WebForm1.aspx,因为IIS仅将Default.aspx识别为主页。

Are you publishing to an IIS webserver? 您要发布到IIS Web服务器吗? If yes check if there are all ASP.NET features installed on the server and if the handlers for aspx pages are registered. 如果是,请检查服务器上是否安装了所有ASP.NET功能,以及是否注册了aspx页面的处理程序。 It seems like your webserver doesn't know how to deal with ASPX pages. 您的网络服务器似乎不知道如何处理ASPX页面。

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

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