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 如何用Labview在myRIO上做LCD显示?(语言-开发语言)
  • ¥15 Vue3地图和异步函数使用
  • ¥15 C++ yoloV5改写遇到的问题
  • ¥20 win11修改中文用户名路径
  • ¥15 win2012磁盘空间不足,c盘正常,d盘无法写入
  • ¥15 用土力学知识进行土坡稳定性分析与挡土墙设计
  • ¥70 PlayWright在Java上连接CDP关联本地Chrome启动失败,貌似是Windows端口转发问题
  • ¥15 帮我写一个c++工程
  • ¥30 Eclipse官网打不开,官网首页进不去,显示无法访问此页面,求解决方法
  • ¥15 关于smbclient 库的使用