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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:39:00+00:00 2026-05-27T17:39:00+00:00

I am writing a Silverlight 4 (could be 5) app that will run out

  • 0

I am writing a Silverlight 4 (could be 5) app that will run out of browser.

I need to load data from a SQL CE database and also reference GIS data that are both stored on a local drive.

The code to do both of these things will be stored in a separate data access layer assembly as it will be shared with other solutions.

How do I use the DAL assembly from the Silverlight project? Do I have to go down the P/Invoke route or is there an easier way?

  • 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-05-27T17:39:01+00:00Added an answer on May 27, 2026 at 5:39 pm

    RickNZ is correct. A Silverlight app can’t access a non-Silverlight library (unless its a portable library) nor can they access local files without the user uploading them. I n my opinion, the following is your list practical options:

    • Rewrite the DAL in Silverlight
    • Create a simple Soap or Rest service for the DAL and have the Silverlight app access it that way
    • Stick with WPF and convert your other applications to WPF as well (if they are also OOB)

    Converting from Silverlight to WPF is typically very is since Silverlight is more or less a subset WPF. Of course this might not be an option if the other two apps are not OOB apps.

    If you want to stick with Silverlight, then I would suggest writing a quick Rest service to sit on top of your DAL so your applications can access it.

    Note: As per SteveChadbourne’s correction, you can use platform invocation, but only in Silverlight 5. As soon as your application makes use of this new feature, it must be run as a full-trust application on a Windows machine.

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

Sidebar

Related Questions

I am writing a Silverlight client that interacts with an SQL database via ASP.NET
I am writing a Silverlight application that will be both reading and writing data
I'm writing a silverlight app that queries a web service to populate a tree
I'm writing a silverlight application that resembles a shopping cart system. This app can
I have a Silverlight 4 app which pulls entities down from a database using
I am currently writing a Silverlight application that will view documents. The main panel
Is there a Silverlight control out there that will allow you to type in
I am trying to implement a Silverlight 2 client application that takes data from
Writing my first silverlight application. I need to deliver some bitmap that the customer
I am writing an application that initially will be developed as web (probably Silverlight)

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.