C # dll not found

I am writing a small AOL IM application in C #. I have all the DLLs that I need, and I was able to compile and run the application. However, when it starts, I get an error message

"Unable to load DLL 'acccore.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)"

I understand that this means that the acccore.dll file was not found, but I do not know why. I tried putting it in C: \ Windows \ System32, and it is also in the debug directory that is created when the project is created in Visual Studio. Can someone tell me how to make my application known where this dll is?

Thanks!

+4
source share
4 answers

I used dependancywalker to find a dll that I was missing, which caused an error. This was suggested by Taylor Liz in a comment.

0
source

I did some research, and it looks like acccore.dll is a COM-DLL file. This means you need to run:

regsvr32.exe C:\Windows\System32\acccore.dll 

This will register the COM-DLL in the registry, then you can use this DLL in the .NET code. Check out the link:

http://64.12.130.129/forum?c=showthread&ThreadID=1173

So, you will need to use P / Invoke to use the DLL (I think the AOL SDK has some sample code that you can use).

+4
source

Is this a dll assembly?

If so, then fuslogvw will show you where the CLR is looking for assemblies. Put it where .net looks

0
source

.NET components must be in the application directory (or in one of its subdirectories, especially if they are a localized version of another assembly) or in the GAC (global assembly cache). If the dll isn 't in the same directory as .EXE, then your problem. If this is the case and it still does not work, it means that the assembly for some reason does not match.

0
source

Source: https://habr.com/ru/post/1300121/


All Articles