更新文档时出现缓冲错误

编程入门 行业动态 更新时间:2024-10-23 07:31:48
本文介绍了更新文档时出现缓冲错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

在上载文档时,它已在本地计算机上正确上载,但是当我在服务器端检查相同功能时,首先上载文档&单击添加按钮时,它将缓冲很长时间.我检查了错误日志文件,因为它在此行上生成了错误 受保护的void ErrorMsg_ServerValidate(对象源,ServerValidateEventArgs args) { 在服务器端检查时,

At the time of uploading Documents it uploaded properly at locally on machine but when i am checking it on server side same functionality first upload documents & Click on Add Button at the time it will buffer long time. i was checked error log file in that it was generated error on this line protected void ErrorMsg_ServerValidate(object source, ServerValidateEventArgs args) {

//on this line error occure when checking on server side string fileName = Functions.ToString(fileUpload.PostedFile.FileName); ErrorMsg.Text = ""; if (fileUpload.Value != "") { pGotFile = true; pFileExt = GetExtension(fileUpload.PostedFile.FileName).ToLower(); pFilePost = fileUpload.PostedFile; if (pFileExt == ".pdf") { Ind = true; } if (!Ind) { args.IsValid = false; ErrorMsg.Text = "The file format you specified is not supported"; return; } if (fileUpload.PostedFile.ContentLength >= Functions.ToInt32(Config.Get("SplitterDocUploadValidationSize"))) { args.IsValid = false; ErrorMsg.Text = Functions.ToString(Config.Get("SplitterDocUploadValidationMessage")); return; } if (string.IsNullOrEmpty(fileName)) { fileName = System.IO.Path.GetFileName(fileUpload.PostedFile.FileName); } else { fileName = fileName + pFileExt; } } else { pGotFile = false; if (pRequired) { args.IsValid = false; ErrorMsg.Text = "Please select the document to upload"; } } }

它在本地计算机上可以正常工作,但在服务器端却被缓冲了很长时间.

its work fine on local machine but on server side it was just buffered long time . idea on that suggest.

推荐答案

根据定义,它在本地更快.在互联网上速度较慢,这是您连接速度的问题. It is quicker locally, by definition. It''s slower across the internet, where your connection speed is the issue.

更多推荐

更新文档时出现缓冲错误

本文发布于:2023-11-28 10:12:21,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1641984.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:错误   文档

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!