This seems to be an IIS issue. IIS not being able to handle .osm extension. Changing the extension from .osm to .xml solved this issue. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Openlayers-osm-file-example-tp5152421p5152817.html Sent from the OpenLayers Users mailing list archive at Nabble.com.