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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T04:15:21+00:00 2026-06-06T04:15:21+00:00

I have a C++/CLI project that wraps around an unmanaged C compression library, and

  • 0

I have a C++/CLI project that wraps around an unmanaged C compression library, and this project is referenced by an MVC3 project that calls the C++ Compress function.

Everything works fine locally, but when I publish the solution to the Azure cloud, I get an error saying it could not find the module/dll:

Could not load file or assembly ‘LZGEncoder.DLL’ or one of its dependencies. The specified module could not be found.

Why can’t it find the DLL file? is it going to the wrong place or being compiled at all? Is there any way I can check? Thanks!

  • 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-06T04:15:22+00:00Added an answer on June 6, 2026 at 4:15 am

    The problem was that the Visual C++ 2010 Runtime libraries were missing from the cloud side.

    What I did was add the Visual C++ 2010 Redistributable package to the project, along with a script to silently install it at start up, and now the native dll’s work. You also need this if you’re using native C dll’s.

    Steps:

    1) Download Visual C++ 2010 Redistributable Package, and add it to your project.

    2) Create a new batch file and add this to it:
    vcredist_x64.exe /q /norestart
    exit /b 0

    3) Open the ServiceDefinition.csdef file and add this under the relevant WebRole element:

    <Startup>
      <Task commandLine="InstallVCRedist.bat" executionContext="elevated" taskType="simple" />  
    </Startup>  
    

    UPDATE:
    Visual C++ 2012 is out and the same script works, though everyone should make sure Azure is running atleast Windows Server 2008 R2, otherwise the start-up task will hang and the role will never start (until you kill the vcredist process in the task manager via RDP).

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

Sidebar

Related Questions

I have a C++/CLI project that wraps a native C++ application, which I use
I have a C++/CLI class library project in VS2005 that i am having some
I have three projects 1)unmanaged c++ containing full business logic 2)C++/CLI ( Project name
I have composite project which contains: C++ library for Linux/Windows, C++/CLI library based on
I have a project that consists of a C# application that calls into a
I have a C++/CLI project that uses CWinFormsControl and CWinFormsView to create .NET controls
I have a small to medium project that is in C++/CLI. I really hate
I have a project that is built with native C++, as well as C++/CLI.
I have an unmanaged dll that contains a function to read a data from
I have a native/unmanaged C++ library with a number of classes that I would

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.