Inavlid key in c#.

can someone help me here. i get invalid key when i run google web
service.

Thanks for your help

KR


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;


namespace WindowsFormsApplication4
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Google.GoogleSearchService Service;
            Google.GoogleSearchResult Result;
            String Lk;
            String test="google";
            String val;
            try
            {
                Service = new Google.GoogleSearchService();
            //
//            Lk="<key here>";
                Lk
Result = Service.doGoogleSearch(Lk, test, 10, 10, false, "", false,
"", "", "");
                val = Result.estimatedTotalResultsCount.ToString();
                MessageBox.Show(val);

            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);

            }
            //Lk







        }
    }
}

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Base Data API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Base-data-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to