It has been very quiet at my blog for the last two months. The main reason for this is the go-live of a big NAV2016 upgrade I’ve been working on for the last half year or so.
This blog is related to this project. We are using some DLLs for this project. Among them are Anveo and ForNAV.
Sometimes you get a new version of a dll from one of your vendors. In some cases windows might prevent you from using them. You have to unblock it explicitly.
This is the error message you might get:
“Cannot create an instance of the following .NET Framework object”
Reason is that you need to go to the properties of the DLL and manually unblock it.
After this is done you can use the DLL. You need Administrator previledges.
thanks for posting this as I ran into the same issue two weeks ago with some Powershell scripts that I downloaded from GitHub and once I located the “unblock” button problem solved. Only remaining issue is how to unblock entire directories of scripts;
LikeLiked by 1 person
You need to be running as an administrator to unblock a file directly in the add-ins folder. One option is to run File Explorer as an administrator, another is to run powershell as an administrator and the third; move the file to your desktop, unblock it, and move it back up to the add-ins folder.
LikeLiked by 1 person
I always use the PowerShell way 🙂
Get-ChildItem ‘C:\Program Files\Microsoft Dynamics NAV\90\Service\Add-ins\*’ -Recurse | Unblock-File
LikeLiked by 1 person
I have added streams.exe to my scripts, but probably will change it to this neat-o-powershell thingy after this.
Read more from streams.exe:
https://technet.microsoft.com/en-us/sysinternals/streams.aspx
LikeLike