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

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

报告相同问题?

悬赏问题

  • ¥15 maixpy训练模型,模型训练好了以后,开发板通电会报错,不知道是什么问题
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 有没有帮写代码做实验仿真的
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥30 vmware exsi重置后登不上
  • ¥15 c++头文件不能识别CDialog
  • ¥15 Excel发现不可读取的内容