The example use sockets in an unsual way (raw sockets)

Socket socket = new Socket(AddressFamily.InterNetwork, SocketType.Raw,
ProtocolType.Icmp);

and the asp.net user ASPNET doesn't have enough rights to do that;

You must run the aspnet process using a user with high privilege ( for
example SYSTEM :));

You can change the machine.config file; replace the default "machine"
username with "SYSTEM" in the "processModel" tag, attribute "userName"

Dumitru Sbenghe


> -----Original Message-----
> From: dotnet discussion [mailto:[EMAIL PROTECTED]]On Behalf Of
> Frerich Tergast
> Sent: Wednesday, May 15, 2002 2:17 PM
> To: [EMAIL PROTECTED]
> Subject: [DOTNET] ping V2
>
>
> Hi, all,
>
> I tried to use an example to ping a machine within a webpage and
> to display
> the roundtrip time. I used the sample at
>
> http://dotnet247.com/247reference/articles/0/1273.aspx
>
> from Saurabh but I get an error message: "An attempt was made to access a
> socket in a way forbidden by its access permissions".
>
> Any ideas?
>
> Cheers
>
> Frerich
>
> You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
> subscribe to other DevelopMentor lists at http://discuss.develop.com.

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to