【问题标题】:Can't upload sound files in visualstudios server无法在 visualstudios 服务器中上传声音文件
【发布时间】:2010-11-07 05:20:40
【问题描述】:

每当我尝试上传声音文件时,IO 都会收到错误“页面加载时与服务器的连接已重置。”。声音文件为 5.58mb,一个 .OGG。我的服务器是视觉工作室 9 (2008)。表单使用 enctype="multipart/form-data"。我感觉这可能是文件大小限制,但我不知道在哪里更改允许的文件长度。

如何解决“页面加载时与服务器的连接已重置”的问题。我的代码有问题?

【问题讨论】:

    标签: asp.net upload


    【解决方案1】:

    在 web.config 中:

      <system.web>
           <httpRuntime  maxRequestLength="1048576" executionTimeout="3600" />
            <sessionState timeout="60" />
      </system.web>
    

    我在wrox 站点找到了更多可以放入 httpruntime 的内容:

         <httpRuntime
         executionTimeout="110" 
         maxRequestLength="4096" 
         requestLengthDiskThreshold="80" 
         useFullyQualifiedRedirectUrl="false" 
         minFreeThreads="8" 
         minLocalRequestFreeThreads="4" 
         appRequestQueueLimit="5000" 
         enableKernelOutputCache="true" 
         enableVersionHeader="true" 
         requireRootedSaveAsPath="true" 
         enable="true" 
         shutdownTimeout="90" 
         delayNotificationTimeout="5" 
         waitChangeNotification="0" 
         maxWaitChangeNotification="0" 
         enableHeaderChecking="true" 
         sendCacheControlHeader="true" 
         apartmentThreading="false" />
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-01-28
      • 2013-07-23
      • 2018-03-06
      • 2020-10-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-01-15
      相关资源
      最近更新 更多