api fails to load on IIS 6

850
9
11-17-2011 08:49 AM
AndreSmit
New Contributor
My app on a IIS 6 web server using javascript api v 2.5 called via CDN fails to load. Using Charles web debugger I traced to the following failure on a call to:

http://serverapi.arcgisonline.com

GET /jsapi/arcgis/2.5/js/dojo/dojox/gfx/undefined.xd.js HTTP/1.0

HTTP/1.1 404 Not Found

Any ideas? Could it be svg related?

TIA
0 Kudos
9 Replies
derekswingley1
Frequent Contributor
That is strange...does this sample load for you:  http://help.arcgis.com/en/webapi/javascript/arcgis/demos/map/map_topo.html

What browser are you using? Obviously, undefined.xd.js doesn't exist. It should be svg.xd.js, vml.xd.js, etc. depending on the capabilities of your browser.
0 Kudos
AndreSmit
New Contributor
Yes, the topographic maps loads OK. Using IE 8 browser.
0 Kudos
derekswingley1
Frequent Contributor
Since your app is probably looking for vml.xd.js but can't find it, it would probably be better to test with a sample that uses graphics. Does this sample work with your browser:  http://help.arcgis.com/en/webapi/javascript/arcgis/demos/fl/fl_hover.html

What if you save a copy of that sample and put it on your server? Does that work?
0 Kudos
AndreSmit
New Contributor
Derek

The hover sample works fine. I also copied the source to the server and was able to run it no problem. I notice that the hover sample uses vml - this mime type IS defined on the server - but the svg mime type is not. Is there a sample that uses svg perhaps, which I could test.

Thanks
0 Kudos
AndreSmit
New Contributor
Just to confirm, the app runs fine in chrome and firefox. In IE8 it is giving the following javascript error:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E)
Timestamp: Thu, 17 Nov 2011 21:13:52 UTC


Message: Exception thrown and not caught
Line: 14
Char: 17399
Code: 0
URI: https://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.5
0 Kudos
JeffPace
MVP Alum
Derek

The hover sample works fine. I also copied the source to the server and was able to run it no problem. I notice that the hover sample uses vml - this mime type IS defined on the server - but the svg mime type is not. Is there a sample that uses svg perhaps, which I could test.

Thanks


if you client is ie7/8 any graphics are rendered as vml, anything else (ie9, chrome, safari) are rendered as svg, regardless of the app.
0 Kudos
derekswingley1
Frequent Contributor
Jeff is (pretty much) right- IE before version 9 uses VML and the rest of the browsers use SVG. There are cases where canvas might be used (mobile) and silverlight. Dojo figures this out for us based the browser used to load the page.
0 Kudos
AndreSmit
New Contributor
Solved - I had and removed the following in my djConfig:


gfxRenderer: 'svg, silverlight, vml, canvas',
0 Kudos
derekswingley1
Frequent Contributor
Glad you got it sorted, and thanks for the follow up
0 Kudos