ouchatchai / google-api-for-dotnet

Automatically exported from code.google.com/p/google-api-for-dotnet
0 stars 0 forks source link

Google API + web Exception was unhandled #79

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I got web exception when i using Google API.Pls sort out this exception.Thanks 
in advance.

Dim results As IList(Of Google.API.Search.IWebResult) = 
gwebsearcher.Search("Microsoft", 1000, "English", "Off")

The following is exception i got

System.Net.WebException was unhandled
  Message="The remote server returned an error: (407) Proxy Authentication Required."
  Source="System"
  StackTrace:
       at System.Net.HttpWebRequest.GetResponse()
       at Google.API.RequestUtility.GetResponseData[T](IRequestInfo requestInfo)
       at Google.API.Search.SearchUtility.GetResponseData[T](GoogleSearchRequest request, Int32 start, String resultSize)
       at Google.API.Search.SearchUtility.Search[T](GoogleSearchRequest request, Int32 resultCount)
       at Google.API.Search.GSearchClient.Search[T,TResult](GoogleSearchRequest request, Int32 resultCount)
       at Google.API.Search.GlocalSearchClient.Search(String keyword, Int32 resultCount, Single latitude, Single longitude, Nullable`1 width, Nullable`1 height, String resultType)
       at Google.API.Search.GlocalSearchClient.Search(String keyword, Int32 resultCount, Single latitude, Single longitude)
       at Browser.Form1.goButton_Click(Object sender, EventArgs e) in C:\C# programs\C# prog\FormsApp1\Browser\Browser\Form1.cs:line 41
       at System.Windows.Forms.Control.OnClick(EventArgs e)
       at System.Windows.Forms.Button.OnClick(EventArgs e)
       at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ButtonBase.WndProc(Message& m)
       at System.Windows.Forms.Button.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
       at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
       at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.Run(Form mainForm)
       at Browser.Program.Main() in C:\C# programs\C# prog\FormsApp1\Browser\Browser\Program.cs:line 18
       at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
  InnerException:

Original issue reported on code.google.com by vignesh...@gmail.com on 20 Apr 2011 at 5:16