Security Error
Posted: Fri Mar 17, 2023 8:04 am
I am setting up an API to have the communication from Softpro to our system. I subscribed to the events and they fire as they should, but when we look up the order in Softpro with our code I get the not so helpful error "Security error". If I run this on my local system I get the order. I have look on this board and found at least several other who have had this issue in the past, but there does not seem to be a resolution (viewtopic.php?p=4072&hilit=security+error#p4072). We do no use the PIN info when signing in and locally we have never had to do that as well. All of the accounts set up to work with Softpro are AD accounts.
Code that fails.
Not sure why this would work in my local, but not on the server.
Code that fails.
Code: Select all
var creds = new NetworkCredential(username, password, domain);
using (var ss = new SelectServer(new Uri(softProServer), creds))
{
string reason;
if (!ss.TryAuthenticate(out reason)) throw new Exception(reason);