question

KhalidAmen-6358 avatar image
0 Votes"
KhalidAmen-6358 asked bhargaviannadevara-msft edited

Custom C++ DLL file shows missing oleaut32.dll

I have a C++ DLL file generated in VS 2019. When I use it in C# project, throws an error that unable to upload the C++ DLL file or one of its dependencies. I checked the C++ DLL file using Dependency Tool. It shows that oleaut32.dll and conbase.dll files are missing. I checked them. They are exists under Windows/System32. Even I removed them from additional dependency under property of the C++ project, but they still showing module has missing import.

Custom DLL


dotnet-csharpc++
image.png (25.0 KiB)
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Don't treat what the dependency tool is saying too literally when it refers to system DLLs.
You say you have a problem using your DLL from C#, have you tried calling it from a simple C++ console project?
What is the error you got?

0 Votes 0 ·

I have no issue calling it from C# DLL in my local machine. I have have an issue when I call it in Azure web app.

0 Votes 0 ·

1 Answer

kobulloc-MSFT avatar image
0 Votes"
kobulloc-MSFT answered kobulloc-MSFT edited

There are a lot of reasons why this might be the case ranging from a missing KB fix to an issue on your dev box, but I suspect that it may be a Visual Studio issue. We have a forum dedicated to Visual Studio specialists who will be able to help you:

If you rule out Visual Studio and are still running into issues, please let us know so we can troubleshoot this further.




5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.