I am adding the sample code at the end of the explanation.
This error started with Windows 10 Update to Version 2004 OS Build 19041.329
I have tested the following libraries:
Nuget -> 5.58.192
Nuget -> 5.59.0-rev7
QuickOPC-2020.2-Windows-Full
If the the example is targeting Framework 4.7+ the application closes, no trace at all.
If the the example is targeting Framework 4.6.2 then, the OpcException is thrown
"The requested OPC Data Access technology 'Com' is not supported. Check the scheme \"opcda\" in server URL string \"opcda:Kepware.KEPServerEX.V6\".\r\n\r\n+ OPC specifications based on COM/DCOM are only supported under .NET Framework.\r\n+ The client method called was 'WriteMultipleItemValues'."
Now here is where it gets even stranger, if i run the Samples from the full installation, the ones that are in Windows Forms they do work.
This is happening completely new projects with zero references to anything else, and I need this EasyDAClient to be created from code behind because it will be running on a windows service.
The OPC is working and I was able to write the Tag in question using the sample application: Demo Application (OPC-DA) and running it from the Visual Studio from the samples.
These was working prior the Windows Update.
This is the simple source code (only 2 lines)
Also, the same issue if the EasyDAClient.SharedInstance is used
The Kepware OPC Server has been uninstalled / reinstalled several times.
Please advice.
This is the sample code
using OpcLabs.EasyOpc.DataAccess;
using OpcLabs.EasyOpc.OperationModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TestWrite
{
class Program
{
static void Main(string[] args)
{
var client = new EasyDAClient();
try
{
client.WriteItemValue("", "Kepware.KEPServerEX.V6", "Simulation Examples.Functions.Write1", "10");
}
catch(OpcException e)
{
Console.WriteLine("OPC Exception was thrown");
}
catch(Exception e)
{
Console.WriteLine("Unhandled Exception was thrown");
}
}
}
}