duanji8887 2015-12-22 12:33
浏览 88
已采纳

上传大文件时,IIS FastCgiModule返回500

I am runnning a IIS server on a server 2008. PHP I am using is 5.6.0

Uploading small files around 1-2 mb works fine, but as soon as I am trying to upload bigger files, IIS returns a 500 error.

My php settings is looking like this:

Post_Max_Size: 800M
Max_Input_time: 300
Upload_max_filesize: 800M
File_uploads: on

There seems to be an generic error in IIS.I have tried everything and it is setup to handle large files by my web.config

<system.web>
    <globalization uiCulture="en-US" />
    <customErrors mode="Off" />
</system.web>
<system.webServer>
    <httpErrors errorMode="Detailed" />
    <security>
        <requestFiltering>
             <requestLimits maxAllowedContentLength="1000000000" />
        </requestFiltering>
    </security>
</system.webServer>

I am now testing with aspx, with this script but it fails:

<%@ Page Language="C#" %>
<!DOCTYPE html>
<script runat="server">
    protected void btn1_Click(object sender, EventArgs e)

    {

        if (upload1.HasFile)

        {

            btn1.Text = upload1.FileName + ":" + upload1.PostedFile.ContentLength;

        }

        else

        {

            btn1.Text = "No File...";

        }

    }

</script>

<html xmlns="http://www.w3.org/1999/xhtml">

<head runat="server">

    <title>IIS upload debug</title>

</head>

<body>

    <form id="form1" runat="server" enctype="multipart/form-data">

        <asp:FileUpload runat="server" ID="upload1" />

        <asp:Button runat="server" ID="btn1" OnClick="btn1_Click" Text="Start Uploading" />

    </form>



</body>

</html>

</div>
  • 写回答

1条回答 默认 最新

  • douxie0824 2015-12-30 21:27
    关注

    IIS was corrupt and needed a reinstall.

    It even fired up a Blue Screen of Death on clients, when they tried to upload stuff.

    Joakim

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥100 调查 Vitis AI 中验证 .xmodel 量化后的正确性
  • ¥30 codelite全屏时file、setting那一行消失了
  • ¥15 gazebo-rviz教程
  • ¥15 付费求做一个自助抢单插件
  • ¥15 bat批处理,关于数据复制问题
  • ¥50 同步两个不同结果的array中某些属性
  • ¥15 悬赏15远程操控解决问题
  • ¥15 CST复制的模型无法单独修改参数?
  • ¥15 前端页面想做个定时任务,但是使用requestAnimationFrame,setinterval和settimeout都不行
  • ¥15 根据以下文字信息,做EA模型图