josuetex / mikrotik4net

Automatically exported from code.google.com/p/mikrotik4net
Other
0 stars 0 forks source link

Error trying to open Session #12

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
No steps are needed, The exception throws just while I'm trying to open session 
to the mikrotik.

Here is the exception thrown:

- Message:

Target doesn't return exactly 1 row.
  COMMAND:
    /login
  RESPONSE:

- Full Exception

Tik4Net.Connector.TikConnectorException was unhandled
  Message=Target doesn't return exactly 1 row.
  COMMAND:
    /login
  RESPONSE:

  Source=tik4net
  StackTrace:
       at Tik4Net.Connector.Api.ApiConnector.ValidateResponseRows(String command, List`1 response, Boolean exactlyOneRow, Regex firstRowRegex, Regex lastRowRegex, Regex otherRowRegex)
       at Tik4Net.Connector.Api.ApiConnector.ExecuteAndReadResponse(String command, Dictionary`2 parameters, Boolean exactlyOneRow, Regex firstRowRegex, Regex lastRowRegex, Regex otherRowRegex)
       at Tik4Net.Connector.Api.ApiConnector.ExecuteAndReadResponse(String command, Dictionary`2 parameters, Regex exactlyOneRowRegex)
       at Tik4Net.Connector.Api.ApiConnector.ExecuteScalar(String command, Dictionary`2 parameters)
       at Tik4Net.Connector.Api.ApiConnector.Open(String host, Int32 port, String user, String password)
       at Tik4Net.TikSession.Open(String host, Int32 port, String user, String password)
       at Mikrotik.Form1.button1_Click(Object sender, EventArgs e)
       at System.Windows.Forms.Control.OnClick(EventArgs e)
       at System.Windows.Forms.Button.OnClick(EventArgs e)
       at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ButtonBase.WndProc(Message& m)
       at System.Windows.Forms.Button.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
       at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
       at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.Run(Form mainForm)
       at Mikrotik.Program.Main()
       at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
  InnerException: 

Original issue reported on code.google.com by afon...@gmail.com on 2 Dec 2012 at 11:30

GoogleCodeExporter commented 9 years ago
Version 0.9.2 Alpha 3

RouterOS version 5.22

Original comment by afon...@gmail.com on 2 Dec 2012 at 11:31

GoogleCodeExporter commented 9 years ago
Following Error when using Router OS version 6.6
I'm getting a few error using your Tik4Net API that I wanted to see if you 
could help direct me to where would be the best location to identify the 
following errors that I'm getting when reading from a Mikrotik CCR1016 Router 
OS version 6.6. 

So far your FirewallNatList is loading fine but the items below will now run 
the LoadAll() Methods shown below:

First Error that I'm seeing but isn't stopping me from connecting: 
TikSession TikRouter Error:
DataRow does not contains item with key 'write-sect-since-reboot'.

 QueueSimpleList queueList = new QueueSimpleList();
                queueList.LoadAll();
queueList.LoadAll() Return below Error:
Additional information: DataRow does not contains item with key 'disabled'.

Original comment by MagicWe...@gmail.com on 26 Nov 2013 at 10:20