Azure - Bing Search not working with new azure account key

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
7/30/2012 10:49:38 AM
Gravatar
Total Posts 76

Azure - Bing Search not working with new azure account key

I am using Bing Search on one of my mp site, and it is still working, but on 8/1/2012 they say they are transitioning to the newer Azure bases API keys,


So i opened the account and activated key for the free level search API. and changed my api code to the new one.

boom error page:

Looks like it is affecting the http://www.mojoportal.com/BingSearch.aspx search page too:

my log4net:

2012-07-30 11:20:44,025 ERROR 108.35.163.18 - en-US - /SearchResults.aspx - mojoPortal.Web.mojoBasePage - 108.35.163.18-en-US - /SearchResults.aspx
System.NullReferenceException: Object reference not set to an instance of an object.
   at Microsoft.Samples.Web.Linq2Bing.BingQueryProvider.Execute(Expression expression)
   at Microsoft.Samples.Web.Linq2Bing.QueryProvider.System.Linq.IQueryProvider.Execute(Expression expression)
   at Microsoft.Samples.Web.Linq2Bing.Query`1.System.Collections.IEnumerable.GetEnumerator()
   at System.Linq.Enumerable.<OfTypeIterator>d__aa`1.MoveNext()
   at System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource)
   at System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e)
   at System.Web.UI.WebControls.Repeater.DataBind()
   at mojoPortal.Web.UI.BingSearchControl.BindResults()
   at mojoPortal.Web.UI.BingSearchControl.UpdateResults()
   at mojoPortal.Web.UI.BingSearchControl.btnSearch_Click(Object sender, EventArgs e)
   at System.Web.UI.WebControls.Button.OnClick(EventArgs e)

I will start debugging local now to see why the old key works and the new one does not.

bing azure api

7/30/2012 10:53:23 AM
Gravatar
Total Posts 18439

Re: Azure - Bing Search not working with new azure account key

If you upgrade to the latest version of mojoPortal it should work. LinqToBing is no longer used with the new api.

Hope that helps,

Joe

7/30/2012 11:02:46 AM
Gravatar
Total Posts 76

Re: Azure - Bing Search not working with new azure account key

Thanks Joe, I am in the process in integrating the dev branch into my local.


But just want to point out as well, this site ( http://www.mojoportal.com/BingSearch.aspx)  producing an error.

 

7/30/2012 11:29:33 AM
Gravatar
Total Posts 18439

Re: Azure - Bing Search not working with new azure account key

Thanks, its working now, I had not updated my api key.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.