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 文件夹剪切出来,放置到上一级目录就可以解决此问题。
标记一下。