简体   繁体   English

通过FTP将文件从客户端计算机IIS上传到服务器计算机IIS

[英]File uploading via FTP from Client machine IIS to Server machine IIS

We have a asp website to upload files Client machine(website hosted in IIS) to Server machine(website hosted in IIS) using FTP. 我们有一个ASP网站,可以使用FTP将文件客户端计算机(IIS托管的网站)上载到服务器计算机(IIS托管的网站)。 Both client and server websites are different websites. 客户端和服务器网站都是不同的网站。 Our clients may use any of the windows OS (ie XP, Win 7, Win server 2003/2008). 我们的客户可以使用任何Windows操作系统(例如XP,Win 7,Win Server 2003/2008)。

While testing the file upload using FTP, we sent files in various sizes from almost all the OS. 在使用FTP测试文件上传时,我们从几乎所有操作系统发送了各种大小的文件。 Issue is, i can able to upload files only within size of 512MB through FTP (using HTML input control) from Win 7 & Win server 2008 to xp, win 7, server 2008 and if i try more 512 MB, then it throws me System.out of memory exception and in same manner only i can upload files within size of 64MB from Win XP to xp, win 7, Win server 2008 and if i try more than 64 MB, it throws me System.out of memory exception . 问题是,我可以能够仅在通过FTP 512MB的大小(用HTML输入控件)从运7赢上传文件服务器2008到XP,赢得7,Server 2008中,如果我尝试更多的512 MB,那么它抛出我的系统.out of memory异常,并且仅以相同的方式,我可以将Win XP中64MB大小的文件上传到XP,Win 7,Win Server 2008,如果我尝试超过64 MB,则会抛出System.out of memory异常

I need a two solution : 我需要两个解决方案:

1) I confused at above uploading....... why i can only upload within 64 MB file From XP to any OS?(which includes XP, Win 7, Server 2008). 1)我对上面的上传感到困惑。 but from Win 7& Win server 2008 to any OS i can upload upto 512MB files. 但是从Win 7&Win Server 2008到任何操作系统,我最多可以上传512MB文件。

2) If i try more than 512MB 0r 64MB files it throws System.out of memory exception .? 2)如果我尝试超过512MB 0r 64MB文件,则会抛出System.out of memory异常

Please advise on solving this problem. 请提出解决此问题的建议。

I have following settings in my website's web.config file, 我的网站的web.config文件中有以下设置,

    <system.web>
           <httpRuntime executionTimeout="3600" maxRequestLength="2097151" useFullyQualifiedRedirectUrl="false" requestLengthDiskThreshold="50000" />
   </system.web>

   <system.webServer>
     <security>
        <requestFiltering>
           <requestLimits maxAllowedContentLength="2147483648" />
        </requestFiltering>
     </security>
   </system.webServer>

please help me. 请帮我。

Thanks, 谢谢,

Kaviyarasan Kaviyarasan

Based on the Error/Exception, it seems that its not an issue from ASP.NET. 基于错误/异常,看来这不是来自ASP.NET的问题。 Its more of a Memory issue. 它更多的是内存问题。

Because you've already set the Execution Timeout Time and Max Content size in your web.config file. 因为您已经在web.config文件中设置了执行超时时间和最大内容大小。 So, I guess there is no problem at all. 因此,我想根本没有问题。

But if possible, try to check the Thread enter link description here . 但是,如果可能,请尝试在此处检查“线程输入”链接描述 You might get what you want. 您可能会得到想要的。 This is the same for your problem No 2. 这与您的问题2相同。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM