Problem in reading kml data in openlayers

I am trying to read an KML file (point feature) and show it on a vector layer on OSM as the base map. My code seems to have a problem that does not show the features on the map. Firebug shows that it cannot find the path to kml file, gives a 404 not found error. Tried it on local machine works fine, but on server gives this error. Any help would be appreciatedā€¦ Thanks! :wink:

My code:

<script src=""></script>
      function init() {
        map = new OpenLayers.Map("map");
        var mapnik         = new OpenLayers.Layer.OSM();
        var fromProjection = new OpenLayers.Projection("EPSG:4326");   // Transform from WGS 1984
        var toProjection   = new OpenLayers.Projection("EPSG:900913"); // to Spherical Mercator Projection
        var position       = new OpenLayers.LonLat(48.69,31.345).transform( fromProjection, toProjection);
        var zoom           = 12; 
        var layer = new OpenLayers.Layer.Vector("KML", {
            strategies: [new OpenLayers.Strategy.Fixed()],
            protocol: new OpenLayers.Protocol.HTTP({
            url: "points.kml",
            format: new OpenLayers.Format.KML()
        map.addLayers([mapnik, layer]);
        map.addControl(new OpenLayers.Control.LayerSwitcher());
        map.setCenter(position, zoom );

and my kml data:

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="">
<name>Agencies test</name>
<Placemark id="2">
<name>Something here!</name>

Well. the problem is solved. Sorts out that the server did not give permission to read KML file type. That was the reason! daaaah! :stuck_out_tongue: