Two years ago I opened a topic in this forum about trying to add the required DLL for my application to a bin folder in my application. Here it is.
Since then we deployed our software along with the following DLLs :
- GdPicture.NET.10.filters.dll and GdPicture.NET.10.filters.64.dll
- GdPicture.NET.10.image.gdimgplug.dll and GdPicture.NET.10.image.gdimgplug.64.dll
- GdPicture.NET.10.ocr.tesseract.3.dll and GdPicture.NET.10.ocr.tesseract.3.64.dll
On around 400 different computers. And on deployment, I added my Program files/application/bin folder the the path (as mentionned in the previous topic) so that the required DLL can be found and loaded by my application. This solution worked.... most of the time. In about 20% percent of the cases, we had an unexpected error, crashing the app on startup (before we could debug any of it) and returning this error in Windows event log :
Code: Select all
Application: [name of my application].exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Exception
Stack:
at gdpicture_?.gdpicture_?(Boolean)
at gdpicture_?.gdpicture_?(Boolean)
at gdpicture_?.gdpicture_?(Int32)
at gdpicture_?.?(System.String, System.String ByRef)
at GdPicture10.LicenseManager.RegisterKEY(System.String)
at [name of my application].Application..ctor()
at [name of my application].Application.Main()
But with Windows 10 we're getting more and more of these problems, around 90% of the time we deploy in W10 we have to copy those DLLs. We even had a PC, upgraded from 8 to 10, on which we we're unabled to get the application to work, even when copying those DLLs.
I read all the stuff about redistributing those DLLs, I tried regsvr32 on them but it looks like they cannot be registered, I tried registering them with my Wix deployment system but they're not .net dlls either.
I'm running out of ideas and I'm afraid we'll get more of these problems since more and more PC are updated to W10 every day. Do you have any idea? Any suggestions or advice on how to use / register those DLLs or how to change my code to load them manually (in VB.Net or C#) or any other possibility? It's hard to believe I'm the only one struggling with those DLLs...
Thanks