none
How to solve side-by-side configuration error in Viual Studio during import dll RRS feed

  • Question

  • I am using Visual Studio 2017 and Windows 10. I received two solutions from my teacher on university. I do not know in which visual studio and on which OS it was coded. One of them is solution which contains two projects(dll source code and code to test functions in dll). Second solution contains project of application. When I run my first solution I create dll file in Release mode and I also test it. Everything works good and source code is fine. But when I run second solution in which I include functionality of dll file using DllImport I got error which tell me "'Unable to load DLL 'file.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."

    I got error information using Event Viewer "Dependent Assembly Microsoft.VC90.DebugCRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8" could not be found.". So I realized I miss Visual C++ redistributable package 9.0.21022.8. Of course I installed it and on the occasion few another versions. Unfortunately it did not help me.

    It seems very weird for me. First of all I can compile and run dll source code but I can not include it into another project. I think it can be caused because of some solution/project properties in dll or application but I can not find what could I change. I have tried to change Solution->Debug Source File properties because there were paths to folders Visual Studio 9.0/VC which I do not have so I changed it to my paths Visual Studio 10.0/VC but it also did not help me.

    What else could I do?

    Sunday, November 3, 2019 12:39 PM

All replies

  • Hi Qwerty,

    Welcome to MSDN forum.

    Have you solved this issue? If not, you could download Microsoft Visual C++ 2010 SP1 Redistributable Package (x86) package, then restart your machine, and check if it could help.

    Hope it could help you and look forward to your feedback.

    Best Regards,

    Dylan


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com

    Monday, November 4, 2019 7:32 AM
  • Thank you Dylan for your respond to my post.

    As you suggested I downloaded Visual C++ 2010 SP1 Redistributable package and restarted my machine but it did not help me. I still have the same error.

    Monday, November 4, 2019 11:05 PM
  • Hi Qwertyluk,

    Thank you for feedback.

    You could have a try to download the Microsoft Visual C++ 2008 Service Pack 1 Redistributable Package ATL Security Update, to check if it could work.

    If it persists, please try to  build your project with debug configuration, and you could also refer this answer, hope it could help you.

    Any feedback will be expected.

    Best Regards,

    Dylan


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com

    Tuesday, November 5, 2019 6:59 AM
  • I have already resolved my trouble by installing VS2008 on my computer.

    Any way thank you very much for your advices.

    Greetings, Qwerty

    Sunday, November 10, 2019 10:47 PM