Problem getting started - exception

Jan 5, 2010 at 10:50 PM

Hi, first of all, looks awesome.

I have tried to follow the Quick Start Guide, but seems to be a small hickup.

When running the project, this exception:

{System.Reflection.TargetInvocationException: An exception occurred during the operation, making the result invalid.  Check InnerException for exception details. ---> System.Net.WebException: The remote server returned an error: NotFound. ---> System.Net.WebException: The remote server returned an error: NotFound.
   at System.Net.Browser.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)
   at System.Net.Browser.BrowserHttpWebRequest.<>c__DisplayClass5.<EndGetResponse>b__4(Object sendState)
   at System.Net.Browser.AsyncHelper.<>c__DisplayClass2.<BeginOnUI>b__0(Object sendState)
   --- End of inner exception stack trace ---
   at System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state)
   at System.Net.Browser.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
   at System.Net.WebClient.GetWebResponse(WebRequest request, IAsyncResult result)
   at System.Net.WebClient.DownloadBitsResponseCallback(IAsyncResult result)
   --- End of inner exception stack trace ---
   at System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary()
   at System.Net.DownloadStringCompletedEventArgs.get_Result()
   at Vertigo.SlideShow.XmlDataProvider.client_DownloadStringCompleted(Object sender, DownloadStringCompletedEventArgs e)
   at System.Net.WebClient.OnDownloadStringCompleted(DownloadStringCompletedEventArgs e)
   at System.Net.WebClient.DownloadStringOperationCompleted(Object arg)}

Happened here:

 

<font size="2">
		/// <summary>
		/// Handles the DownloadStringCompleted event of the client control.
		/// </summary>
		/// <param name="sender">The source of the event.</param>
		/// <param name="e">The <see cref="System.Net.DownloadStringCompletedEventArgs"/> instance containing the event data.</param>
		private void client_DownloadStringCompleted(object sender, DownloadStringCompletedEventArgs e)
		{
-->			XmlReader reader = XmlReader.Create(new StringReader(e.Result));

			while (reader.Read())
			{
				if (reader.IsStartElement() && reader.Name == "data")
				{
					Data.StartAlbumIndex = Convert.ToInt32(reader.GetAttribute("startalbumindex"), CultureInfo.InvariantCulture);
					Data.Albums = ParseAlbums(reader.ReadSubtree(), reader.GetAttribute("transition"));
				}
			}

			DataFinishedLoading(this, EventArgs.Empty);
		}
My guess is that the ressource files (images or thumbnails) could not be found.
My configuration is as follows:
		  <param name="source" value="ClientBin/Vertigo.SlideShow.xap"/>
		  <param name="onError" value="onSilverlightError" />
		  <param name="background" value="black" />
		  <param name="minRuntimeVersion" value="3.0.40818.0" />
		  <param name="autoUpgrade" value="true" />
		  <param name="initParams" value="ConfigurationProvider=LightTheme;Path=Configuration.xml,DataProvider=XmlDataProvider;Path=Data.xml" />

My data.xml files looks as this (placed in the root): 
<?xml version="1.0" encoding="utf-8" ?>
<data transition="CrossFadeTransition">
  <album
  title="Album Title #1"
      description="Album Description #1"
      source="Images/Album1.jpg">
    <slide
          title="Slide Title #1"
          description="Slide Description #1"
          source="Images/s_13.jpg"
          thumbnail="Images/a_13.jpg" />
  </album>
</data>

</font>

I have tried with locating the Image folder next to the xap file (situated in the UserBin folder), as well as in the root. Neither helps. A little help in pointing the right way would be greatly appreciated.
Hans-Henrik