04-23-2020 01:34 PM - edited 04-23-2020 01:36 PM
I used to be able to debug add-ons with Visual Studio. I'm now getting the following error when it starts Act:
---------------------------
Debugging Not Allowed
---------------------------
This software is protected to provide copy protection and cannot be debugged. Please restart the application.
---------------------------
OK
---------------------------
The version I'm using is: Act! Premium Version 21.0.295.0, Update 7
04-29-2020 05:09 PM
04-30-2020 05:53 AM
@jimdurkin wrote:What is your .NET framework target?
Try using 4.0
-- Jim
4.7.2. Would it need to be downgraded?
04-30-2020 07:07 AM
04-30-2020 07:38 AM - edited 04-30-2020 07:39 AM
Unfortunately I'm only able to compile with version 21, which I think is why it's using .NET 4.7. Is debugging not possible in later versions? How are add-ons supposed to be created if not?
04-30-2020 10:07 AM
I remember other developers having issues with the new DLLs. Maybe on of them can chime in here?
In the short term, compile against v16. In general you can have a .Net 4.x project reference any dlls even if they were compiled against older versions of .Net/Act. Act does have a <bindingRedirect> in the configuration which allows your addon compiled against an older DLL to redirect to the newer DLL installed on the target PC.
Act should have created the binding redirect entry during installation in the .NET config file.
C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="Act.Data" publicKeyToken="ebf6b2ff4d0a08aa" /> <bindingRedirect oldVersion="7.0.0.0-22.999.999.999" newVersion="22.0.205.0" /> </dependentAssembly> </assemblyBinding>
There will be a binding entry for every Act DLL. If you do not have the <bindingRedirect> try running the MachineConfigUpdate.exe in the root act folder or reinstall Act.
Hope this helps
-- Jim
05-14-2020 09:25 PM
You must specify an application object when running from within Visual Basic McDVOICE.
08-31-2020 02:24 AM
i am getting same problem with current version. anybody have problem solution then reply me back. Getmyoffer.Capitalone.com