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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T21:40:07+00:00 2026-05-23T21:40:07+00:00

I am using an unmanaged dll in cpp which I call from from my

  • 0

I am using an unmanaged dll in cpp which I call from from my C# web project. It works fine on my localhost but simply does not work on my shared hosting, winhost. It happens when I try to use one of the function in the dll.

The error message I am getting is:

“Unable to load DLL ‘dllTest.dll’: The application has failed to start
because its side-by-side configuration is incorrect. Please see the
application event log or use the command-line sxstrace.exe tool for
more detail. (Exception from HRESULT:
0x800736B1)”,”errors”:[{“name”:”DllNotFoundException”,”message”:”Unable
to load DLL ‘dllTest.dll’: The application has failed to start because
its side-by-side configuration is incorrect. Please see the
application event log or use the command-line sxstrace.exe tool for
more detail. (Exception from HRESULT: 0x800736B1)”}]}

I am suspecting that it is a path issue. The dll in question, dllTest.dll is placed in my bin folder. I am not sure where it is searching for the dll but is there a way I can specify a path for the search of the dll. I can’t find a way to specify a relative path to the dll.

I do not think it is a dependency issue because my dllTest.dll is just a simple test and it only contains a simple add function.

Or could not be other causes?

Thanks for the help.

  • 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-23T21:40:07+00:00Added an answer on May 23, 2026 at 9:40 pm

    The problem is that your C++ DLL requires the CRT libraries to be installed in order to work. The bolded part of the error message is what gives you the hint:

    Unable to load DLL ‘dllTest.dll’: The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail.

    That explains why everything is fine on your development machine—-they’re already installed there because they got installed with your development tools—and why it doesn’t work on the production server, which doesn’t have the CRT redistributables installed.

    You need to download the appropriate redistributable package for the version of Visual Studio that you compiled the DLL with. For example, if you’re using Visual Studio 2010, you can download version 10 of the CRT redistributable here.

    Alternatively, you could compile the DLL with the runtime libraries statically linked. To do that, change your project properties to throw the /MT switch instead of /MD—(it’s found in the UI under “Configuration Properties” -> “C/C++” -> “Code Generation” -> “Runtime Library”).

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

Sidebar

Related Questions

I have an unmanaged DLL which I'm currently calling from C# using a COM
I've got an unmanaged C++ dll which is being called from a C# app,
I am building a .NET windows service which is using an unmanaged C++ dll.
I am having an unmanaged dll written using C++. I am able to call
Problem in short: How to call a function from DLL A.dll using p/invoke when
I am using a struct to pass to an unmanaged DLL as so -
I'm using a 3rd party DLL written in unmanaged C++ that controls some hardware
Does anybody know of a method for creating custom Performance Counters using ordinary unmanaged
I can read unmanaged memory in C# using UnmanagedMemoryStream, but how can I do
I've got an unmanaged c++ console application in which I'm using srand() and rand().

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.