- 积分
- 291
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2012-4-19
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
2012-06-21 16:50:53 [INFO ] [6108][ContourMapApp.LogUtils][Write][35] - System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Enumerator.MoveNext()
at MeteoInfoC.Projections.ProjectionInfo.ToProj4String()
at MeteoInfoC.Map.ProjectionSet..ctor()
at MeteoInfoC.Map.MapView..ctor()
at MeteoInfoC.Legend.MapFrame..ctor()
at ContourMapApp.frmMain.InitializeComponent() in E:\test\ContourMapApp\frmMain.Designer.cs:line 31
at ContourMapApp.frmMain..ctor() in E:\test\ContourMapApp\frmMain.cs:line 25
at ContourMapApp.ContourApp.GetMapProvide(Boolean needPaint) in E:\test\ContourMapApp\ContourApp.cs:line 193
at ContourMapApp.ContourApp._exportMapStream() in E:\test\ContourMapApp\ContourApp.cs:line 181
2012-06-21 16:51:39 [INFO ] [6108][ContourMapApp.LogUtils][Write][35] - at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Enumerator.MoveNext()
at MeteoInfoC.Projections.ProjectionInfo.ToProj4String()
at MeteoInfoC.Map.MapView.AddVectorLayer(VectorLayer aLayer)
at MeteoInfoC.Map.MapView.AddLayer(MapLayer aLayer)
at MeteoInfoC.Legend.MapFrame.AddLayerNode(LayerNode aLN)
at ContourMapApp.frmMain.InitChinaRiverLayer() in E:\test\ContourMapApp\frmMain.cs:line 279
上面两个错误最终都是在MeteoInfoC.Projections.ProjectionInfo.ToProj4String()这个函数执行的时候出的错?
请王老师和大家分析一下这个错误的原因。
说一下我的使用场景:服务器上有1个webservice,其中一个函数是生成等值图的。
我本机上用LoadRunner模拟了10个客户端,10个客户端并发地多次请求生成等值图的函数,最终有些请求就会失败,报上面的错误。如果是1个客户端,好像不会报错。
请大家分析一下,先谢了~~~
|
|