首先提示500服务器内部错误,开启asp调试之后出现以下错误
------------------------
Request 对象 错误 'ASP 0104 : 80004005' 不允许操作 /new/Edit/upload_class.asp,行 41------------------------
解决方法有两个
首先,停止以下服务: Simple Mail Transfer Protocol (SMTP) World Wide Web Publishing Service FTP Publishing Service HTTP SSL 然后,用记事本(千万别用写字板)编辑:C:\Windows\system32\inetsrv\metabase.xml \Windows\system32\inetsrv\metabase.xml 找到:AspMaxRequestEntityAllowed="204800" 默认为 204800 (200k),改成需要的!例如:99999999,保存 最后,启动上面被停止的服务,就算完成了!
默认最大为200k,可以更改,方法如下: 新建一个文本文件,内容如下: '---------------------------------------------------- set providerObj=GetObject("winmgmts:/root/MicrosoftIISv2") set vdirObj=providerObj.get("IIsWebVirtualDirSetting='W3SVC/1/ROOT'") WScript.Echo "Before: " & vdirObj.AspMaxRequestEntityAllowed vdirObj.AspMaxRequestEntityAllowed=51200000 vdirObj.Put_() WScript.Echo "Now: " & vdirObj.AspMaxRequestEntityAllowed '---------------------------------------------------- 然后保存为.vbs文件,如:vf.vbs 然后在命令行模式下,执行 cscript 文件路径及文件名,如: cscript d:\vf.vbs 这样ASP上传大小就更改为了上面设置的:51200000字节 (50兆)
转自百度知道..