本文介绍了无法在VisualStudios服务器中上传声音文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我尝试上传声音文件IO时,都会出现错误页面加载时重置了与服务器的连接".声音文件是5.58mb,一个.OGG.我的服务器是Visual Studios 9(2008).表单使用enctype ="multipart/form-data".我觉得这可能是文件大小限制,但我不知道在哪里可以更改文件长度.

Whenever I try to upload a sound file IO get the error "The connection to the server was reset while the page was loading.". The sound file is 5.58mb, an .OGG. My server is visual studios 9 (2008). The form uses enctype="multipart/form-data". I have a feeling it may be a filesize limit but I dont know where to change the file length allowed.

如何修复页面加载时重置了与服务器的连接".我的代码有问题吗?

How do I fix a "The connection to the server was reset while the page was loading." problem in my code?

推荐答案

在web.config中:

In the web.config:

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

我在 wrox 网站:

     <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" />

这篇关于无法在VisualStudios服务器中上传声音文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-29 00:51