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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T09:21:50+00:00 2026-05-18T09:21:50+00:00

I have an HTTP Handler in an ASP.Net project and wanted to produce an

  • 0

I have an HTTP Handler in an ASP.Net project and wanted to produce an image based upon a Silverlight User Control rendered out as a bitmap.

However, in the ProcessRequest, when I try to instantiate any Xaml control, I get the following exception….

{“The type initializer for
‘MS.Internal.JoltHelper’ threw an
exception.”}

… with the following stacktrace …

at
MS.Internal.JoltHelper.get_ThreadID()
at
MS.Internal.XcpImports.CheckThread()
at
System.Windows.DependencyObject..ctor(UInt32
nativeTypeIndex, IntPtr constructDO)
at
System.Windows.Controls.UserControl..ctor()
at CaseCard..ctor() in
C:!WORKING_FOLDER\Trunk\ProActive\ProActive.UI\CaseCard.xaml.vb:line
6 at ServiceLocator.GetCard() in
C:!WORKING_FOLDER\Trunk\ProActive\ProActive.UI\ServiceLocator.vb:line
20 at
ProActive.Host.ImageGeneratorHandler.ProcessRequest(HttpContext
context) in
c:!WORKING_FOLDER\Trunk\ProActive\ProActive.Host\App_Code\ImageGeneratorHandler.cs:line
10 at
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at
System.Web.HttpApplication.ExecuteStep(IExecutionStep
step, Boolean& completedSynchronously)

… and the inner exception is this …

{“Could not load file or assembly
‘System.Xml, Version=2.0.5.0,
Culture=neutral,
PublicKeyToken=7cec85d7bea7798e’ or
one of its dependencies. The system
cannot find the file
specified.”:”System.Xml,
Version=2.0.5.0, Culture=neutral,
PublicKeyToken=7cec85d7bea7798e”}

Now,..I inherited this project a couple of months ago and it’s ‘in awful condition. I’m battling to get it back on track but there are some real issues somewhere so it’s entirely possible that something is environmentally amiss.

That said, I’m starting to wonder if this is possible since Silverlight runs on a totally different framework. Do I really have to go back to GDI+ to get this done?

Any and all help is greatly appreciated.

  • 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-18T09:21:51+00:00Added an answer on May 18, 2026 at 9:21 am

    The reason this doesn’t work is because your ASP code is running in the context of the full .NET framework and while trying to instantiate Silverligt control – just like the exception says – the assembly System.Xml with the version 2.0.5.0 is not loadable/found.

    Note the version: 2.0.5.0. All of the Silverlight core DLLs have this version instead of ‘normal’ .NET version like 2.0.0.0.

    This is no accident – Silverlight runs inside the context of the small CLR which is a subset of the regular CLR. It’s not the same CLR, though most of it is completely identical and while your C# source code is exactly the same, the runtime isn’t identical.

    At the moment, you can’t mix Silverlight code with the full .NET based code like ASP.NET.

    There is some work being done inside Microsoft on extracting common core of regular .NET and Silverlight (a couple of libraries actually) for better sharing, but that’s not yet publically available.

    Also note that if the source code of one of your Silverlight 4.0 libraries does not use Silverlight specific code, you are able to load it into regular .NET process, but the reverse is obviously not possible (Silverlight being the subset, not the other way around).

    All this aside, you might achieve your goal by:

    1. Running your Silverlight app OOB on the server and communicating with the ASP.NET pages via some IPC mechanism
    2. Recompiling the code into WPF and load that; when I say recompile, I really mean adapt/refactor since Silverlight UI is not a pure subset of WPF

    Neither is particularity easy, though I’d lean towards the second option it’s cleaner.

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

Sidebar

Related Questions

I have a Generic HTTP Handler (*.ashx) in my ASP.Net application which performs some
i have an ASP.NET 4.0 HTTP handler that should receive and send data in
I have implemented an ASP.NET http handler. It appears to me that there is
I have an ASP.NET MVC 2 application, which has an Application_Error event handler in
We have a web site built as an 'ASP.NET Website' type project, rather than
I'm building an ASP.Net MVC website. Rather than have everything in one project, I've
I have the following url I need to support in my asp.net mvc project
I have a very simple ASP.NET project. It consists of two pages. The first
I have a project using Asp.Net 3.5 and MVC 1. Everything runs perfectly on
I have a large-ish web project which is migrating from classic ASP to ASP.NET

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.