我有一个ASP.NET 2.0应用程序,在本地环境中运行良好.当发布到测试服务器时,服务器上会出现间歇性错误.
以下是最常见的:
填充无效,无法删除.
例外情况详情:
源错误:
生成了未处理的异常 在执行当前 Web请求.有关 异常的来源和位置 可以使用异常 下面的堆栈跟踪.
堆栈跟踪:
[加密例外:填充是
这发生在对特定网络资源的请求上.axd请求.
我们看到的另一个错误是:
Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.描述:一个
例外情况详情:
发布表单时偶尔会发生此错误.
在你跳进go 告诉我这个错误的答案之前,请考虑一下:
- 该应用程序已部署到IIS6上的Windows Server 2003
- 它不在网络农场上.这里只使用了一个Web服务器.
- 应用程序池标识是一个自定义服务帐户,我在服务器上运行了
aspnet_regiss -ga <username>
.没有效果.