Internet Information Services 7.5

閿欒鎽樿

HTTP 閿欒 404.3 - Not Found

鐢变簬鎵╁睍閰嶇疆闂鑰屾棤娉曟彁渚涙偍璇锋眰鐨勯〉闈€傚鏋滆椤甸潰鏄剼鏈紝璇锋坊鍔犲鐞嗙▼搴忋€傚鏋滃簲涓嬭浇鏂囦欢锛岃娣诲姞 MIME 鏄犲皠銆?/h3>

璇︾粏閿欒淇℃伅
妯″潡StaticFileModule
閫氱煡ExecuteRequestHandler
澶勭悊绋嬪簭StaticFile
閿欒浠g爜0x80070032
璇锋眰鐨?URLhttp://192.168.2.61:80/pages/message/message_edit.aspx
鐗╃悊璺緞D:\shaoshidz.com\pages\message\message_edit.aspx
鐧诲綍鏂规硶鍖垮悕
鐧诲綍鐢ㄦ埛鍖垮悕
鏈€鍙兘鐨勫師鍥?
  • 鍙兘鏄己灏戝鐞嗙▼搴忔槧灏勩€傞粯璁ゆ儏鍐典笅锛岄潤鎬佹枃浠跺鐞嗙▼搴忓皢澶勭悊鎵€鏈夊唴瀹广€?/li>
  • 鎮ㄨ浣跨敤鐨勫姛鑳藉彲鑳藉皻鏈畨瑁呫€?/li>
  • 娌℃湁涓虹綉绔欐垨搴旂敤绋嬪簭鍚敤鐩稿簲鐨?MIME 鏄犲皠銆?璀﹀憡: 璇蜂笉瑕佷负鐢ㄦ埛涓嶅簲涓嬭浇鐨?.ASPX 椤垫垨 .config 鏂囦欢绛夊唴瀹瑰垱寤?MIME 鏄犲皠銆?
  • 濡傛灉鏈畨瑁?ASP.NET銆?/li>
鍙皾璇曠殑鎿嶄綔:
  • 鍦?system.webServer/handlers 涓?
    • 纭繚鏄犲皠浜嗗綋鍓嶉〉鎵€闇€鐨勫鐞嗙▼搴忋€?/li>
    • 璇风壒鍒敞鎰忓墠鎻?渚嬪锛宺untimeVersion銆乸ipelineMode銆乥itness)骞跺皢杩欎簺鍓嶆彁涓庡簲鐢ㄧ▼搴忔睜鐨勮缃繘琛屾瘮杈冦€?/li>
    • 璇风壒鍒敞鎰忔墍闇€澶勭悊绋嬪簭琛屼腑鐨勪功鍐欓敊璇€?/li>
  • 璇风‘璁よ浣跨敤鐨勫姛鑳藉凡缁忓畨瑁呫€?/li>
  • 纭鍚敤浜?MIME 鏄犲皠锛屾垨浣跨敤鍛戒护琛屽伐鍏?appcmd.exe 涓虹綉绔欐坊鍔?MIME 鏄犲皠銆?
    1. 瑕佽缃?MIME 绫诲瀷锛岃浣跨敤浠ヤ笅璇硶: %SystemRoot%\windows\system32\inetsrv\appcmd set config /section:staticContent /+[fileExtension='string',mimeType='string']
    2. 鍙橀噺 fileExtension 瀛楃涓叉槸鏂囦欢鎵╁睍鍚嶏紝鍙橀噺 mimeType 瀛楃涓叉槸鏂囦欢绫诲瀷璇存槑銆?/li>
    3. 渚嬪锛岃涓烘墿灞曞悕涓衡€?xyz鈥濈殑鏂囦欢娣诲姞 MIME 鏄犲皠: appcmd set config /section:staticContent /+[fileExtension='.xyz',mimeType='text/plain']
    璀﹀憡: 璇峰湪纭鎮ㄧ殑 Web 鏈嶅姟鍣ㄩ渶瑕佹 MIME 鏄犲皠涔嬪悗鍐嶅皢鍏舵坊鍔犲埌鍒楄〃涓€傞厤缃枃浠?濡?.CONFIG)鎴栧姩鎬佽剼鏈〉(濡?.ASP 鎴?.ASPX)涓嶅簲鐩存帴涓嬭浇锛屽簲濮嬬粓閫氳繃澶勭悊绋嬪簭鏉ュ鐞嗐€傛湁鏃朵細浣跨敤鍏朵粬鏂囦欢(濡傛暟鎹簱鏂囦欢鎴?.XML 鎴?.MDF 绛夌敤浜庡瓨鍌ㄩ厤缃殑鏂囦欢)鏉ュ瓨鍌ㄩ厤缃俊鎭€傝鍏堢‘璁ゅ鎴风鑳藉惁涓嬭浇杩欎簺绫诲瀷鐨勬枃浠讹紝鐒跺悗鍐嶅惎鐢ㄨ繖浜涙枃浠躲€?
  • 瀹夎 ASP.NET銆?/li>
  • 鍒涘缓璺熻釜瑙勫垯浠ヨ窡韪 HTTP 鐘舵€佷唬鐮佺殑澶辫触鐨勮姹傘€傛湁鍏充负澶辫触鐨勮姹傚垱寤鸿窡韪鍒欑殑璇︾粏淇℃伅锛岃鍗曞嚮姝ゅ銆?
閾炬帴鍜屾洿澶氫俊鎭?/legend> 褰撴墍璇锋眰 URL 鐨勬枃浠舵墿灞曞悕鏄拡瀵规湭鍦ㄦ湇鍔″櫒涓婇厤缃殑 MIME 绫诲瀷鏃讹紝渚夸細鍙戠敓姝ら敊璇€傛偍鍙互涓哄姩鎬佽剼鏈〉銆佹暟鎹簱鎴栭厤缃枃浠朵互澶栫殑鏂囦欢鐨勬枃浠舵墿灞曞悕娣诲姞 MIME 绫诲瀷銆傝繖浜涙枃浠剁被鍨嬩娇鐢ㄤ竴涓鐞嗙▼搴忔潵澶勭悊銆傛偍涓嶅簲鍏佽鐩存帴涓嬭浇鍔ㄦ€佽剼鏈〉銆佹暟鎹簱鎴栭厤缃枃浠躲€?

鏌ョ湅鏇村淇℃伅 »