Isuue in locating Actipro DLL's in our application

SyntaxEditor for Windows Forms Forum

Posted 16 years ago by Simran
Avatar
Hi,

We are using a licensed version of Actipro Syntax Editor. We have a certain issue regarding deployment.



1.The Readme document of the Actipro says “To deploy an application that uses this product, simply copy the redistributable assemblies mentioned above to the same folder as your application's executable. Nothing else needs to be deployed. Your license information will be compiled into your application by Visual Studio.”.

2. However we want to put these dll’s in a designated Actipro software folder in our installed application rather than dropping the dll’s to the same folder as application's executable.

3.How can we make it work this way?

Thanks.

Comments (2)

Posted 16 years ago by Martin de Jong - Statistics Netherlands
Avatar
You could try to create an eventhandler for

AppDomain.CurrentDomain.AssemblyResolve

and try to Resolve / Load the assembly yourself...

BTW , this is a guess.. I used it for reflection purposes.

            Assembly ass = null;
            try {
                ass = System.Reflection.Assembly.LoadFrom(f);
            } catch { }
            if (ass == null) {
                try {
                    // load form GAC
                    ass = System.Reflection.Assembly.Load(args.Name);
                } catch { }
            }
            return ass;
Posted 16 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
What Martin suggested COULD work (we haven't tried it). You may also be able to drop them in a folder right under your .EXE folder but I'm not sure if that works either. If neither of those work, you'd probably just have to keep them in the same folder as your .EXE or possibly search the MSDN for other options that .NET assembly binding may offer.


Actipro Software Support

The latest build of this product (v24.1.0) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.