tags:

views:

42

answers:

2

I can ping using console app, but I want to ping from ASP.NET, the problem is that, ping object doesn't show ping.send(....). Is it not possible to ping from ASP.NET Web App?

for image please visit : http://coscientech.blogspot.com/2010/09/ping-trouble-aspnet.html

Directives are : using System; using System.Net; using System.Net.NetworkInformation; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Text;

A: 

Maybe this tutorial will help: http://www.aspnettutorials.com/tutorials/network/net-ping-aspnet2-vb.aspx

Roger
I don't know, I might be missing something. Check image please, and here are the directives:using System;using System.Net;using System.Net.NetworkInformation;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Text;
Anubhav Saini
A: 

Don't know if this is your case, but in general sending raw packet, done by ping, requires administrator rights on Windows. So most likely your ASP.NET page doesn't have enough privileges to send a ping packet. You can check this by copying the logic to regular application and running this application in different conditions. This will show you when Ping would work and when it wouldn't.

Eugene Mayevski 'EldoS Corp
In console app, this is running well, given that text fields are converted to readlines();
Anubhav Saini