Manage mikrotik routers with .NET C# code via ADO.NET like API or enjoy O/R mapper like highlevel api.
Apache License 2.0
177
stars
94
forks
source link
LoadAll method throwing exception System.FormatException: 'Value 'established,related,untracked' for property 'ConnectionState(connection-state)' is not in expected format #94
however the following exception is thrown when i try to retrieve the applied rules.
System.FormatException: 'Value 'established,related,untracked' for property 'ConnectionState(connection-state)' is not in expected format 'tik4net.Objects.Ip.Firewall.FirewallFilter+ConnectionStateType'.'
Adding the ConnectionState Property didn't change the error
` var firewallFilter = new FirewallFilter()
{
Chain = FirewallFilter.ChainType.Forward,
Action = FirewallFilter.ActionType.Drop,
ConnectionState = FirewallFilter.ConnectionStateType.New
//ConnectionBytes = 0
};`
The same behavior was replicated when using DeleteAll and LoadList methods.
tik4Net version 3.50
I was following the documentation in order to apply firewall filter to a mikrotik router.
`
however the following exception is thrown when i try to retrieve the applied rules.
System.FormatException: 'Value 'established,related,untracked' for property 'ConnectionState(connection-state)' is not in expected format 'tik4net.Objects.Ip.Firewall.FirewallFilter+ConnectionStateType'.'
Adding the ConnectionState Property didn't change the error ` var firewallFilter = new FirewallFilter() { Chain = FirewallFilter.ChainType.Forward, Action = FirewallFilter.ActionType.Drop, ConnectionState = FirewallFilter.ConnectionStateType.New
The same behavior was replicated when using DeleteAll and LoadList methods. tik4Net version 3.50