添加web service,运行代码后,总是显示未处理的SoapException

Double_Lan_2975 2010-01-28 11:02:27
如题,总是抛出异常
System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.ArgumentOutOfRangeException: Length cannot be less than zero.
Parameter name: length
at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
at AppLib.AppManager.GetUniqueList(List`1 data, List`1 sensors, Boolean& isUniqueStations) in C:\SenseWeb\src\netembed\NetEmbed\SenseWebV3.1.1\Coordinator\AppLib\AppManager.cs:line 152
at AppLib.AppManager.GetFinalListofSensors(List`1& data, List`1& sensors) in C:\SenseWeb\src\netembed\NetEmbed\SenseWebV3.1.1\Coordinator\AppLib\AppManager.cs:line 198
at AppLib.AppManager.GetDataByPolygonQueryWithAuthentication(String userName, Guid passCode, PointF[] polygon, PointF[] viewport, String searchTerms, Int32[] sensorTypeIDs) in C:\SenseWeb\src\netembed\NetEmbed\SenseWebV3.1.1\Coordinator\AppLib\AppManager.cs:line 133
at AppLib.AppManager.GetDataByPolygonQuery(PointF[] polygon, PointF[] viewport, String searchTerms, Int32[] sensorTypeIDs) in C:\SenseWeb\src\netembed\NetEmbed\SenseWebV3.1.1\Coordinator\AppLib\AppManager.cs:line 71
at Service.GetDataByPolygonQuery(PointF[] polygon, PointF[] viewport, String searchTerms, Int32[] sensorTypeIDs)
--- End of inner exception stack trace ---
是怎么回事啊?请高手们指点哈!!在线等!
...全文
227 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
shyboy8 2010-01-29
  • 打赏
  • 举报
回复
System.ArgumentOutOfRangeException: Length cannot be less than zero.
Parameter name: length 传入参数跟ws要求不匹配!!造成Server was unable to process request.
zhujiazhi 2010-01-29
  • 打赏
  • 举报
回复
length貌似这个值比0小的
KnowKjava 2010-01-29
  • 打赏
  • 举报
回复
SoapException

111,120

社区成员

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

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

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