Cannot load TurboActivate.dll after rename it

I have renamed TurboActivate.dll as "profile", then I instantiated the TurboActivate in this way:

ta = new TurboActivate("my guid", "the path of .dat file");

I also renamed all the TurboActivate.dll reference inside TurboActivate.css with "profile", but I get:

Failed to load the DLL 'TurboActivate.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E).

why happen this?

Well, TurboActivate.dll is referenced in quite a few spots in TubroActivate.cs. Change all of them. Also, the exception will tell you exactly any spot you missed. Just follow the stack trace back to the calling function.

Or, just load the TurboActivate.dll as is. Renaming it doesnt really add any protection.

But I am done this right? I mean I can call the DLL 'profile' without specify the extension?

Thanks

You must include the extension. [yourname].dll. Then change all DLLImports. If you still still get an exception then the exception will tell you exactly where its happening.

well I replaced all "TurboActivate.dll" with "profile.dll" inside the TurboActivate.cs, but when I execute this code: return new TurboActivate("my guid", "folder..");I get the message that say cannot found the TurboActivate.dll, this is weird 'cause I replaced all

In visual studio theres a stick trace window that will let you double click every line in the stack trace and work your way backwards to find exactly what is looking for TurboActivate.dll

Honestly, its not worth your trouble to rename it. Renaming provide 0 protection.

I used that window, you mean "debug -> stackwindow", right?this window point to this: in wyDay.TurboActivate.TurboActivate.Native.TA_PDetsFromPath(String filename)

I was able to solve the problem, the ta class was inside a shared project, adding this to the current project allow to find the dll