Can't upload sound files in visualstudios server

雨燕双飞 提交于 2019-12-11 05:59:12

问题


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?


回答1:


In the web.config:

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

I've found lot more things you can put in httpruntime at wrox site:

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


来源:https://stackoverflow.com/questions/1067222/cant-upload-sound-files-in-visualstudios-server

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!