Create the first program in Arcgis Server 10, error when running:System.Web.Services.Protocols.SoapException:Error processing Server Request
More information:
Server Error in '/' Application.
Error processing Server request
Description: an Unhandled exception occurred during the execution of the current Web request. Review the stack trace for more information about the error and where it is 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) + 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 |
Search online, some people say that the data is not a problem, there is a "stackexchange", said a broken English answer, the general meaning is to copy the project to "C:\inetpub\wwwroot", and then generate ... etc... Actually didn't solve my problem.
Finally find a different solution: do not put "Mapresourcemanager" and "map" in the same "div", and "map" in a separate "div", and the map "Height" and "Width" properties are set to " 100% "can be. For example:
1 <Div>2 <Esri:mapID= "Map"runat= "Server"Height= "100%"Mapresourcemanager= "Mapresmgr"Width= "100%">3 </Esri:map>4 </Div>
ArcGIS Server "System.Web.Services.Protocols.SoapException:Error processing server Request".