Re: How to reload a Cisco Router in C#? (General questions)
Hi,
I see that you have two Connect calls. You should remove the first one. Also, you are setting some properties twice, which isn't needed. From the sample you sent, you should remove the Command property, and add show ver\r\n to your execute call.
Also, i don't see other code, but I assume that you left all the events there. Unforunately, the sample uses events, and is designed to run in non-blocking mode. Since you use blocking mode, you shouldn't be using events, since that could cause exactly the problem you are experiencing.
I would strongly suggest that you start a new Windows Application Project, and then add that code (modified with suggestions that I provided).
Hope I helped.
Regards,
Damba
Complete thread:
- How to reload a Cisco Router in C#? - zubenelgenubi, 2008-05-01, 23:46
- Re: How to reload a Cisco Router in C#? - woddrazen, 2008-05-02, 00:02
- Re: How to reload a Cisco Router in C#? - zubenelgenubi, 2008-05-02, 00:41
- Re: How to reload a Cisco Router in C#? - zubenelgenubi, 2008-05-02, 00:46
- Re: How to reload a Cisco Router in C#? - woddrazen, 2008-05-02, 08:58
- Re: How to reload a Cisco Router in C#? - zubenelgenubi, 2008-05-02, 12:20
- Re: How to reload a Cisco Router in C#? - woddrazen, 2008-05-02, 12:42
- Re: How to reload a Cisco Router in C#? - zubenelgenubi, 2008-05-02, 12:45
- Re: How to reload a Cisco Router in C#? - woddrazen, 2008-05-02, 13:49
- Re: How to reload a Cisco Router in C#? - zubenelgenubi, 2008-05-12, 20:03
- Re: How to reload a Cisco Router in C#? - wodDamir, 2008-05-12, 20:11
- Re: How to reload a Cisco Router in C#? - zubenelgenubi, 2008-05-12, 20:46
- Re: How to reload a Cisco Router in C#? - wodDamir, 2008-05-12, 21:39
- Re: How to reload a Cisco Router in C#? - zubenelgenubi, 2008-05-12, 21:57
- Re: How to reload a Cisco Router in C#? - wodDamir, 2008-05-12, 22:01
- Re: How to reload a Cisco Router in C#? - zubenelgenubi, 2008-05-13, 01:53
- Re: How to reload a Cisco Router in C#? - wodDamir, 2008-05-13, 09:13
- Re: How to reload a Cisco Router in C#? - zubenelgenubi, 2008-05-13, 01:53
- Re: How to reload a Cisco Router in C#? - wodDamir, 2008-05-12, 22:01
- Re: How to reload a Cisco Router in C#? - zubenelgenubi, 2008-05-12, 21:57
- Re: How to reload a Cisco Router in C#? - wodDamir, 2008-05-12, 21:39
- Re: How to reload a Cisco Router in C#? - zubenelgenubi, 2008-05-12, 20:46
- Re: How to reload a Cisco Router in C#? - wodDamir, 2008-05-12, 20:11
- Re: How to reload a Cisco Router in C#? - zubenelgenubi, 2008-05-12, 20:03
- Re: How to reload a Cisco Router in C#? - woddrazen, 2008-05-02, 13:49
- Re: How to reload a Cisco Router in C#? - zubenelgenubi, 2008-05-02, 12:45
- Re: How to reload a Cisco Router in C#? - woddrazen, 2008-05-02, 12:42
- Re: How to reload a Cisco Router in C#? - zubenelgenubi, 2008-05-02, 12:20
- Re: How to reload a Cisco Router in C#? - woddrazen, 2008-05-02, 08:58
- Re: How to reload a Cisco Router in C#? - zubenelgenubi, 2008-05-02, 00:46
- Re: How to reload a Cisco Router in C#? - zubenelgenubi, 2008-05-02, 00:41
- Re: How to reload a Cisco Router in C#? - woddrazen, 2008-05-02, 00:02