WEB 程序 的兩個問題的解決!

1. HTTP 錯誤 404.2 - Not Found. 由於 Web 服務器上的“ISAPI 和 CGI 限制”列表設置,無法提供您請求的頁面.

解決辦法:IIS的根節點->右側“ISAPI和CGI限制”->把禁止的DotNet版本項設置爲允許。

2.Server Error in '/ICDelay' Application.


Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not create type 'Monitoring.RawDataHandler'.

Source Error:

Line 1:  <%@ WebHandler Language="C#" CodeBehind="RawDataHandler.ashx.cs" Class="Monitoring.RawDataHandler" %>

Source File: /ICDelay/Monitoring/RawDataHandler.ashx    Line: 1

經查是由於發佈的應用程序,沒有放在建立虛擬目錄的根目錄中,而是放在了目錄下面的又一個目錄,然後是 bin目錄。

解決辦法

 將要發佈的應用程序中的 bin 文件夾剪切出來,放置到上一級目錄就可以解決此問題。

標記一下。

 

發佈了494 篇原創文章 · 獲贊 19 · 訪問量 84萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章