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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T01:13:35+00:00 2026-06-15T01:13:35+00:00

I have custome azure utility dll that has one method to read configuration values

  • 0

I have custome azure utility dll that has one method to read configuration values from ServiceConfiguration and also has fallback code to read from AppSettings from web.config in case RoleEntironment is not running .
This DLLs works fine with Azure WCF project runnning on local and production cloud environment.

For some reason I am hosting this WCF service on Rackspace server on IIS.

On my local machine IIS, WCF service works fine but on Rackspace it crashes with following error:

The type initializer for ‘Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment’ threw an exception.

I have copied WindowsAzure.ServiceRuntime.dll, Diagnostics.dll and StorageClient.dll in bin on rackspace. Still it gives same error.

I have also tried copying <startup useLegacyV2RuntimeActivationPolicy="true"> to Web.config, still it does not work.

Any idea? Am I missing more cloud DLLs or some more configuration is needed?

  • 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-15T01:13:36+00:00Added an answer on June 15, 2026 at 1:13 am

    I went through this pain recently. And it ended up being a mismatched version of the Microsoft.WindowsAzure.Diagnostics dll in the Azure project file causing the problem. If you have local working copy and a successful deploy from a previous version you can copy the deployed files from the Azure VM and compare them to your local set (it was the Worker Role that was failing for me). If not check the versions to make sure the version being referenced is included in the deploy with CopyLocal set to true.

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

Sidebar

Related Questions

Currently I have one Windows Azure Cloud Service Project (Service1) that will put messages
I have custom event that has several different subscribers who will all use the
I have custom gallery. Gallery represents items that are frame layout. There are one
I'm re-writing a website from the ground up for azure. Each user has ownership
I have tested with my staging and production applications on azure that if we
I now have my Windows Azure environment set up so that I can access
I have gone trough new portal of Window Azure and in that new feature
Could someone explain the steps that one must do to show an Azure application
I know that we can't use messageBox in xaml. But..Can we have a custome
I have created two custome membership providers that I would like to add to

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.