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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:01:34+00:00 2026-05-23T08:01:34+00:00

In my Windows Azure role C# code I do the following: Assembly.Load( Microsoft.WindowsAzure.ServiceRuntime );

  • 0

In my Windows Azure role C# code I do the following:

Assembly.Load( "Microsoft.WindowsAzure.ServiceRuntime" );

and FileNotFoundException is thrown. The problem is an assembly with such name is present and has even loaded before the code above is run – I see a corresponding line in the debugger “Output” window and when I do:

AppDomain.CurrentDomain.GetAssemblies().Any(
    assembly => assembly.FullName.StartsWith("Microsoft.WindowsAzure.ServiceRuntime"));

the result is true and if I use Where(), then SingleOrDefault() I get a reference to a corresponding Assembly object.

Why can’t I load an assembly with Assembly.Load()?

  • 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-23T08:01:35+00:00Added an answer on May 23, 2026 at 8:01 am

    That Load() call can only succeed if Microsoft.WindowsAzure.ServiceRuntime.dll is stored in your app’s probing path. By default the same directory as your EXE. Problem is, it isn’t stored there, it is stored in the GAC.

    The point of the GAC is to act as a depository of assemblies with the same name but different [AssemblyVersion]s, culture or processor architecture. Which is the problem with your Load(), you don’t specify any. There is no reasonable way that fusion can pick an assembly for you, it is apt to give you the wrong one. So it doesn’t bother, even if there is only one to pick from.

    Specifying the full AsssemblyName.FullName is required. Use Project + Add Reference to avoid.

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

Sidebar

Related Questions

A Windows 7 (64-bit) system runs the following code under Windows Azure Compute Emulator
We have a Web Role that we are hosting in Windows Azure that uses
I am newbie to Windows Azure application. I have downloaded the Microsoft Visual Studio
I am trying to create a Worker Role project for Windows Azure that loads
I am trying to start up a web role on Windows Azure, but it
Is it possible to have one web role hosted on Windows Azure which respond
I have a WCF service that's deployed as a Windows Azure Web Role. I'm
We have an windows Azure web role (typically ASP.NET application) with client side J-queries
I'm currently implementing a WCF REST service on a web role in Windows Azure,
I just set up my machine to code Windows Azure apps in Visual Studio

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.