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

  • Home
  • SEARCH
  • 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 6155045
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T20:22:05+00:00 2026-05-23T20:22:05+00:00

I am looking for a possible solution where I can add ShapeMap.dll as a

  • 0

I am looking for a possible solution where I can add ShapeMap.dll as a reference,
but when I try to add the reference I get an error stating:

You can’t add reference to ShapeMap.dll, as it was not build against the Silverlight runtime. Silverlight projects will only work with Silverlight Assemblies”

What do I do now?

  • 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-23T20:22:06+00:00Added an answer on May 23, 2026 at 8:22 pm

    While Silverlight code may look and smell like good old .NET-backed logic,
    the runtime for Silverlight is different from that supporting regular .NET applications.
    It is useful to think of the Silverlight runtime as a subset of the .NET runtime: Silverlight is meant to run in a “sandbox” whereby many the unsafe features such as direct access to the file system are not allowed.

    For this reason, one can only add Silverlight assemblies to a Silverlight project.

    The error you’re getting is therefore as said: the version of ShapeMap.dll you have wasn’t build for Silverlight runtime.

    There are two ways out of this situation:

    • find or build a Silverlight-backed version of the DLL
    • somehow refactor the Silverlight application so that it leverages the features of the DLL by way of WebServices (if that makes sense, for the name ShapeMap.dll indicates that this may deal with UI objects which are hard/impossible to deal with remotely)

    To get a Silverlight-backed version of the DLL:
    First choice: It may just be that you can get the binary of the Silverlight version of the assembly where you found the .NET version.
    Second choice: it may be that you can get the the source code of the [.NET targeting] DLL.
    If so you can try -and I stress “TRY”- to make a Silverlight assembly out of it. The problem may be that the source code uses .NET-only idioms/API calls and you’ll then need to convert these; several just .NET-to-SL “gotchas” can easily be converted, others are absolute roadblocks (eg. direct access to the file system, registry etc.), although, it may be possible to merely comment-out the offending sections of the code, if, somehow the Silverlight was not going to use the underlying features of the DLL.

    Now… for sake of full disclosure…
    there are a few techniques which allow “fooling” Visual Studio so that .NET assembly be accepted within a SilverLight project. See for example “Reusing .NET assemblies in Silverlight”. Beware, however, that while very insightful as to the nature of the .NET and Silverlight runtimes, and possibly useful in some cases, these techniques are undocumented and, more importantly, depending on the subset of .NET API used by the DLL, may merely allow to get over over the build-time blocking, to fall into various run-time errors (when/if the application makes calls into the DLL to methods which in turn invoke .NET-only methods of the runtime).

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

Sidebar

Related Questions

I'm looking for suggestions on possible IPC mechanisms that I can implement in my
I have been looking around a lot but i simply can't find a nice
I'm looking for a solution to add persistence to my native-code application. It should
I think my problem is a classic one, but I can't get the right
I'm just looking for ideas/suggestions here; I'm not asking for a full on solution
I'm looking for possible ways to persist the following classes. Subsonic SimpleRepository looks like
I'm looking into some possible options for unit testing C++ classes. So, short and
I'm looking into a possible feature for my little to-do application... I like the
Possible Duplicate: What features are people looking forward to in .Net 4.0 - 4.1
Is it possible to change the default text (something like looking for other iPhones

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.