Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8823829
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T06:27:22+00:00 2026-06-14T06:27:22+00:00

My Silverlight project uses dane.xml file, which is located in ProjectName.Web/Client.Bin/dane.xml private void ReadXML()

  • 0

My Silverlight project uses dane.xml file, which is located in ProjectName.Web/Client.Bin/dane.xml

private void ReadXML()
{
    WebClient client1 = new WebClient();
    client1.DownloadStringCompleted += new DownloadStringCompletedEventHandler(client1_DownloadStringCompleted);
    link  = new Uri("dane.xml", UriKind.Relative);
    client1.DownloadStringAsync(filePath);
}

void client1_DownloadStringCompleted(object sender, DownloadStringCompletedEventArgs e)
{
    if (e.Error != null)
    {
        MessageBox.Show(e.Error.ToString() + "\n\nURI=" + link.ToString());
        return;
    }
    // (...)
}

Everything is working fine when I run it from Visual Studio (Debug or Start without debugging). But now I’d like to start it outside VS, so I ran ProjectName.Web/ProjectNameTestPage.html – and loading dane.xml file failed, with following error from MessageBox:

Error when loading file dane.xml

System.Net.WebException: An exception occurred during a WebClient request.
—> System.NotSupportedException: The URI prefix is not recognized.
in System.Net.WebRequest.Create(Uri requestUri)
in System.Net.WebClient.GetWebRequest(Uri address)
in System.Net.WebClient.DownloadStringAsync(Uri address, Object userToken)
(…)

URI=dane.xml

What should I do to fix that?

I’ve already tried setting dane.xml in Solution Explorer as Resource and creating new Uri("ProjectName;component/dane.xml", UriKind.Relative);, but it fails when running on Visual Studio.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T06:27:23+00:00Added an answer on June 14, 2026 at 6:27 am

    Problem solved. I’ve put my site on apache server (copy ProjectName.web folder and run ProjectNameTestPage.html) and now it works.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I had a large Silverlight project with an unwieldy web.config, which used transforms against
I recently inherited a Silverlight web project that uses WCF services to handle asynchronous
I have created a Silverlight project which also contains a Web project. I have
i've got a silverlight project which uses linq to sql classes and sql server
I have a Silverlight project (in VB), which uses a (WCF RIA) Domain Service,
I have a Silverlight project that uses MVVM with Prism. I followed http://www.telerik.com/help/silverlight/patterns-and-practices-eventtocommand-prism.html I
I am working on a Silverlight project that uses Django on the server using
I have a Silverlight project that uses a WCF service that I created. My
I am currently working on a project that uses the Silverlight 3 SDK and
I have a Silverlight application which uses 2 separate databases. I have a situation

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.