Hello All,

I am working on a virtual earth map to pull points from a database. To pull the points from my database I am attempting to use an ashx handler. All went well until I tried to load utilize my ashx handler and place the pushpins on the map. When I tried I got an error mesage Unable to load source file

my code I am using to try to load the my GEORSS feed is

var veLayerSpec = new VELayerSpecification();
veLayerSpec.Type = VELayerType.GeoRSS;
veLayerSpec.ID = 'BOL';
veLayerSpec.LayerSource = 'http://localhost/rss.ashx';
veLayerSpec.Method = 'get';

where rss.ashx is my ashx handler that handles my call to a sql database and builds the xml string.

What am I doing wrong here.

Thanks Mike

Re: Virtual Earth GEORSS feed using ashx handler


I am in the exact same boat as you are.
For me, it works fine in FireFox, however IE fails to load feed from ashx
I am using the latest version syntax.

Did you manage to solve it Plesae help anyone


Re: Virtual Earth GEORSS feed using ashx handler

Jared H

Depending on the sensitivity of your data, can you load the raw output of the call to your ashx page and post it here The GeoRSS parser in v5 is very particular about the GeoRSS spec (compared to v4). Also, are you getting any of the callback error messages or client script error alerts messages in IE (yellow exclamation in the status bar) I have no problems using the ashx approach with IE.

Re: Virtual Earth GEORSS feed using ashx handler


I am still working on solving this issue. I know my ashx handler works, but I realized that I have 10,000 points pulled from my sql database that needs to be plotted. I am going to have to use AJAX to do this. I am currently looking into AJAX to try to figure this one out.


Re: Virtual Earth GEORSS feed using ashx handler


Yes, common issue. 10,000 points = MB's of data. Just like VE streams tiles on demand I highly recommend you do the same with your data.


Sounds like a really simple series of articles without all the clustering logic is required Things like streaming the pins on demand, popup data on demand etc. Let me know what would be most useful.


Re: Virtual Earth GEORSS feed using ashx handler


Hello again,

I have yet to take care of the clustering issue, but I have had success utilizing my ashx handler to get all of my points loaded on my map in about 10 seconds.

In case anybody is interested the code is below.

I have of course used AJAX to make this posible.

rss.ashx is my ashx handler that I am using. I can paste that code if anybody is interested. I will be happy to answer any questions about this code

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script src="http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx v=5"></script>
var map = null;

function ajaxFunction(){
var xmlHttp;

{ // Firefox, Opera 8.0+, Safari
xmlHttp=new XMLHttpRequest();
}// end try Firefox

catch (e){
// Internet Explorer
xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
}// end try

catch (e){

xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
}// end try

catch (e){
alert("Your browser does not support AJAX!");
return false;
}// end catch browser does not support
}// end catch (e)
}// end catch Internet Explorer

window.status = "loading pushpin data please wait";

alert("true " + xmlHttp.readyState);
var xmlDoc = xmlHttp.responseXML;
IDNodes = xmlDoc.getElementsByTagName("Identity");
LocNodes = xmlDoc.getElementsByTagName("Location");
TitleNodes = xmlDoc.getElementsByTagName("Title");
DetNodes = xmlDoc.getElementsByTagName("Details");
LatNodes = xmlDoc.getElementsByTagName("Latitude");
LogNodes = xmlDoc.getElementsByTagName("Longitude");
window.status = "Done";
map.AttachEvent('onendzoom', OnEndZoom);
}// end else
}// xmlHttp.onreadystatechange function()

}// end ajax function

function returnNode(xmldoc){
var testNode;

}// end returnNode

function GetMap()
{ ajaxFunction()
map = new VEMap('myMap');
map.LoadMap(new VELatLong(39.89288, -89.14306), 4);
}// end GetMap

function OnEndZoom()

var currentZoom = map.GetZoomLevel();
alert("Zoom = " + currentZoom);
alert("Center = " + map.GetCenter());
if(currentZoom == 5){

alert("RSS Feed will be activated at this point");

}// end if

}// end onEndZoom


<body onload="GetMap();">
<div id='myMap' style="position:relative; width:100%; height:100%;"></div>