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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T03:31:29+00:00 2026-06-08T03:31:29+00:00

I was just upgrading my project from sdk 1.3 to 1.7. I have create

  • 0

I was just upgrading my project from sdk 1.3 to 1.7. I have create a post build event using cspack(copyOnly) that creates a cspkg directory. I am getting the below error from the worker role when I deploy it to the compute emulator using csrun.exe.

System.BadImageFormatException: Could not load file or assembly ‘file:///C:\AzureBookWriter\bin\Release\AzureBookWriter.cspkg\roles\BookWriterWorker\approot\WorkerRole1.dll’ or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.

I notice errors while deploying the service on Azure as well. I am thinking that the errors are the same that I noticed in csrun.

However, when I F5 in VS the app deploys fine to the emulator and runs fine. I am wondering why I am seeing the errors while deploying my package. Do I need to add any additional configs?

Thanks,
Kunal

  • 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-08T03:31:31+00:00Added an answer on June 8, 2026 at 3:31 am

    Figured out. This was not obvious. In the csdef I had to include

         <Runtime>
           <EntryPoint>
             <NetFxEntryPoint assemblyName="WorkerRole1.dll" targetFrameworkVersion="v4.0"/> 
           </EntryPoint> 
         </Runtime>   
         <Imports>
           <Import moduleName="Diagnostics" />
         </Imports>
    

    under worker role.

    This will create a WaWorkerHost.exe.config in base\64 and everything will work fine

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

Sidebar

Related Questions

I was just upgrading my project from sdk 1.3 to 1.7 and I noticed
We are just upgrading our ASP.Net shop implementation (from simple one) to structure that
After upgrading a project from Flex4 Beta1 to Beta2, I've found that the background-image
I am upgrading current project from Roo 1.1.5 to 1.2.1. I have noticed there
I'm creating a photo tagging project using mysql and php, that not only just
I have a project that usually works with Xcode 4, however since upgrading to
I've just been upgrading an Azure project to Visual Studio 2010 and have been
I have a Maven project that has always worked fine in Netbeans, but upgrading
I'm just upgrading from Spring 3.0.6 to 3.1 and there seems to be an
I'm working on a project that involves uploading an image to tumblr from Python.

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.