net 2.0 环境下网站出错Server Error in '/' Application.

来源:百度知道 编辑:UC知道 时间:2024/07/02 06:53:37
Server Error in '/' 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: This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms.

Source Error:

Line 1: <%@ page language="C#" autoeventwireup="true" inherits="_Default, VOD.Publish" %>

Source File: /Default.aspx Line: 1

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42

将web.config打开,会看到有一行是<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" timeout="20"/>,如果没有,请在<system.web>的下一行添加,再将其中的InProc改为StateServer,保存即可
开启ASP.NET State Service服务,把它设成自动。

你机器上安装的是.NET Framework 2.0

而你的web可能是.NET Framework 1.1开发的
安装一个.net1.1
然后再iis中,选中那个目录,右击,属性,点击创建,
然后再选择"asp.net"页。在asp.net版本选择asp.net1.1