Re: [Developers_For_Ever] need help

Wednesday, December 28, 2011

 

the following code work will when client PC connect direct to internet   
************************
  Ping png = new System.Net.NetworkInformation.Ping();
        PingReply pngRep;

 pngRep = png.Send("www.aaa.com", 5000);
                    if (pngRep != null)
                    {
                        switch (pngRep.Status)
                        {
                            case IPStatus.Success:
                               
                                tSearch4Updae.Enabled = true;
                                break;
                            case IPStatus.TimedOut: MessageBox.Show("Request timed out.     " + "\n\n" + "الإتصال بالموقع رديء  ......  برجاء اعادة المحاولة لاحقاً");
                                pg.Value = 0;
                                tProgBar.Enabled = false;
                                Label1.Text = "الإتصال بالموقع رديء برجاء اعادة المحاولة لاحقاً";
                                break;
                            default:
                                MessageBox.Show("لايوجد اتصال بالإنترنت");
                                Label1.Text = "لايوجد اتصال بالإنترنت";
                                break;
                        }
But when client PC  connect through proxy server
I got default message from switch case
MessageBox.Show("لايوجد اتصال بالإنترنت");

------------------------------------------------------------------
Wa 3alikom Al-Salam

You should send the peace of code that do the connection to the web site.



On Sat, Dec 24, 2011 at 3:15 PM, Ahmed Hussien <abu_rhma2008@yahoo.com> wrote:
 

Dear All,

Alslamo alykom

I have C#  disk top application  to connect with my web site on the internet.
this application read data and download files from my web site it is work well.
but when this application work on PCs that connect to internet through proxy server it not work.
the question is: how to make my disk top program take default connection or proxy setting from internet explorer ?
/





__._,_.___
Recent Activity:
Kindly visit my Blog http://amrsaafan.blogspot.com
MARKETPLACE

Stay on top of your group activity without leaving the page you're on - Get the Yahoo! Toolbar now.

.

__,_._,___

0 comments:

Post a Comment