打开网页时发生HTTP 404错误. [英] HTTP 404 error occured when open the web page.

查看:2246
本文介绍了打开网页时发生HTTP 404错误.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在本地主机中打开网页时看到错误,并且我修复了MicroSoft .Net FrameFrame2.
现在,我可以在Localhost中打开网站.
然后我使用FTP上传到服务器.
当我输入网址并输入首页时,显示如下错误
找不到该页面您正在寻找的页面可能已被删除,名称更改或暂时不可用.请尝试以下操作:*确保在浏览器的地址栏中显示的网站地址的拼写和格式正确. *如果通过单击链接访问此页面,请与网站管理员联系以警告他们链接格式错误. *单击上一步按钮尝试其他链接. HTTP错误404-找不到文件或目录. Internet信息服务(IIS)技术信息(适用于支持人员)*转到Microsoft产品支持服务,然后对HTTP和404进行标题搜索.*打开IIS帮助(可在IIS管理器(inetmgr)中访问),并搜索主题为网站设置",常见管理任务"和关于自定义错误消息".

[edit]标题更改为更有意义-OriginalGriff [/edit]

我的网络配置文件是

I saw a error when open the web page in local host,and I repair MicroSoft .Net FrameFrame 2.
Now I can open the website in Localhost.
and I uploaded to Server using FTP .
When I am typing the web address and enter the homepage then show a error as below
The page cannot be found The page you are looking for might have been removed, had its name changed, or is temporarily unavailable. Please try the following: * Make sure that the Web site address displayed in the address bar of your browser is spelled and formatted correctly. * If you reached this page by clicking a link, contact the Web site administrator to alert them that the link is incorrectly formatted. * Click the Back button to try another link. HTTP Error 404 - File or directory not found. Internet Information Services (IIS) Technical Information (for support personnel) * Go to Microsoft Product Support Services and perform a title search for the words HTTP and 404. * Open IIS Help, which is accessible in IIS Manager (inetmgr), and search for topics titled Web Site Setup, Common Administrative Tasks, and About Custom Error Messages.

[edit]Title changed to be more meaningful - OriginalGriff[/edit]

My web config file is

<?xml version="1.0"?>
<!--
    Note: As an alternative to hand editing this file you can use the
    web admin tool to configure settings for your application. Use
    the Website->Asp.Net Configuration option in Visual Studio.
    A full list of settings and comments can be found in
    machine.config.comments usually located in
    \Windows\Microsoft.Net\Framework\v2.x\Config
-->
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
    <appSettings>
    <add key="com.webservicex.www.sendsmsworld" value="http://www.webservicex.com/sendsmsworld.asmx"/>
    </appSettings>
    <connectionStrings>
        <add name="clientConnectionString" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=&quot;C:\Documents and Settings\Gis04\Desktop\cms\client.mdb&quot;;Jet OLEDB:Database Password=admin" providerName="System.Data.OleDb"/>
    </connectionStrings>
    <system.web>
        <!--
            Set compilation debug="true" to insert debugging
            symbols into the compiled page. Because this
            affects performance, set this value to true only
            during development.
            Visual Basic options:
            Set strict="true" to disallow all data type conversions
            where data loss can occur.
            Set explicit="true" to force declaration of all variables.
        -->
        <compilation debug="true" strict="false" explicit="true">
            <assemblies>
                <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></assemblies></compilation>
        <pages>
            <namespaces>
                <clear/>
                <add namespace="System"/>
                <add namespace="System.Collections"/>
                <add namespace="System.Collections.Specialized"/>
                <add namespace="System.Configuration"/>
                <add namespace="System.Text"/>
                <add namespace="System.Text.RegularExpressions"/>
                <add namespace="System.Web"/>
                <add namespace="System.Web.Caching"/>
                <add namespace="System.Web.SessionState"/>
                <add namespace="System.Web.Security"/>
                <add namespace="System.Web.Profile"/>
                <add namespace="System.Web.UI"/>
                <add namespace="System.Web.UI.WebControls"/>
                <add namespace="System.Web.UI.WebControls.WebParts"/>
                <add namespace="System.Web.UI.HtmlControls"/>
            </namespaces>
        </pages>
        <!--
            The <authentication> section enables configuration
            of the security authentication mode used by
            ASP.NET to identify an incoming user.
        -->
        <authentication mode="Windows"/>
        <!--
            The <customErrors> section enables configuration
            of what to do if/when an unhandled error occurs
            during the execution of a request. Specifically,
            it enables developers to configure html error pages
            to be displayed in place of a error stack trace.
        <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
            <error statusCode="403" redirect="NoAccess.htm" />
            <error statusCode="404" redirect="FileNotFound.htm" />
        </customErrors>
        -->
    </system.web>
</configuration>

推荐答案

检查您输入的内容是否与您上传的内容匹配.您是否提供文件扩展名?匹配吗?您是否已加载任何安全系统的文件?您的web.config文件是什么样的?

通过评论或编辑原始问题来回答这些问题.
Check that what you are typing matches what you uploaded. Are you providing a file extension? Does it match? Have you got the files for any security system loaded? What does your web.config file look like?

Answer these via a comment, or by editing your original question.


您需要在服务器上配置IIS才能显示您的网站.你做完了吗?

好吧,做一个简单的事情. *这只是一个测试*
在服务器上复制网站后,右键单击根文件夹并选择属性.在"Web共享"选项卡上,选择共享此文件夹".输入别名(您的网站名称),然后按确定.
现在,在任何客户端计算机上打开Web浏览器.键入http://ServerIP/WebsiteName/,然后按Enter.查看您是否可以看到自己的网站.
You need to configure your IIS on the server to show your website. Have you done that?

Okay, just do a simple thing. *This is just a test*
After you have copied the website on the server, right click on the root folder and select properties. On the web sharing tab, select share this folder. Give an alias (your website name) and press Ok.
Now open a web browser on any client machine. Type http://ServerIP/WebsiteName/ and press enter. See if you can see your website.


这篇关于打开网页时发生HTTP 404错误.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