当我上传超过30MB的文件时,上传35%后重启上传为0% [英] When i uploading more than 30MB file, after uploading 35% restart uploading for 0%

查看:112
本文介绍了当我上传超过30MB的文件时,上传35%后重启上传为0%的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的代码项目专家,

当我在实时服务器上传30 MB文件然后文件未成功上传时,我遇到了大问题。



上传时出现问题超过30 MB文件上传和倒数开始0%后回滚率为0%。



我也试试Web.config文件更改

<?xml version =1.0?> 
<! -
注意:作为手动编辑此文件的替代方法,您可以使用
Web管理工具配置应用程序的设置。在Visual Studio中使用
Website-> Asp.Net配置选项。
完整的设置和注释列表可以在
machine.config.com中找到,通常位于
\ Windows \ Microsoft.Net\Framework\v2.x\Config
- >
< configuration>
< configSections>
< sectionGroup name =system.web.extensionstype =System.Web.Configuration.SystemWebExtensionsSectionGroup,System.Web.Extensions,Version = 3.5.0.0,Culture = neutral,PublicKeyToken = 31BF3856AD364E35>
< sectionGroup name =scriptingtype =System.Web.Configuration.ScriptingSectionGroup,System.Web.Extensions,Version = 3.5.0.0,Culture = neutral,PublicKeyToken = 31BF3856AD364E35>
< section name =scriptResourceHandlertype =System.Web.Configuration.ScriptingScriptResourceHandlerSection,System.Web.Extensions,Version = 3.5.0.0,Culture = neutral,PublicKeyToken = 31BF3856AD364E35requirePermission =falseallowDefinition = MachineToApplication/>
< sectionGroup name =webServicestype =System.Web.Configuration.ScriptingWebServicesSectionGroup,System.Web.Extensions,Version = 3.5.0.0,Culture = neutral,PublicKeyToken = 31BF3856AD364E35>
< section name =jsonSerializationtype =System.Web.Configuration.ScriptingJsonSerializationSection,System.Web.Extensions,Version = 3.5.0.0,Culture = neutral,PublicKeyToken = 31BF3856AD364E35requirePermission =falseallowDefinition = 无处不在/>
< section name =profileServicetype =System.Web.Configuration.ScriptingProfileServiceSection,System.Web.Extensions,Version = 3.5.0.0,Culture = neutral,PublicKeyToken = 31BF3856AD364E35requirePermission =falseallowDefinition = MachineToApplication/>
< section name =authenticationServicetype =System.Web.Configuration.ScriptingAuthenticationServiceSection,System.Web.Extensions,Version = 3.5.0.0,Culture = neutral,PublicKeyToken = 31BF3856AD364E35requirePermission =falseallowDefinition = MachineToApplication/>
< section name =roleServicetype =System.Web.Configuration.ScriptingRoleServiceSection,System.Web.Extensions,Version = 3.5.0.0,Culture = neutral,PublicKeyToken = 31BF3856AD364E35requirePermission =falseallowDefinition = MachineToApplication/>
< / sectionGroup>
< / sectionGroup>
< / sectionGroup>
< / configSections>
< appSettings>



< add key =DataAccessvalue =Z:\ Ronh Singh \APPConfig \ AppConstant.xml>< / add>
< add key =ReserveWordsvalue =\\192.168.1.240\comman share\Rohit Singh\APPConfig\ReserveWords.xml>< / add>
< add key =ValidationMessagevalue =\\192.168.1.240\comman share\Rohit Singh\APPConfig\ErrorMessages.xml>< / add>

<! - < add key =DataAccessvalue =http://46.4.10.3:800/Appconfig/AppConstant.xml>< / add>
< add key =ReserveWordsvalue =http://46.4.10.3:800/Appconfig/ReserveWords.xml>< / add>
< add key =ValidationMessagevalue =http://46.4.10.3:800/Appconfig/ErrorMessages.xml>< / add> - >


< add key =PLPStatusvalue =LOCAL>< / add>

< / appSettings>
< connectionStrings />
< system.web>
< sessionState mode =InProccookieless =falsetimeout =200/>

< httpRuntime maxRequestLength =2079152useFullyQualifiedRedirectUrl =falseexecutionTimeout =3600000/>
<! -
设置编译debug =true以将调试
符号插入编译页面。由于此
会影响性能,因此在开发期间将此值设置为true仅

