安装.NET 4.0后404.2错误错误、NET

2023-09-07 13:33:13 作者:劳资的睡姿决定发型

我有我已经升级到.NET 4.0的项目,但是当我试图访问它,我找回了以下错误:

I have a project which I have upgraded to .Net 4.0, but when I try to access it, I retrieve the following error:

HTTP Error 404.2 - Not Found
The page you requested could not be displayed because of the settings for the list of ISAPI and CGI restrictions on web server.
ErrorCode: 0x800704ec
Handler PageHandlerFactory-ISAPI-4.0_32bit

我需要做些额外的事情到IIS 7或应用程序池,将现有的网站到.NET 4.0的网站是什么时候?

Do I need to do something extra to the IIS 7 or APP pool, when converting an existing site to a .NET 4.0 site?

另外,如果我看的ISAPI同时安装32位的.NET 4.0中位和64位。

Also if I look at ISAPI both 32bit and 64bit of the .Net 4.0 is installed.

推荐答案

在IIS中,启用.NET 4。

In IIS, enable .NET 4.

下面是图像:

Here is image: