Posts Tagged ‘ArcGIS Server’

The remote server returned an error: NotFound

November 9, 2012

Hello All,

I have been facing one of the error in our sliverlight application (using ESRI 2.4 API) which calls our  custom geoprocessing (using ArcGIS 10 SP4) tasks to execute huge huge process which last for more than 10 min (avg), but before that client gets timed out. This is very much annoying and lot of users complained about this. In Fiddler we are getting timeout exception in stack trace.

Server Error in ‘/ArcGIS/rest’ Application.


Request timed out.  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.HttpException: Request timed out.

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:

[HttpException (0x80004005): Request timed out.]

After going through all ESRI/Microsoft forums. I have increased a) Increased executiontime out value in web.config  b) Increased GP Tool client timeout values , but nothing worked and application fails with same mesage.  The REST tool is working fine when this executed from browser and URL is available and correct. This is an POST request FYI.

We have trying a lot on this but did not get any clue. After lot of research, we have checked restlog.txt (under C:\inetpub\wwwroot\ArcGIS\rest) folder and found below log message

Log Entry : 11/8/2012 6:06:40 AM
ERROR:Thread was being aborted. ::    at ESRI.ArcGIS.REST.GPServer.SubmitGPTaskJsonFormatter.Init()
at ESRI.ArcGIS.REST.RequestHandler.ProcessRequest()
at ESRI.ArcGIS.REST.RestHttpHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext context)
http://Server1/ArcGIS/rest/services/iExpTools/GPServer/CustomTool/execute?dummyGeom={“geometryType”:”esriGeometryPolyline”,”spatialReference”:{“wkid”:102100},”features”:[{“geometry”:{“spatialReference”:{“wkid”:102100},”paths”:[[[-100,40],[-100,45]]]},”attributes”:{}}]}&Survey=81|ALL&SCompanyName=TEST&BuyingCompanyName=OU=TEST1&f=json&

so we narrowed down that this request sent to server was aborted after some time because of some reasons. We have checked all time out property in IIS/ASP.NET but could not succeed. This becomes complex now. This entire effort consumed lot of effort because custom tool will run for 30 min and then it will fail, so we need lot of time to change one  parameter and test from the client application.  We kept on trying on this.

The process got terminated so that it couldn’t do logging in ArcGIS Server level so that exception didn’t happen inside of the service call handling. This means that the query handling thread got terminated from ASP.NET / IIS level. We have got some clue from ESRI Forum as well.

We have added <httpRuntime executionTimeout=”7200″/> in Web.config file under C:\inetpub\wwwroot\ArcGIS\rest folder and our issues are resolved. This value extended the execution time out and process ran smoothly and client application displayed the results as well.

Finally we learnt from this link  “Since ASP.NET timeout is internally implemented so that the check fires in every 15 seconds. When using the default value, the ASP.NET aborts the query thread in 110 – 125 seconds

Thanks to ESRI Forum and Antti Kajanus . Issue has been resolved successfully.

I believe ESRI will provide detailed stack trace on their REST API calls, I assume this was in their list.

Finally – Wish you a All very Happy Diwali!!!!

Please write your feedback/comments/suggestions to my email laksh.gisprog@gmail.com

Thank you

 

 

 

 

 

 

 

Advertisements

ArcGIS JavaScript API 1.5 released

October 8, 2009

Version 1.5 of the ArcGIS JavaScript API is now available! To take advantage of the new version, change your script reference to the ArcGIS JavaScript API to use v= 1.5, like this:

<script type="text/javascript" src="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=1.5" />

Version 1.5 adds:

  • Support for Firefox 3.5
  • Support for Dojo 1.3.2
  • Ability to force a mouse cursor style change
  • Optional HTTPS access of the ArcGIS JavaScript API
  • Bug fixes

For more details on these items, take a look at the What’s New in Version 1.5 document.

The ArcGIS JavaScript Extension for the Google Maps API and the ArcGIS JavaScript Extension for Microsoft Virtual Earth (now Bing Maps) were not updated at this release.

ArcGIS Server in Google Chrome

September 25, 2008

Here is an interesting thread in ESRI forum about ArcGIS Server support on Google Chrome.  Since google chrome is released, am wondering how does ESRI going to fit into new shoes. Surprisingly this post from ESRI came with an example and shows the template is not fitting. Though chrome released much later than 9.3 we hope ESRI or some professionals will provide some clues to make it fit in new browser.

http://forums.esri.com/Thread.asp?c=158&f=2272&t=264661&mc=0

ArcGIS Server on Google Chrome

ArcGIS Server on Google Chrome

Selection on SDE views – learnings

September 20, 2008

I am surprised that am unable to select the features on SDE views on ArcGIS Server.  Problem is I have created several views from SDE tables and added as layer in ArcMap using Tools—>Add XY being point layer.  I have developed tool to select features by dragging rectangle/polygon on the map; am using layer description object to show the selected features by changing its selection symbol and color.  I also had another interesting observation that I’ve used ESRI.ArcGIS.ADF.ArcGISServer.MapServerProxy .QueryFeatureIDs to get FIDset for the layer passed. It always returned entire records instead of records meeting spatial condition. I could not figure out the reason for this cause that much easily; I assumed that may be because of any projection issues so that envelope rectangle/polygon not overlaying with layer but that is the not the case.

The view which I added in mxd has OBJECTID field but which is of not type OBJECTID, hence ArcGIS does not recognize the same.  I have used another method  ESRI.ArcGIS.ADF.ArcGISServer.RecordSet to fetch the records that matching spatial condition that works fine and returns the intersected records exactly; but still selected features symbol colors not been changed. I’m till confused on this behavior.

when I opened the mxd and saw the layer properties-> Symbol Tab– ‘Show Selection Features’ pane is freezed. When I check the ESRI help it clearly says that if layer does not have ObjectID it is not possible to do any selections . Though I have created views with two tables one having field objectID is of type OBJECTID still view’s OBJECTID field type is of long integer.  I am unable to set even set unique ID field to objectID as ArcGIS does not accepts and prompts me the error message.

Either I need to create a feature class from the view and use it or I need to register as versioned . I do not want both of them since tables were updated frequently by another department; hence am restricted to keep this as table and use as a view in GIS application.

Now options (learnt from ESRI forums).

“A view can also be created in the DBMS referencing the existing layer’s row_id attribute (objectid) and then registered with ArcSDE”.

“The only way a view will support an objectid is if the source table’s objectid column is a registered rowid column for that table, *and* you use ‘sdetable -o create_view’ to create that view. I would strongly encourage you to use a geometry column in your table. Most databases support a native geometry type, which
would allow an update trigger to reposition the geometry when the coordinate column is modified.”

I have to work this and test the application again. if any one have similar experience or having idea on this let me know. Though I have worked with featureclass and other form of data; working with SDE view is still new to me. I always hear that view same as featureclass and also it same as Oracle views; but this issue makes me to think once again. This is new learning for me. This is truly challenging one for me though it would be easy one.

Looking for some replies….

Update: I have successfully created the views and able to do selections.

Walkthrough ArcGIS Server Application in .NET

July 2, 2008

Here is step by step walk through for Developing Web Application without using ESRI templates using  .NET ADF and Microsoft AJax. 

  1. Install ArcGIS Server Web ADF in your development machine.
  2. Assuming  Visual Studio 2005 Installed along with Ajax Extension (ASPAJAXExtSetup). This AjaxExtension contains controls like ‘Timer’, ‘Update Panel’ , ‘Pointer’, ‘Script Manager’, ‘Script Manager Proxy’ , ‘ Update Progress’
  3. Right Click Project in Solution Explorer and Set ‘Add ArcGIS Identity..’ if GIS Server is different from development machine.
  4. Drag and drop –> Map Resource Manager , Map, TOC controls into Default.aspx Page
  5. Set Properties to  MapResourceManager. i.e Add GIS Server, Data etc. You should be added as AGSUSer in GIS Server by the adminstrator.
  6. Right Click Map and Set MapResourceManager to ‘MapResourceManager1’
  7. Right Click TOC control and set Buddy Control to ‘Map1’
  8. In Web Config Set Debug Option to True
  9. Build the site and run the application. You can see Map Service and TOC in the web Browser.

You have successfully developed first sample on your own.

 

Securing GIS Services in 9.3

June 26, 2008

How to secure the GIS services and Web applications in ArcGIS Server 9.3

In the 9.3 release, many of common security tasks can be done in ArcGIS Server Manager. Instead of editing configuration files, use the Manager user interface to configure security for the Web GIS. Here are the tasks that can be accomplished using Manager:

• Create and manage users
• Create and manage roles/groups
• Create and manage permissions for Web services and Web applications
• Configure the stores for users, roles and permissions
• Deploy services and applications with security enabled
Managing finer-grained access to Web applications and Web services are still done through custom code in ArcGIS Server 9.3.

ArcGIS 9.3 Final Release

June 25, 2008

All set for final release of much awaited ArcGIS 9.3. Shipping will begin on June 25, 2008.

The ArcGIS 9.3 beta closes on June 30th, 2008. Here afterwards, ESRI Support Services will provide support for the final release.

We congratulate ESRI efforts on the making this product.

ESRI Javascript API is FREE

June 20, 2008

The JavaScript API’s are not part of the ArcGIS Server installation, but are being made available (for FREE!) to any JavaScript developers out on the Web. You can start using them right now with your 9.3 RC1 ArcGIS Server.

They are available at:
http://resources.esri.com/arcgisserver/index.cfm?fa=JSAPIs

The new resource centers have all of the downloads for the JavaScript API’s, Samples, SDK, and documentation.

 

Technology Migration ArcGIS Server 9.2 to 9.3

June 19, 2008

This post higlights some points on technology migration from ArcGIS Server 9.2 to 9.3. Some one might ask, “Hello ..dude..why do you want this so early ?”.  ArcGIS 9.3 is expected to release by this July. So this would be ideal period to discuss on this. This will be helpful for those who wants to develop new application in 9.3 or redevelop/migrate the existing 9.2 application or atleast curious to know about new features in 9.3.

Yet 9.2 Web ADF have not been explored fully, atleast by myself. Now 9.3 is almost ready. I guess 9.2 released in November 2006. With in 2 years ESRI came up with brand new 9.3.  Web ADF in 9.2 has been under lot of critiscm from several folks though used widely. The ADF learning path is bit hard, thats the naked truth thats the reason everyone hate using 9.2 atleast in .NET. On Other hand Java ADF in 9.2 seems good but lacks documentation. I have not heared much annoyance/comments with respect to java.  Server is not so easy as conventional IMS.  ArcGIS Server provides extensive functionalities than IMS product. It all depends on your requirement and bussiness needs.  Lets get into topic without further noise.

In General, 9.3 ADF built on the same framework in 9.2 with a number of technology and performance enhancements have been incorporated in 9.3 to provide comprehensive platform. The core object model has undergone minor (believe so) changes.  ADF (.NET) is hybrid platform- mix of server side and client side development enviroment. Basic web controls like Map, TOC and Overview has been re-engineered and scriptable now.

Your migration options depend on whether you built a Web ADF application using the Web Mapping Application template (includes applications generated by Manager) or you build a custom Web ADF application without the template.  Below matrix explains the possiblities to upgrade.

