locked
Create Mashup ERROR: liveNews: Error from search: Invalid value for AppID in request RRS feed

  • Question

  • Greetings all...

     

    I am looking into the Popfly/Silverlight API's and using a textbook example (VWD 2008 Step by Step) to create a mashup to deliver RSS newsfeeds. I have tried it about 15 times now...each with the same result. The AppID is rejected everytime. It is as simple as a "Live News" box attached to a "News Reader." I have deleted all old AppID's and created new ones and waited well over ten minutes to try it again. No luck.  Is it supposed to be this difficult?

     

    I am running Windows XP Pro SP3

    I am using the example from Eric Griffin's VWD 2008 Express Step-by-Step Chapter 11

    I am not even tying to run the application on a server...it is breaking within the Popfly Web Environment when I click run.

     

    I have wasted half my day on a five minute textbook example.

     

    Any ideas?  Advanced Thanks!

     

    Sincerely, A confused old dude trying new stuff  

    Monday, January 12, 2009 8:00 PM

Answers

  •  

    You are doing absolutely nothing wrong - your code would work if you had an AppID for the right version of the service. Right now you are getting  a 2.0 AppID but are using it to call the 1.1 service. That is why you see this error. Your code confirms it (http://soap.search.msn.com:80/webservices.asmx is the old endpoint - API 2.0 would use http://api.search.live.net:80/soap.asmx )

     

    The code in the book needs to get an errata and the component in Popfly needs an update.

     

    Let me ping the Popfly guys and see what we can do to get this fixed quickly.

     

    Thanks for bringing this to my attention.

     

    HTH

     

    --Alessandro

     

     

     

    Tuesday, January 13, 2009 5:02 AM
  • The Popfly team wrote me today and confirmed that they have ported the blocks to use the new APIs.

    You should be able to create the mashup you wanted.

     

    Thank you again for flagging the issue

     

    HTH

     

    --Alessandro

     

    Friday, January 23, 2009 7:36 AM

All replies

  •  

    I am not familiar with the code sample but it sounds like something that used API 1.1.

    If this is the case, you need to get the component ported to API 2.0 to use one of the AppIDs that you can get from http://search.live.com/developers or you can reuse an AppID for API 1.1 if you had one (which you can still get from http://search.live.com/developer - no -s )

     

    We are no longer generating new AppIDs for API 1.1, so if you are writing a new app, I am afraid you need to find ways to do it with API 2.0. If the application is simple, using some of the cut&paste-ready code from the MSDN samples you can do the porting yourself. The old API was a lot harder to use than the new one.

     

    HTH

     

    --Alessandro

    Monday, January 12, 2009 10:41 PM
  • Alessandro, 

    Thanks for your reply.  I am not certain I explained what is happening very well...so here goes.

     

    First of all, I am not an expert on this stuff. I have been programming for years in ASP, ASP.NET and SQL, but the new Ajax/Silverlight stuff is very new to me and I wanted to learn it. So I started creating a web portal from a book called Visual Web Developer 2008 Express - Step By Step. (Eric Griffin) Up until now things were progressing just fine.

     

    In chapter 11, it trys to highlight some advantages of Silverlight and Popfly that adds cool things to your web site. So I follow the steps as instructed and it keeps giving me the error trying to create the mashup in Popfly. I would just move on, but the popfly example is required in order to proceed with the tutorial project.  So I am stuck.

     

    As far as I know, I have never had a 1.1 API or any other before this project was started. This is a newly installed XP Pro SP3 system running Visual Web Dev Express and MSSQL Express 8.0. I am running I.E. 6 w/SP3...does that matter? 

     

    Steps to duplicate:

     

    1. Go to www.popfly.com

    2. Sign in and select create mashup...go ahead it's fun, I think.

    3. Select "Live News" box and drag it into the design area (white space)

    4. If the AppID tag (KeyTag) is not green, go get an AppID, if the AppID tag is green, you are ready

        (By the way...the link that sends you to get the Key/AppID is broken...had to dig for it myself)

    5. Click "Run" in the web interface and ....well, it will probably work for you. I get the error: Invalid value for AppID

     

    These steps from a Microsoft tutorial that is supposed to show examples of Silverlight in action.

    I can't even get this basic example to work. What am I doing wrong?

     

    Here is the code from the browser (this is auto-generated by Popfly):

    ------------------------------------------------------------------------------------------------------------------------------

    liveNews.__reserved.pendingCalls = 1;
    liveNews.search("Technology", 10, function(result)
         {
              try
              {
                   data["Live News"] = result;

                   environment.output(result); // Output the result because there is no block to send it to.

              }
              catch (ex)
              {
                   environment.reportError(ex);
              }
         }
    );

     

    Here's the debug Code:

    ------------------------------------------------------------------------------------------------------------------------------

    liveNews: Calling search("Technology", 10)...

    Getting data from http://soap.search.msn.com:80/webservices.asmx...
    The call to http://soap.search.msn.com:80/webservices.asmx returned with status 200.
    ERROR: liveNews: Error from search: Invalid value for AppID in request
     
    Many thanks for your assistance!
     
     
    Monday, January 12, 2009 11:32 PM
  •  

    You are doing absolutely nothing wrong - your code would work if you had an AppID for the right version of the service. Right now you are getting  a 2.0 AppID but are using it to call the 1.1 service. That is why you see this error. Your code confirms it (http://soap.search.msn.com:80/webservices.asmx is the old endpoint - API 2.0 would use http://api.search.live.net:80/soap.asmx )

     

    The code in the book needs to get an errata and the component in Popfly needs an update.

     

    Let me ping the Popfly guys and see what we can do to get this fixed quickly.

     

    Thanks for bringing this to my attention.

     

    HTH

     

    --Alessandro

     

     

     

    Tuesday, January 13, 2009 5:02 AM
  • Alessandro,

     

    Thank you. I appreciate your followup and your followthrough. I marked the reply as an answer for other folks.

     

    I was really excited about Silverlight...and then extremely bummed when I couldn't play with the code.

     

    I will try again in a few days. At least I know that the process was outlined correctly. 

     

    Again, many thanks.

     

    NicodemusGemini.

     

     

    Tuesday, January 13, 2009 6:49 AM
  • The Popfly team wrote me today and confirmed that they have ported the blocks to use the new APIs.

    You should be able to create the mashup you wanted.

     

    Thank you again for flagging the issue

     

    HTH

     

    --Alessandro

     

    Friday, January 23, 2009 7:36 AM
  • Alessandro,

     

    Thanks again for your followup. I will try it again soon.

     

    Nicodemus Gemini.

    Sunday, January 25, 2009 6:59 AM