问题描述:
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: The XML file E:\flyvca\web.config could not be loaded. Invalid byte was found at byte index 136.
Source Error:
[No relevant source lines]
网上的解决办法:
1、在web.config中设置:
1.1 仅对ASP.NET4.0以上有效
<configuration>
<system.web>
<pages validateRequest="false" enableEventValidation="false" viewStateEncryptionMode ="Never" />
1.2 在ASP.NET4.0版本上,
<configuration>
<system.web>
<httpRuntime requestValidationMode="2.0">
requestValidationMode只要设置成小于 4.0就可以,比如:1.0,2.0,3.0,3.9都是可以的,错误提示中指明用2.0,目的只是说明用ASP.NET 2.0的默认方式进行工作
2、服务器上 ,右键单击该文件夹“属性”,然后“安全”标签,按钮“高级”
按钮“更改权限”,选择用户,选中“使用可从此对象继承的权限替换所有子对象权限。”
3、很可能是修改了aspx.cs中的类名,但没有修改对应的aspx中的Inherits属性
我的办法:
以上的方法都没有解决我的问题。最后发现,我的服务器的空间不够了。就这么简单。