9.2 to 9.2 Migration

 Key points for developers:

  • Using ASP.NET partial postback pattern instead of client callback. If you might written lot of code for TOC, rendering by now controls will take care of all your needs. Even if required, it will be on client side
  • Customised Web ADF Javascript libraries. Night mare on Javascript is gone. Developer can get full details of script along with neat documentation.
  • Custom tasks uses partial post back
  • Shallow stateful pattern is no longer supported in 9.3.  Developers should be aware of this. Because adding/removing layers done thru pooled server objects using shallow stateful concepts. Here 9.3 HTTP hanlder (ESRI.ArcGIS.ADF.Web.UI.WebControls.MapHandler) responsible for Map draw operations.
  • Understanding of REST or Javascript API is must.

Sailent features in 9.3 :

  1. Ready made utilities for migrating from 9.2
  2. ArcGIS JavaScript Extension for the Google Maps API
  3. ArcGIS JavaScript Extension for Virtual Earth
  4. Javascript is made public, documented, JSON based, and object oriented. Makes life easy for developer.  9.3 ADF will use JSON instead of XML for it’s communications between the client and server – this alone speeds things up ~30%
  5. Integration with other Javascript frameworks – like Dojo or ExtJS. This allows much more control over how the application looks and behaves.
  6. Improved Map Control, TOC and Overview control. Number of callbacks is reduced.
  7. The resource manager can be managed in Javascript, and has lots of configuration – i.e. layer aliases, fields to show, map tips etc.
  8. Results Viewer: bi-directional highlight. The task can have different results behavior (fields, map tips etc). Kudos!
  9. Additional web controls, additional AjaxExtenders – DockExtender, HoverExpandExtender (pin window type of thing)
  10. Use of HTTP Handlers used instead of pages so the page lifecycle is avoided, so it’s faster
  11. Blending at 9.2 used a single tiling scheme. At 9.3 each resource has it’s own tiling scheme, and the “blending has been massively improved”
  12. Javascript intellisense for Visual Studio 2008.
  13. Better templates and utility to convert previous version templates.
  14. Eliminated lots of callbacks, http handlers improve performance because the control tree is not re-created and destroyed
  15. Visual studio 2008 and .NET 3.5 framework supported
  16. Out-of-box printing tool and export using Adobe Acrobat Reader (PDF)
  17. ArcGIS Image Server is now an optional extension to ArcGIS Server
  18. Integration with Arc Web services
  19. ArcSDE is fully integrated with ArcGIS Server. SDE license bundled with Server.
  20. Windows Vista Support
  21. PostgreSQL support
  22. OGC specifications
  23. Much more…..

Hear the  Latest Podcasts on ArcGIS Server 9.3 from ESRI. CLICK HERE 

To summarise ArcGIS Server 9.3 seems improved much quality and performance wise.

  • Those who are new to Server and about to start development in 9.3 then donot look back web ADF at all.
  • If you are graduating from 9.2 and coming out of Web ADF then 9.3 REST/javascript API will be solace.
  • Are you about to migrate to 9.3 then look at both pros and cons. Don’t jump.

I thank fellow bloggers Dave, James Fee, Tom and others who helped me with valuable inputs. I dare to write this post because am NOT in beta evaluation. Hence people like me who look for similar information, this post may help. If there were any mistakes/omissions/additions or want of further details, please do comment or email me.

SP5 offers IBM Portal Server ArcGIS Portlet development

April 15, 2008

ArcGIS Server 9.2 Service Pack 5 includes an enhancement to the ArcGIS Server Java ADF which provides support for IBM Portal Server ArcGIS Portlet development. This gives you the ability to create and publish GIS Mapping Portlets inside IBM Portal Server. In conjunction, SP5 includes a plug-in for the IBM Rational Application Developer (RAD) environment so that you can create and deploy those ArcGIS Portlets more efficiently. The following documents have been added related to this SP5 enhancement.

Install ArcGIS RAD plug-in

Developing ArcGIS portlet Applications in RAD

Will ESRI upload these plug-in s as zip file who don’t have internet connection. ESRI please awake!