页面加载时重置与服务器的连接... [英] Connection to server was reset while page was loading ...

查看:97
本文介绍了页面加载时重置与服务器的连接...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将文件保存到服务器文件夹中。但它没有用。

但在本地工作

i was save the file into server folder. but it not working .
but in locally working

推荐答案

你好,



我想检查并创建您正在使用System.IO命名空间的目录,该命名空间用于在本地系统上执行IO操作。这就是为什么您的代码在本地计算机上正常运行。



希望它能帮到你。
Hi there,

I think to check and create the directory you are using "System.IO" namespace which is used to perform the IO operations on your local system.Thats why your code is running properly on local machine.

Hope it will help you out.


你需要确保服务器没有相对于超时事物设置的任何东西。



我认为套接字因该连接关闭而无法进行传输。如前所述,您可以缩小数据大小。因为在本地服务器上,您不必担心文件的大小,您可以获得大量带宽(您甚至不必担心localhost上的带宽),但是在托管服务器等远程服务器上不用担心。更大的文件大小和更少的网络带宽可能会导致这些麻烦。



您可以将文件分成数据包,就像有10个文件一样,一次发送5个,下次发送5个。
You need to make sure that the server doesn't have anything set relative to the time out thing.

I believe the sockets are closed for that connection disabling the transfer. As already suggested, you can chop down the data size. Since on the local server, you don't have to worry about the size of the files, you get a lot of bandwidth (well you don't even have to worry about bandwidth on localhost) but on the remote servers like hosting server you have to worry about it. More file size and less network bandwidth can cause these troubles.

You can chop the files into packets like if there are 10 files, send 5 in one time and 5 in next time.


这篇关于页面加载时重置与服务器的连接...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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