本文介绍了打开网页时发生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>

推荐答案



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

08-22 21:19
查看更多