Kesalahan HTTP 404 terjadi saat membuka halaman web.

pemrograman


Saya melihat kesalahan saat membuka halaman web di host lokal, dan saya memperbaiki MicroSoft .Net FrameFrame 2.
Sekarang saya bisa membuka website di Localhost.
dan saya upload ke Server menggunakan FTP.
Saat saya mengetik alamat web dan masuk ke beranda kemudian muncul kesalahan seperti di bawah ini
Halaman tidak dapat ditemukan Halaman yang Anda cari mungkin telah dihapus, namanya diubah, atau untuk sementara tidak tersedia. Silakan coba yang berikut ini: * Pastikan alamat situs Web yang ditampilkan di bilah alamat browser Anda dieja dan diformat dengan benar. * Jika Anda mencapai halaman ini dengan mengklik link, hubungi administrator situs Web untuk mengingatkan mereka bahwa format link salah. * Klik tombol Kembali untuk mencoba tautan lain. Kesalahan HTTP 404 – File atau direktori tidak ditemukan. Informasi Teknis Layanan Informasi Internet (IIS) (untuk personel pendukung) * Buka Layanan Dukungan Produk Microsoft dan lakukan pencarian judul untuk kata HTTP dan 404. * Buka Bantuan IIS, yang dapat diakses di IIS Manager (inetmgr), dan cari topik berjudul Pengaturan Situs Web, Tugas Administratif Umum, dan Tentang Pesan Kesalahan Khusus.

[edit]Judul diubah menjadi lebih bermakna – OriginalGriff[/edit]

File konfigurasi web saya adalah

XML
<?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>

Solusi 1

Pastikan apa yang Anda ketikkan cocok dengan apa yang Anda unggah. Apakah Anda menyediakan ekstensi file? Apakah itu cocok? Apakah Anda sudah memuat file untuk sistem keamanan apa pun? Seperti apa file web.config Anda?

Jawab ini melalui komentar, atau dengan mengedit pertanyaan awal Anda.

Solusi 2

Anda perlu mengkonfigurasi IIS di server untuk menampilkan situs web Anda. Sudahkah kamu melakukan itu?

Oke, lakukan saja hal sederhana. *Ini hanyalah ujian*
Setelah Anda menyalin situs web di server, klik kanan pada folder root dan pilih properti. Pada tab berbagi web, pilih bagikan folder ini. Berikan alias (nama website Anda) dan tekan Ok.
Sekarang buka browser web di mesin klien mana pun. Ketik http://ServerIP/WebsiteName/ dan tekan enter. Lihat apakah Anda dapat melihat situs web Anda.

コメント

タイトルとURLをコピーしました