|
|
i get a cross thread operation not allowed at the following line
HostIP = MainMonitorForm.StatsList.Items[entry].Text;
an fix? ![Frown | :(](https://www.codeproject.com/script/Forums/Images/smiley_frown.gif)
|
|
|
|
|
Hi,
I took the source code and just compiled without making any changes. Is is throwing following errors:
VisualICMP\Add Host.cs(342,5): error CS0120: An object reference is required for the nonstatic field, method, or property 'ICMPMonitor.MainMonitorForm.AddList(string, string)'
Could you please help! What piece of information i am missing? All errors look similar
Thanks,
Tejpal
Blow is the over all errors:
============
C:\Muns\RND\ICMPMonitor\VisualICMP\VisualICMP\Add Host.cs(342,5): error CS0120: An object reference is required for the nonstatic field, method, or property 'ICMPMonitor.MainMonitorForm.AddList(string, string)'
c:\muns\rnd\icmpmonitor\visualicmp\visualicmp\dispatch.cs(35,16): error CS0120: An object reference is required for the nonstatic field, method, or property 'ICMPMonitor.MainMonitorForm.StatsList'
c:\muns\rnd\icmpmonitor\visualicmp\visualicmp\dispatch.cs(45,15): error CS0120: An object reference is required for the nonstatic field, method, or property 'ICMPMonitor.MainMonitorForm.StatsList'
c:\muns\rnd\icmpmonitor\visualicmp\visualicmp\dispatch.cs(55,4): error CS0120: An object reference is required for the nonstatic field, method, or property 'ICMPMonitor.MainMonitorForm.StatsList'
c:\muns\rnd\icmpmonitor\visualicmp\visualicmp\mainform.cs(803,5): error CS0118: 'ICMPMonitor.MainMonitorForm.PingProgressBar' denotes a 'field' where a 'class' was expected
c:\muns\rnd\icmpmonitor\visualicmp\visualicmp\mainform.cs(804,5): error CS0118: 'ICMPMonitor.MainMonitorForm.PingProgressBar' denotes a 'field' where a 'class' was expected
c:\muns\rnd\icmpmonitor\visualicmp\visualicmp\mainform.cs(815,6): error CS0118: 'ICMPMonitor.MainMonitorForm.Clock' denotes a 'field' where a 'class' was expected
C:\Muns\RND\ICMPMonitor\VisualICMP\VisualICMP\MainPing.cs(72,5): error CS0120: An object reference is required for the nonstatic field, method, or property 'ICMPMonitor.MainMonitorForm.StatsList'
C:\Muns\RND\ICMPMonitor\VisualICMP\VisualICMP\MainPing.cs(91,8): error CS0120: An object reference is required for the nonstatic field, method, or property 'ICMPMonitor.MainMonitorForm.StatsList'
C:\Muns\RND\ICMPMonitor\VisualICMP\VisualICMP\MainPing.cs(92,58): error CS0120: An object reference is required for the nonstatic field, method, or property 'ICMPMonitor.MainMonitorForm.StatsList'
C:\Muns\RND\ICMPMonitor\VisualICMP\VisualICMP\MainPing.cs(93,34): error CS0120: An object reference is required for the nonstatic field, method, or property 'ICMPMonitor.MainMonitorForm.StatsList'
C:\Muns\RND\ICMPMonitor\VisualICMP\VisualICMP\MainPing.cs(95,8): error CS0120: An object reference is required for the nonstatic field, method, or property 'ICMPMonitor.MainMonitorForm.StatsList'
C:\Muns\RND\ICMPMonitor\VisualICMP\VisualICMP\MainPing.cs(96,8): error CS0120: An object reference is required for the nonstatic field, method, or property 'ICMPMonitor.MainMonitorForm.StatsList'
C:\Muns\RND\ICMPMonitor\VisualICMP\VisualICMP\MainPing.cs(98,8): error CS0120: An object reference is required for the nonstatic field, method, or property 'ICMPMonitor.MainMonitorForm.StatsList'
C:\Muns\RND\ICMPMonitor\VisualICMP\VisualICMP\MainPing.cs(103,8): error CS0120: An object reference is required for the nonstatic field, method, or property 'ICMPMonitor.MainMonitorForm.StatsList'
C:\Muns\RND\ICMPMonitor\VisualICMP\VisualICMP\MainPing.cs(110,34): error CS0120: An object reference is required for the nonstatic field, method, or property 'ICMPMonitor.MainMonitorForm.StatsList'
C:\Muns\RND\ICMPMonitor\VisualICMP\VisualICMP\MainPing.cs(111,34): error CS0120: An object reference is required for the nonstatic field, method, or property 'ICMPMonitor.MainMonitorForm.StatsList'
C:\Muns\RND\ICMPMonitor\VisualICMP\VisualICMP\MainPing.cs(116,8): error CS0120: An object reference is required for the nonstatic field, method, or property 'ICMPMonitor.MainMonitorForm.StatsList'
C:\Muns\RND\ICMPMonitor\VisualICMP\VisualICMP\MainPing.cs(117,8): error CS0120: An object reference is required for the nonstatic field, method, or property 'ICMPMonitor.MainMonitorForm.StatsList'
C:\Muns\RND\ICMPMonitor\VisualICMP\VisualICMP\MainPing.cs(118,28): error CS0120: An object reference is required for the nonstatic field, method, or property 'ICMPMonitor.MainMonitorForm.StatsList'
C:\Muns\RND\ICMPMonitor\VisualICMP\VisualICMP\MainPing.cs(120,38): error CS0120: An object reference is required for the nonstatic field, method, or property 'ICMPMonitor.MainMonitorForm.StatsList'
C:\Muns\RND\ICMPMonitor\VisualICMP\VisualICMP\MainPing.cs(120,114): error CS0120: An object reference is required for the nonstatic field, method, or property 'ICMPMonitor.MainMonitorForm.StatsList'
C:\Muns\RND\ICMPMonitor\VisualICMP\VisualICMP\MainPing.cs(122,9): error CS0120: An object reference is required for the nonstatic field, method, or property 'ICMPMonitor.MainMonitorForm.StatsList'
C:\Muns\RND\ICMPMonitor\VisualICMP\VisualICMP\MainPing.cs(127,9): error CS0120: An object reference is required for the nonstatic field, method, or property 'ICMPMonitor.MainMonitorForm.StatsList'
C:\Muns\RND\ICMPMonitor\VisualICMP\VisualICMP\MainPing.cs(129,28): error CS0120: An object reference is required for the nonstatic field, method, or property 'ICMPMonitor.MainMonitorForm.StatsList'
C:\Muns\RND\ICMPMonitor\VisualICMP\VisualICMP\MainPing.cs(131,64): error CS0120: An object reference is required for the nonstatic field, method, or property 'ICMPMonitor.MainMonitorForm.StatsList'
C:\Muns\RND\ICMPMonitor\VisualICMP\VisualICMP\MainPing.cs(133,9): error CS0120: An object reference is required for the nonstatic field, method, or property 'ICMPMonitor.MainMonitorForm.StatsList'
C:\Muns\RND\ICMPMonitor\VisualICMP\VisualICMP\MainPing.cs(135,8): error CS0120: An object reference is required for the nonstatic field, method, or property 'ICMPMonitor.MainMonitorForm.StatsList'
C:\Muns\RND\ICMPMonitor\VisualICMP\VisualICMP\MainPing.cs(147,6): error CS0120: An object reference is required for the nonstatic field, method, or property 'ICMPMonitor.MainMonitorForm.PingProgressBar'
C:\Muns\RND\ICMPMonitor\VisualICMP\VisualICMP\MainPing.cs(147,44): error CS0120: An object reference is required for the nonstatic field, method, or property 'ICMPMonitor.MainMonitorForm.PingProgressBar'
C:\Muns\RND\ICMPMonitor\VisualICMP\VisualICMP\MainPing.cs(147,83): error CS0120: An object reference is required for the nonstatic field, method, or property 'ICMPMonitor.MainMonitorForm.PingProgressBar'
C:\Muns\RND\ICMPMonitor\VisualICMP\VisualICMP\SelectedHost.cs(439,17): error CS0120: An object reference is required for the nonstatic field, method, or property 'ICMPMonitor.MainMonitorForm.StatsList'
C:\Muns\RND\ICMPMonitor\VisualICMP\VisualICMP\SelectedHost.cs(478,4): error CS0120: An object reference is required for the nonstatic field, method, or property 'ICMPMonitor.MainMonitorForm.StatsList'
C:\Muns\RND\ICMPMonitor\VisualICMP\VisualICMP\SelectedHost.cs(494,7): error CS0120: An object reference is required for the nonstatic field, method, or property 'ICMPMonitor.MainMonitorForm.StatsList'
C:\Muns\RND\ICMPMonitor\VisualICMP\VisualICMP\SelectedHost.cs(544,5): error CS0120: An object reference is required for the nonstatic field, method, or property 'ICMPMonitor.MainMonitorForm.StatsList'
C:\Muns\RND\ICMPMonitor\VisualICMP\VisualICMP\SelectedHost.cs(565,8): error CS0120: An object reference is required for the nonstatic field, method, or property 'ICMPMonitor.MainMonitorForm.StatsList'
C:\Muns\RND\ICMPMonitor\VisualICMP\VisualICMP\SelectedHost.cs(566,34): error CS0120: An object reference is required for the nonstatic field, method, or property 'ICMPMonitor.MainMonitorForm.StatsList'
C:\Muns\RND\ICMPMonitor\VisualICMP\VisualICMP\SelectedHost.cs(568,8): error CS0120: An object reference is required for the nonstatic field, method, or property 'ICMPMonitor.MainMonitorForm.StatsList'
C:\Muns\RND\ICMPMonitor\VisualICMP\VisualICMP\SelectedHost.cs(569,8): error CS0120: An object reference is required for the nonstatic field, method, or property 'ICMPMonitor.MainMonitorForm.StatsList'
C:\Muns\RND\ICMPMonitor\VisualICMP\VisualICMP\SelectedHost.cs(573,28): error CS0120: An object reference is required for the nonstatic field, method, or property 'ICMPMonitor.MainMonitorForm.StatsList'
C:\Muns\RND\ICMPMonitor\VisualICMP\VisualICMP\SelectedHost.cs(575,38): error CS0120: An object reference is required for the nonstatic field, method, or property 'ICMPMonitor.MainMonitorForm.StatsList'
C:\Muns\RND\ICMPMonitor\VisualICMP\VisualICMP\SelectedHost.cs(575,114): error CS0120: An object reference is required for the nonstatic field, method, or property 'ICMPMonitor.MainMonitorForm.StatsList'
C:\Muns\RND\ICMPMonitor\VisualICMP\VisualICMP\SelectedHost.cs(577,9): error CS0120: An object reference is required for the nonstatic field, method, or property 'ICMPMonitor.MainMonitorForm.StatsList'
C:\Muns\RND\ICMPMonitor\VisualICMP\VisualICMP\SelectedHost.cs(582,9): error CS0120: An object reference is required for the nonstatic field, method, or property 'ICMPMonitor.MainMonitorForm.StatsList'
C:\Muns\RND\ICMPMonitor\VisualICMP\VisualICMP\SelectedHost.cs(585,8): error CS0120: An object reference is required for the nonstatic field, method, or property 'ICMPMonitor.MainMonitorForm.StatsList'
C:\Muns\RND\ICMPMonitor\VisualICMP\VisualICMP\SelectedHost.cs(591,8): error CS0120: An object reference is required for the nonstatic field, method, or property 'ICMPMonitor.MainMonitorForm.StatsList'
C:\Muns\RND\ICMPMonitor\VisualICMP\VisualICMP\SelectedHost.cs(597,33): error CS0120: An object reference is required for the nonstatic field, method, or property 'ICMPMonitor.MainMonitorForm.StatsList'
C:\Muns\RND\ICMPMonitor\VisualICMP\VisualICMP\SelectedHost.cs(598,33): error CS0120: An object reference is required for the nonstatic field, method, or property 'ICMPMonitor.MainMonitorForm.StatsList'
C:\Muns\RND\ICMPMonitor\VisualICMP\VisualICMP\SelectedHost.cs(604,8): error CS0120: An object reference is required for the nonstatic field, method, or property 'ICMPMonitor.MainMonitorForm.StatsList'
C:\Muns\RND\ICMPMonitor\VisualICMP\VisualICMP\SelectedHost.cs(605,8): error CS0120: An object reference is required for the nonstatic field, method, or property 'ICMPMonitor.MainMonitorForm.StatsList'
C:\Muns\RND\ICMPMonitor\VisualICMP\VisualICMP\SelectedHost.cs(606,28): error CS0120: An object reference is required for the nonstatic field, method, or property 'ICMPMonitor.MainMonitorForm.StatsList'
C:\Muns\RND\ICMPMonitor\VisualICMP\VisualICMP\SelectedHost.cs(608,38): error CS0120: An object reference is required for the nonstatic field, method, or property 'ICMPMonitor.MainMonitorForm.StatsList'
C:\Muns\RND\ICMPMonitor\VisualICMP\VisualICMP\SelectedHost.cs(608,114): error CS0120: An object reference is required for the nonstatic field, method, or property 'ICMPMonitor.MainMonitorForm.StatsList'
C:\Muns\RND\ICMPMonitor\VisualICMP\VisualICMP\SelectedHost.cs(610,9): error CS0120: An object reference is required for the nonstatic field, method, or property 'ICMPMonitor.MainMonitorForm.StatsList'
C:\Muns\RND\ICMPMonitor\VisualICMP\VisualICMP\SelectedHost.cs(615,9): error CS0120: An object reference is required for the nonstatic field, method, or property 'ICMPMonitor.MainMonitorForm.StatsList'
C:\Muns\RND\ICMPMonitor\VisualICMP\VisualICMP\SelectedHost.cs(617,28): error CS0120: An object reference is required for the nonstatic field, method, or property 'ICMPMonitor.MainMonitorForm.StatsList'
C:\Muns\RND\ICMPMonitor\VisualICMP\VisualICMP\SelectedHost.cs(619,64): error CS0120: An object reference is required for the nonstatic field, method, or property 'ICMPMonitor.MainMonitorForm.StatsList'
C:\Muns\RND\ICMPMonitor\VisualICMP\VisualICMP\SelectedHost.cs(621,9): error CS0120: An object reference is required for the nonstatic field, method, or property 'ICMPMonitor.MainMonitorForm.StatsList'
C:\Muns\RND\ICMPMonitor\VisualICMP\VisualICMP\SelectedHost.cs(623,8): error CS0120: An object reference is required for the nonstatic field, method, or property 'ICMPMonitor.MainMonitorForm.StatsList'
c:\muns\rnd\icmpmonitor\visualicmp\visualicmp\settime.cs(255,4): error CS0120: An object reference is required for the nonstatic field, method, or property 'ICMPMonitor.MainMonitorForm.StatusBar'
c:\muns\rnd\icmpmonitor\visualicmp\visualicmp\timerclass.cs(49,4): error CS0120: An object reference is required for the nonstatic field, method, or property 'ICMPMonitor.MainMonitorForm.Clock'
Build complete -- 61 errors, 0 warnings
Building satellite assemblies...
Satellite assemblies could not be built because the main project output is missing.
---------------------- Done ----------------------
Rebuild All: 0 succeeded, 1 failed, 0 skipped
|
|
|
|
|
Bill,
I am trying to ping a secured site (https://) that needs SSL certificate and showing error - "Could not resolve hostname". Do you have any idea how I can make it work?
Thanks,
Tejpal Garhwal
|
|
|
|
|
This is the URL that i am trying to reach "https://www.callit.com/vl/api1c.asp" and I have valid certificate installed on my machine.
Tejpal Garhwal
-- modified at 12:45 Friday 11th August, 2006
Tejpal Garhwal
|
|
|
|
|
Because Just ping service is not enabled by some firewall ... like isa server.
|
|
|
|
|
Thanks!! But can we still make it work.. My idea is to just confirm if mentioned link/URL is live. As I mentioned, i have a valid certificate.
Tejpal
|
|
|
|
|
You know, what is ICMP?
When not, look at here: ICMP on wikipedia
http://, https:// and ftp:// is a protocol.
You can only use ICMP for IP-Adress and Domain-Names (and Sub-Domains), an not for http:// oder something.
You can check with ICMP is the server online or not.
When you will is the webserver running, connect to the webserver (exp.: telnet), you get the information is the webserver running or not (or another service use the Port [80, 443]).
The third check you can do, use WebDownload. Download the index.html (or something) and parse the file ro ErrorCode (ErrorCode from the WebServer, not from the Script...).
You think this is to difficult?
The another way is very easy, upload a text file, with the content "CHECK SERVER IS OK".
Download this file, is the content "CHECK SERVER IS OK", the webserver is correct running. But, when you didn't find this content.- The WebServer is not correctly running. The problem of this easy solution, you have not a 100% check. Why? The program, can't say is the content of the website correctly running or not.
I hope u can understanding, what i mean. ![Wink | ;)](https://www.codeproject.com/script/Forums/Images/smiley_wink.gif)
|
|
|
|
|
StatusBar = new System.Windows.Forms.StatusBar();
“InitializeComponent" issue
|
|
|
|
|
I have error when i complied the code
the error was on dispatchThread.Start();
please help me
Majed Saleh
NOC Engineer
Batelco Jordan
|
|
|
|
|
It is interesting to have a LOG file to memorize the events (ex. ICMPmonitor.log) . It seems that the mail does not work also.
Best Regards,
PHAM kim Seng
kimseng.pham@libertysurf.fr
|
|
|
|
|
Hi KimSeng: The logging is a good idea and probably should be implemented.
The Mail System code has been developed and functions well I can send it to you to recompile. It requires some workarounds. In Order for some mail servers to recieve mail you have to spoof your own address in the mail from field.
Thanks for looking at this
Bill
|
|
|
|
|
Thank you very much for your reply.It's a useful utility
for me.Is possible to have the last source project ?
Seng,
mailto:kspham@cni.fr
Seng
|
|
|
|
|
Hi Bill,
Your App worked nice on my first try with the pre-installed hosts.
Would it be possible to add a "Delete, Enable/Disable host"
option and also a way to correct mistakes when adding hosts.
Good work.
Arbulo
![Roll eyes | :rolleyes:](https://www.codeproject.com/script/Forums/Images/smiley_rolleyes.gif)
|
|
|
|
|
Hi: Currently edit and delete functions can be done with notepad fairly easily. If you delete the .ini file you can simply create a new one by using add host.
Hope this helps
Bill
|
|
|
|
|
Very nice article and program. It was exactly what I was looking for, for some time. Our company has several (about 60) VPN connections to customers, and I use this program to check whether the VPN tunnels are active (by pinging the VPN concentrator "on the other side".)
It seems however that there's a little bug in your code: I sometimes get a reply from IP addresses from which I now that the are not online. If I do a manual ping, I get a time-out, but if I use your code, I do get a reply.
Any suggestions where to start looking for this ?
Thnx and keep up with this kind of good work
Geert D.
My work is so secret, that even I don't know what I'm doing.
|
|
|
|
|
HI: Actually that is a bug in the code. The problem is corrected in the latest release. The problem was created when ping threads completed at the same time.
In the next release which was submttted on June 30th. the problem is taken care of
by waiting for the previous thread to complete before moving to the next host.
Bill
|
|
|
|
|
Ok thnx Bill,
I'll have a new look at it...
Geert D.
|
|
|
|
|