- >
< compilation debug =true>
< assemblies>
< add assembly =System.Core,Version = 3.5.0.0,Culture = neutral,PublicKeyToken = B77A5C561934E089/>
< add assembly =System.Web.Extensions,Version = 3.5.0.0,Culture = neutral,PublicKeyToken = 31BF3856AD364E35/>
< add assembly =System.Data.DataSetExtensions,Version = 3.5.0.0,Culture = neutral,PublicKeyToken = B77A5C561934E089/>
< add assembly =System.Xml.Linq,Version = 3.5.0.0,Culture = neutral,PublicKeyToken = B77A5C561934E089/>
< / assemblies>
< / compilation>
<! -
< authentication> section启用
ASP.NET使用的安全身份验证模式的配置
来标识传入用户。
- >
< authentication mode =Windows/>
<! -
< customErrors>如果/在执行请求期间发生未处理的错误
时,该部分启用配置
。具体来说,
它使开发人员能够配置html错误页面
来代替错误堆栈跟踪。

< customErrors mode =RemoteOnlydefaultRedirect =GenericErrorPage.htm>
< error statusCode =403redirect =NoAccess.htm/>
< error statusCode =404redirect =FileNotFound.htm/>
< / customErrors>
- >
< pages enableSessionState =true>
< controls>
< add tagPrefix =aspnamespace =System.Web.UIassembly =System.Web.Extensions,Version = 3.5.0.0,Culture = neutral,PublicKeyToken = 31BF3856AD364E35/>
< add tagPrefix =aspnamespace =System.Web.UI.WebControlsassembly =System.Web.Extensions,Version = 3.5.0.0,Culture = neutral,PublicKeyToken = 31BF3856AD364E35/>
< / controls>
< / pages>
< httpHandlers>
< remove verb =*path =*。asmx/>
< add verb =*path =*。asmxvalidate =falsetype =System.Web.Script.Services.ScriptHandlerFactory,System.Web.Extensions,Version = 3.5.0.0,Culture =中性,PublicKeyToken = 31BF3856AD364E35/>
< add verb =*path =* _ AppService.axdvalidate =falsetype =System.Web.Script.Services.ScriptHandlerFactory,System.Web.Extensions,Version = 3.5.0.0, Culture = neutral,PublicKeyToken = 31BF3856AD364E35/>
< add verb =GET,HEADpath =ScriptResource.axdtype =System.Web.Handlers.ScriptResourceHandler,System.Web.Extensions,Version = 3.5.0.0,Culture = neutral,PublicKeyToken = 31BF3856AD364E35validate =false/>
< / httpHandlers>
< httpModules>
< add name =ScriptModuletype =System.Web.Handlers.ScriptModule,System.Web.Extensions,Version = 3.5.0.0,Culture = neutral,PublicKeyToken = 31BF3856AD364E35/>
< / httpModules>
< /system.web>
< system.codedom>
< compilers>
< compiler language =c#; cs; csharpextension =。cswarningLevel =4type =Microsoft.CSharp.CSharpCodeProvider,System,Version = 2.0.0.0,Culture = neutral,PublicKeyToken = b77a5c561934e089\" >
< providerOption name =CompilerVersionvalue =v3.5/>
< providerOption name =WarnAsErrorvalue =false/>
< / compiler>
< compiler language =vb; vbs; visualbasic; vbscriptextension =。vbwarningLevel =4type =Microsoft.VisualBasic.VBCodeProvider,System,Version = 2.0.0.0,Culture = neutral,公钥= b77a5c561934e089\" >
< providerOption name =CompilerVersionvalue =v3.5/>
< providerOption name =OptionInfervalue =true/>
< providerOption name =WarnAsErrorvalue =false/>
< / compiler>
< / compilers>
< /system.codedom>
<! -
在Internet
Information Services 7.0下运行ASP.NET AJAX需要system.webServer部分。对于以前版本的IIS,没有必要。
- >
< system.webServer>
< validation validateIntegratedModeConfiguration =false/>
< modules>
< remove name =ScriptModule/>
< add name =ScriptModulepreCondition =managedHandlertype =System.Web.Handlers.ScriptModule,System.Web.Extensions,Version = 3.5.0.0,Culture = neutral,PublicKeyToken = 31BF3856AD364E35/> ;
< / modules>
< handlers>
< remove name =WebServiceHandlerFactory-Integrated/>
< remove name =ScriptHandlerFactory/>
< remove name =ScriptHandlerFactoryAppServices/>
< remove name =ScriptResource/>
< add name =ScriptHandlerFactoryverb =*path =*。asmxpreCondition =integratedModetype =System.Web.Script.Services.ScriptHandlerFactory,System.Web.Extensions,Version = 3.5.0.0,Culture = neutral,PublicKeyToken = 31BF3856AD364E35/>
< add name =ScriptHandlerFactoryAppServicesverb =*path =* _ AppService.axdpreCondition =integratedModetype =System.Web.Script.Services.ScriptHandlerFactory,System.Web.Extensions,Version = 3.5.0.0,Culture = neutral,PublicKeyToken = 31BF3856AD364E35/>
< add name =ScriptResourcepreCondition =integratedModeverb =GET,HEADpath =ScriptResource.axdtype =System.Web.Handlers.ScriptResourceHandler,System.Web.Extensions,Version = 3.5.0.0,Culture = neutral,PublicKeyToken = 31BF3856AD364E35/>
< / handlers>
< /system.webServer>
< runtime>
< assemblyBinding xmlns =urn:schemas-microsoft-com:asm.v1>
< dependentAssembly>
< assemblyIdentity name =System.Web.ExtensionspublicKeyToken =31bf3856ad364e35/>
< bindingRedirect oldVersion =1.0.0.0-1.1.0.0newVersion =3.5.0.0/>
< / dependentAssembly>
< dependentAssembly>
< assemblyIdentity name =System.Web.Extensions.DesignpublicKeyToken =31bf3856ad364e35/>
< bindingRedirect oldVersion =1.0.0.0-1.1.0.0newVersion =3.5.0.0/>
< / dependentAssembly>
< / assemblyBinding>
< / runtime>
< system.serviceModel>
< bindings>
< wsHttpBinding>
< binding name =WSHttpBinding_IService1closeTimeout =00:01:00
openTimeout =00:01:00receiveTimeout =00:10:00sendTimeout =00:01: 00
bypassProxyOnLocal =falsetransactionFlow =falsehostNameComparisonMode =StrongWildcard
maxBufferPoolSize =524288maxReceivedMessageSize =65536messageEncoding =Text
textEncoding =utf-8 useDefaultWebProxy =trueallowCookies =false>
< readerQuotas maxDepth =32maxStringContentLength =8192maxArrayLength =16384
maxBytesPerRead =4096maxNameTableCharCount =16384/>
< reliableSession ordered =trueinactivityTimeout =00:10:00
enabled =false/>
< security mode =Message>
< transport clientCredentialType =WindowsproxyCredentialType =None
realm =/>
< message clientCredentialType =WindowsnegotiateServiceCredential =true
algorithmSuite =DefaultestablishSecurityContext =true/>
< / security>
< / binding>
< / wsHttpBinding>
< / bindings>
< client>
< endpoint address =http://srv-del-w-fs-o1.xqtdomain.com:130/Service1.svc
binding =wsHttpBindingbindingConfiguration =WSHttpBinding_IService1
contract =BusinessServices.IService1name =WSHttpBinding_IService1>
< identity>
< dns value =localhost/>
< / identity>
< / endpoint>
< / client>
< /system.serviceModel>
< / configuration>





