Forum posts for rundll32.exe

C# DLL loaded for exe-application is not found when launching similar DLL by rundll32.exe

I have built a C++/CLI DLL that is a wrapper for some .NET C# DLL. As a sample application I have built a simple project for exe-application based on WindowsForms GUI. It works fine with my C++/CLI library and the mentioned .NET C# DLL. But if I build another C++ DLL, which substitutes this sample exe-application, it doesn't succeed to load the .NET C# DLL, although it is located in the current Windows path. The following exception is occurred when trying to call some function from this C# code:


An unhandled exception of type 'System.IO.FileNotFoundException' occurred in MyApp.dll Additional information:
Could not load file or assembly 'xxxx, Version=yyyy, Culture=neutral, PublicKeyToken=null'
or one of its dependencies. The system cannot find the file specified


What are possible problems? In general, how should C# DLLs be linked to unmanaged executables? Is it manifest's problem?
Thanks in advance.

View complete forum thread with replies

Other posts related to rundll32.exe

See Related Forum Messages: Follow the Links Below to View Complete Thread

Inject text in a rundll32.exe window
rundll32.exe equivalent for 64-bit DLLs
Debugging a native dll using rundll32.exe , fail to load symbols
C# DLL loaded for exe-application is not found when launching similar DLL by rundll32.exe
Using “rundll32.exe” to access SpeechUX.dll
rundll32.exe not working on windows 2003 server
Running a “rundll32.exe” process at Win7 Logon, Lock, & Switch User screens?
Running rundll32.exe on WindowsXP
Using rundll32.exe to launch a click once deployment URL?
Running a dll using rundll32.exe.. no output or error seen
Copy File Using RunDll32.exe Kernel32.dll
Running a dll using rundll32.exe as a windows service
Documentation for writting your own dll for Rundll32.exe? [duplicate]
Rundll32.exe javascript

What is the carbon footprint of your coffee?

Is it low? Is it high? Can this things really kill the planet Earth? Maybe the answer will surprise you. Maybe not.