arcgis server "System.Web.Services.Protocols.SoapException: Error processing server request".

在 Arcgis Server 10中创建第一个程序,运行的时候就报错:System.Web.Services.Protocols.SoapException: Error processing server request

详细信息:

Server Error in ‘/‘ Application.


Error processing server request

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.Services.Protocols.SoapException: Error processing server request

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace:

[SoapException: Error processing server request]
   System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) +1485877
   System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +221
   ESRI.ArcGIS.ADF.ArcGISServer.MapServerProxy.ComputeScale(MapDescription MapDescription, ImageDisplay MapImageDisplay) +63
   ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer.MapFunctionality.GetScale(Envelope extent, Int32 mapWidth, Int32 mapHeight) +276
   ESRI.ArcGIS.ADF.Web.UI.WebControls.Map.get_Scale() +346
   ESRI.ArcGIS.ADF.Web.UI.WebControls.Map.setExtent(Envelope value, Boolean addSetExtentCallbackResult) +1039
   ESRI.ArcGIS.ADF.Web.UI.WebControls.Map.set_Extent(Envelope value) +7
   ESRI.ArcGIS.ADF.Web.UI.WebControls.Map.validatePrimaryMapResource() +1468
   ESRI.ArcGIS.ADF.Web.UI.WebControls.Map._OnLoad(EventArgs e) +89
   ESRI.ArcGIS.ADF.Web.UI.WebControls.Map.OnLoad(EventArgs e) +5
   System.Web.UI.Control.LoadRecursive() +74
   System.Web.UI.Control.LoadRecursive() +146
   System.Web.UI.Control.LoadRecursive() +146
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207

网上搜一下,有人说 看数据是否有问题,还有一个在"StackExchange",说了一个broken的英文回答,大致的意思是将项目copy到"C:\inetpub\wwwroot"中,然后生成...等...其实都没解决我的问题.

最后找到个不一样的solution:不要将"MapResourceManager"和"Map"放在同一个"div",而将"Map"放在一个单独的"div",并将Map的"Height"和"Width"属性分别设置为"100%",即可.如:

1 <div>
2         <esri:Map ID="map" runat="server" Height="100%" MapResourceManager="mapResMgr" Width="100%">
3         </esri:Map>
4 </div>

 

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。