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 9266687
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T14:22:36+00:00 2026-06-18T14:22:36+00:00

Having a silverlight application, intended to implement backup restore mechanism for the end user.

  • 0

Having a silverlight application, intended to implement backup restore mechanism for the end user.

I have to get list of files in a specific directory resided in WebSite project via ria services.

By using which object I will be able to list files in specific directory of WebSite project.

Thanks for your attention.

  • 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-18T14:22:37+00:00Added an answer on June 18, 2026 at 2:22 pm

    The answer is some kind of hack. I was inspired by the method that I have used to send client IP address to the service.

    In default.aspx add this param to your silverlight object :

    <param name="initParams" value="clientIP=<%=Request.UserHostAddress%>,serverPath=<%=Server.MapPath(".")%>" />
    

    And in silverlight application :

        public string ClientIP=string.Empty;
        public string ServerPath = string.Empty;
    
    
        private void Application_Startup(object sender, StartupEventArgs e)
        {
            this.RootVisual = new MainPage();
    
            try
            {
                ClientIP = e.InitParams["clientIP"].ToString();
                ServerPath = e.InitParams["serverPath"].ToString();
            }
            catch 
            {
            }
        }
    

    Consider that I sent client ip to the xap file for logging issues. You can omit it if you care.

    and in Silverlight application call service method in this way :

     ser.GetFileList(((App)(App.Current)).ServerPath, FilesListReceived, null);
    

    And the service side :

     public List<string> GetFileList(string baseDirectory)
     {
            var result = new List<BRFile>();
    
            var files =Directory.EnumerateFiles(  baseDirectory + "\\DBBackup" );
    
            ....
     }
    

    Good Luck.

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

Sidebar

Related Questions

I have silverlight application which is having Current time and date , ia m
I have a rather simple Silverlight application, lately we've been having reports from users
I have 2 custom controls in my silverlight application and each one is having
I have a Silverlight 5 application with a bunch of methods having a signature
Having just added a new button in my web application, I get an error
We're building a Silverlight application which will be offered as SaaS. The end product
I have a Silverlight application which uses 2 separate databases. I have a situation
I have a Silverlight application that communications with an ASP.NET backend through WCF. I
We are using RadChart in silverlight application.The chart is having multi y-axis(Two) one is
I have a typical Silverlight application with a WCF service and I am using

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.