I bumped my MaxRecordCount ArcGIS server parameter from its default of 500 to a larger number. The querytask returns correct number of features as expected but when the # of features to be returned is in the 55,000 to 350, 000 range the api returns a HttpWebRequest_WebException_RemoteServer Argument not found exception as in the attached file below: [ATTACH=CONFIG]16888[/ATTACH]I am not sure what the real problem is but I'm persuaded to believe that the connection closes on the QueryTask API for large (55,000-350,000) features. I have looked at the layer server configuration settings but can't find a parameter i can tweak to increase the sendTimeout of the database so that it doesn't timeout for large features.<ServerObjectConfiguration>
<Description></Description>
<Properties>
<FilePath>\\mkgistempd01\arcgisserver\services\maps\Storm_map.mxd</FilePath>
<OutputDir>c:\arcgisserver\arcgisoutput</OutputDir>
<VirtualOutputDir>http://mkgistempd01/arcgisoutput</VirtualOutputDir>
<SupportedImageReturnTypes>URL</SupportedImageReturnTypes>
<MaxImageHeight>2048</MaxImageHeight>
<MaxRecordCount>350000</MaxRecordCount>
<MaxBufferCount>1000</MaxBufferCount>
<MaxImageWidth>2048</MaxImageWidth>
<IsCached>false</IsCached>
<CacheOnDemand>false</CacheOnDemand>
<IgnoreCache>false</IgnoreCache>
<ClientCachingAllowed>true</ClientCachingAllowed>
<CacheDir>c:\arcgisserver\arcgiscache\RIVER_Storm_map</CacheDir>
<SOMCacheDir>c:\arcgisserver\arcgiscache</SOMCacheDir>
</Properties>
<Extension>
<TypeName>KmlServer</TypeName>
<Enabled>false</Enabled>
<Properties>
<ImageSize>1024</ImageSize>
<Composite>true</Composite>
<FeatureLimit>350000</FeatureLimit>
<Dpi>96</Dpi>
<UseNetworkLinkControlTag>false</UseNetworkLinkControlTag>
<MinRefreshPeriod>30</MinRefreshPeriod>
<LinkDescription></LinkDescription>
<LinkName></LinkName>
<Message></Message>
<EndPointURL>http://mkgistempd01/arcgis/services/RIVER/Storm_map/MapServer</EndPointURL>
<UseDefaultSnippets>false</UseDefaultSnippets>
</Properties>
<Info>
<WebEnabled>false</WebEnabled>
<WebCapabilities>SingleImage,SeparateImages,Vectors</WebCapabilities>
</Info>
</Extension>
<Extension>
<TypeName>MobileServer</TypeName>
<Enabled>false</Enabled>
<Properties>
</Properties>
<Info>
</Info>
</Extension>
<Extension>
<TypeName>NAServer</TypeName>
<Enabled>false</Enabled>
<Properties>
</Properties>
<Info>
</Info>
</Extension>
<Extension>
<TypeName>WCSServer</TypeName>
<Enabled>false</Enabled>
<Properties>
<CustomGetCapabilities>false</CustomGetCapabilities>
</Properties>
<Info>
</Info>
</Extension>
<Extension>
<TypeName>WFSServer</TypeName>
<Enabled>false</Enabled>
<Properties>
<CustomGetCapabilities>false</CustomGetCapabilities>
<EnableTransactions>false</EnableTransactions>
</Properties>
<Info>
</Info>
</Extension>
<Extension>
<TypeName>WMSServer</TypeName>
<Enabled>false</Enabled>
<Properties>
<CustomGetCapabilities>false</CustomGetCapabilities>
<PathToCustomGetCapabilitiesFiles></PathToCustomGetCapabilitiesFiles>
<Name>WMS</Name>
<Title></Title>
<Abstract></Abstract>
<Keyword></Keyword>
<OnlineResource></OnlineResource>
<ContactPerson></ContactPerson>
<ContactPosition></ContactPosition>
<ContactOrganization></ContactOrganization>
<AddressType></AddressType>
<City></City>
<StateOrProvince></StateOrProvince>
<PostCode></PostCode>
<Country></Country>
<ContactVoiceTelephone></ContactVoiceTelephone>
<ContactFacsimileTelephone></ContactFacsimileTelephone>
<ContactElectronicMailAddress></ContactElectronicMailAddress>
<Fees></Fees>
<AccessConstraints></AccessConstraints>
</Properties>
<Info>
<WebEnabled>false</WebEnabled>
<WebCapabilities></WebCapabilities>
</Info>
</Extension>
<Recycling>
<Start>00:00</Start>
<Interval>86400</Interval>
</Recycling>
<Info>
<WebCapabilities>Map,Query,Data</WebCapabilities>
<WebEnabled>true</WebEnabled>
</Info>
<IsPooled>true</IsPooled>
<MinInstances>1</MinInstances>
<MaxInstances>2</MaxInstances>
<InstancesPerContainer>1</InstancesPerContainer>
<WaitTimeout>60</WaitTimeout>
<IdleTimeout>1800</IdleTimeout>
<UsageTimeout>600</UsageTimeout>
<CleanupTimeout>30</CleanupTimeout>
<StartupTimeout>300</StartupTimeout>
<Isolation>high</Isolation>
<StartupType>automatic</StartupType>
</ServerObjectConfiguration>
Is there a parameter i can tweak to allow the connection to stay longer? Please any helpful suggestion will be much appreciated.Thank you!Moses