Feb 2, 2010 at 4:08 PM
Edited Feb 2, 2010 at 4:11 PM
I'm having trouble accessing the teaserimages, likely a problem with the urls. Thumbnail images i've stored in the Resources folder of my web app and the string that is loaded into the teaserimage attribute is something like:
for a particular element.
I have extracted the data from sqlserver using the advice from a previous post for using a webservice to supply the data and subsequently convert to xml. The data is recognised fine without the teaser image attribute included, so it looks something
void webservice_GetPostcardsCompleted(object sender, GetPostcardsCompletedEventArgs e)
string host = Application.Current.Host.Source.AbsoluteUri;
host = host.Remove(host.IndexOf("/ClientBin"));
XElement _postcards = new XElement("data",
from x in e.Result
select new XElement("event",
new XAttribute("title", (x.post_name.Remove(x.post_name.Length - 19))),
new XAttribute("start", x.post_minyear.ToString()),
new XAttribute("end", x.post_maxyear.ToString()),
new XAttribute("teaserimage", (host + (x.post_thumbnail)))));
I have tried changing the teaser image to remove spaces and replace with %20 in case they were a problem.
Any suggestions for deriving from a local host?
The error message is as follows:
Error: Sys.InvalidOperationException: ImageError error #4001 in control 'ctl00_mainBody_Xaml1': AG_E_NETWORK_ERROR