请教这个错误是什么原因,如何解决。"length cannot be less than zero. Parameter"

lansluo 2006-10-19 02:48:44

我在三个机器(A,C,D)上装了客户端,两个机器(A,B)上装了一个中间接口,一个机器上装了webservice,其中客户端完全一样,中间接口也完全一样。操作系统都是XP

客户端调用中间接口,中间接口调用webservice,返回结果给客户端

当三个客户端都调用机器B上的中间接口时,一切顺利,所有功能都完成。
当A,C,D客户端调用机器A上的中间接口时,A没有任何问题,C,D基本上就会出错。

出错信息就是 "length cannot be less than zero. Parameter"


紧急,希望大家帮助
...全文
3641 11 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
lansluo 2006-10-20
  • 打赏
  • 举报
回复
问题已经明朗化了,socket接收的问题,唉
http://community.csdn.net/Expert/topic/5097/5097212.xml?temp=.6615106
lansluo 2006-10-19
  • 打赏
  • 举报
回复
错误的机器和接口机 telnet 固定端口号不成功 ,郁闷,现在问题明朗化了
lansluo 2006-10-19
  • 打赏
  • 举报
回复
我现在属于无头苍蝇,代码都是一样的。都是安装包到不同的机器安装而已。服务器始终只有一个,只是多客户端,现在也没有多台客户端同时发送消息。每次都是不同的客户端单独发送。


茫然中
lldwolf 2006-10-19
  • 打赏
  • 举报
回复
机器不会有问题,所有的异常应该都是代码的问题,或者是考虑的不够全面
aafshzj 2006-10-19
  • 打赏
  • 举报
回复
代码有问题,尤其是在处理多服务器时,仔细检查检查吧。无法从外面帮你判断。



欢迎大家来我的博客作客:http://blog.csdn.net/aafshzj/
我正在写一系列关于AAF组件框架的文章。该框架能对开发工作提供很多帮助,并极大地提高开发效率。希望大家看一看并提出宝贵建议。
kssys 2006-10-19
  • 打赏
  • 举报
回复
仔細檢查C,D的客戶端代碼。
lansluo 2006-10-19
  • 打赏
  • 举报
回复
up
lansluo 2006-10-19
  • 打赏
  • 举报
回复
接口完全一样的,客户端也完全一样的。如果是调用webservice的时候参数不对,应该都出错才是。

另:刚才在另两台机器上装了接口,用A机器上的客户端调用,没有任何问题

也就是说,目前只是机器C,D上的客户端调用A机器上的接口会出这个
问题
myvicy 2006-10-19
  • 打赏
  • 举报
回复
是不是忘记传参数了?
smile9961 2006-10-19
  • 打赏
  • 举报
回复
調用webservice時某個參數不對...
飞不动 2006-10-19
  • 打赏
  • 举报
回复
可能是在webservice中处理字符串的时候出错了。
错误提示的意思是字符串的长度不能少于0
Delphi 7.1 Update Release Notes=======================================================This file contains important supplemental and late-breakinginformation that may not appear in the main productdocumentation, and supersedes information contained in otherdocuments, including previously installed release notes.Borland recommends that you read this file in its entirety.NOTE: If you are updating a localized version of Delphi 7, visit the Borland Registered User web site to obtain a localized readme file that may contain important late- breaking information not included in this readme file.IMPORTANT: Delphi must be closed before installing this update. =====================================================CONTENTS * INSTALLING THIS UPDATE * UPDATING LOCALIZED VERSIONS OF DELPHI 7 * KNOWN ISSUES * ISSUES ADDRESSED BY THIS UPDATE - IDE - CORE DATABASE - DATASNAP - DBGO (ADO COMPONENTS) - dbExpress - dbExpress COMPONENTS AND DB VCL - dbExpress CORE DRIVER AND METADATA - dbExpress VENDOR ISSUES - dbExpress CERTIFICATION - WEB SNAP - ACTIVEX - COMPILER - RTL - VCL - THIRD PARTY - BOLD FOR DELPHI * VERIFYING THAT THE UPDATE WAS SUCCESSFUL * FILES INSTALLED BY THIS UPDATE =======================================================INSTALLING THIS UPDATE* This update can not be applied to Delphi 7 Architect Trial version. * This update can not be removed after it is installed.* You will need the original Delphi 7 installation CD available to install this update.* To install this update from the CD, insert the CD, and launch the d7_ent_upd1.exe file appropriate for your locale.* To install this update from the Web, double-click the self-executing installation file and follow the prompts. * The Delphi 7 documentation PDF files are available on the update CD.========================================================UPDATING LOCALIZED VERSIONS OF DELPHI 7* This update can be applied only to the English version of Delphi 7. There are separate updates for the German, French and Japanese ver

111,095

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • AIGC Browser
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