请解决此问题...

解决方案

我发现这是通过Google搜索使用搜索键问题超时上传文件大于30mb



无法传输文件 - 超过30MB的网络 [ ^ ]



在基于Windows Server 2008的基础上无法上传大于28 MB的文件运行Windows SharePoint Services 3.0的计算机 [ ^ ]



当您尝试将大文件上载到Windows SharePoint Services 3.0网站上的文档库时,错误请求超时 [ ^ ]



访问运行Internet Information Services 7.0的服务器上托管的网站时出现错误消息: HTTP错误404.13 - CONTENT_LENGTH_TOO_LARGE [ ^ ]

Dear Code Project Expert,
I have big problem when i uploading 30 MB file on live server then file not uploaded successfully.

Issue in uploading More than 30 MB file uploading and Count down start for 0% to 35 % after roll back 0%.

I am also try Web.config file changes

<?xml version="1.0"?>
<!-- 
    Note: As an alternative to hand editing this file you can use the 
    web admin tool to configure settings for your application. Use
    the Website->Asp.Net Configuration option in Visual Studio.
    A full list of settings and comments can be found in 
    machine.config.comments usually located in 
    \Windows\Microsoft.Net\Framework\v2.x\Config 
-->
<configuration>
  <configSections>
    <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
      <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
        <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
        <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
          <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/>
          <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
          <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
          <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
        </sectionGroup>
      </sectionGroup>
    </sectionGroup>
  </configSections>
  <appSettings>



    <add key="DataAccess" value="Z:\Rohit Singh\APPConfig\AppConstant.xml"></add>
    <add key="ReserveWords" value="\\192.168.1.240\comman share\Rohit Singh\APPConfig\ReserveWords.xml"></add>
    <add key="ValidationMessage" value="\\192.168.1.240\comman share\Rohit Singh\APPConfig\ErrorMessages.xml"></add>

    <!--<add key="DataAccess" value="http://46.4.10.3:800/Appconfig/AppConstant.xml"></add>
    <add key="ReserveWords" value="http://46.4.10.3:800/Appconfig/ReserveWords.xml"></add>
    <add key="ValidationMessage" value="http://46.4.10.3:800/Appconfig/ErrorMessages.xml"></add>-->


    <add key="PLPStatus" value="LOCAL"></add>

  </appSettings>
  <connectionStrings/>
  <system.web>
    <sessionState mode="InProc" cookieless="false" timeout="200"  />

    <httpRuntime maxRequestLength="2079152" useFullyQualifiedRedirectUrl="false"  executionTimeout="3600000" />
    <!-- 
            Set compilation debug="true" to insert debugging 
            symbols into the compiled page. Because this 
            affects performance, set this value to true only 
            during development.
        -->
    <compilation debug="true">
      <assemblies>
        <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
        <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
        <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
      </assemblies>
    </compilation>
    <!--
            The <authentication> section enables configuration 
            of the security authentication mode used by 
            ASP.NET to identify an incoming user. 
        -->
    <authentication mode="Windows"/>
    <!--
            The <customErrors> section enables configuration 
            of what to do if/when an unhandled error occurs 
            during the execution of a request. Specifically, 
            it enables developers to configure html error pages 
            to be displayed in place of a error stack trace.

        <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
            <error statusCode="403" redirect="NoAccess.htm" />
            <error statusCode="404" redirect="FileNotFound.htm" />
        </customErrors>
        -->
    <pages  enableSessionState="true" >
      <controls>
        <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      </controls>
    </pages>
    <httpHandlers>
      <remove verb="*" path="*.asmx"/>
      <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
    </httpHandlers>
    <httpModules>
      <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    </httpModules>
  </system.web>
  <system.codedom>
    <compilers>
      <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
        <providerOption name="CompilerVersion" value="v3.5"/>
        <providerOption name="WarnAsError" value="false"/>
      </compiler>
      <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" warningLevel="4" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
        <providerOption name="CompilerVersion" value="v3.5"/>
        <providerOption name="OptionInfer" value="true"/>
        <providerOption name="WarnAsError" value="false"/>
      </compiler>
    </compilers>
  </system.codedom>
  <!-- 
        The system.webServer section is required for running ASP.NET AJAX under Internet
        Information Services 7.0.  It is not necessary for previous version of IIS.
    -->
  <system.webServer>
    <validation validateIntegratedModeConfiguration="false"/>
    <modules>
      <remove name="ScriptModule"/>
      <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    </modules>
    <handlers>
      <remove name="WebServiceHandlerFactory-Integrated"/>
      <remove name="ScriptHandlerFactory"/>
      <remove name="ScriptHandlerFactoryAppServices"/>
      <remove name="ScriptResource"/>
      <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    </handlers>
  </system.webServer>
  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
        <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
        <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
      </dependentAssembly>
    </assemblyBinding>
  </runtime>
  <system.serviceModel>
    <bindings>
      <wsHttpBinding>
        <binding name="WSHttpBinding_IService1" closeTimeout="00:01:00"
         openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
         bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard"
         maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text"
         textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
          <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
           maxBytesPerRead="4096" maxNameTableCharCount="16384" />
          <reliableSession ordered="true" inactivityTimeout="00:10:00"
           enabled="false" />
          <security mode="Message">
            <transport clientCredentialType="Windows" proxyCredentialType="None"
             realm="" />
            <message clientCredentialType="Windows" negotiateServiceCredential="true"
             algorithmSuite="Default" establishSecurityContext="true" />
          </security>
        </binding>
      </wsHttpBinding>
    </bindings>
    <client>
      <endpoint address="http://srv-del-w-fs-o1.xqtdomain.com:130/Service1.svc"
       binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IService1"
       contract="BusinessServices.IService1" name="WSHttpBinding_IService1">
        <identity>
          <dns value="localhost" />
        </identity>
      </endpoint>
    </client>
  </system.serviceModel>
</configuration>



Please Solve this issues...

解决方案

I found this via a Google search using search key problem timeout uploading file greater than 30mb

Unable-to-transfer-files-over-30MB-with-the-Web[^]

You cannot upload files that are larger than 28 MB on a Windows Server 2008-based computer that is running Windows SharePoint Services 3.0[^]

Error "Request timed out" when you try to upload a large file to a document library on a Windows SharePoint Services 3.0 site [^]

Error message when you visit a Web site that is hosted on a server that is running Internet Information Services 7.0: "HTTP Error 404.13 - CONTENT_LENGTH_TOO_LARGE"[^]


这篇关于当我上传超过30MB的文件时,上传35%后重启上传为0%的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