Ask a questionAsk a question
 

AnswerAzure + Live Services

  • Wednesday, October 21, 2009 4:36 AMKeozII Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi I'm trying to use a hosted azure service with messenger api however I always get this error

    There's a problem with the site you are trying to share your information with. Please try again later. (The domain being used () does not match the registered domain ().)

    Localy it works just fine without azure and a private server, in the domain on the live service domain and return url I put the provided azure domain but it does not seem to work, I have changed application id and secret key on my application

    thanks

Answers

  • Wednesday, October 21, 2009 8:40 AMChrisW_ Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    In order to use Windows Live ID Delegated Authentication (which is the authentication mechanism used by the Messenger Web Toolkit) in Azure, you have to setup an external domain to be a CNAME pointer to yourapp.cloudapp.net. You then have to use the external domain for the Domain and Return URL fields in the Live Services Developer Portal. Also don't forget to use that external domain in your code as well. As a consequence however, your website has to be accessed via that external domain.

    You can find a more detailed explanation and an example here (the article actually describes it for the Live Framework, but it goes the same for the Messenger Web Toolkit).

    • Marked As Answer byKeozII Thursday, October 22, 2009 10:06 PM
    • Proposed As Answer byChrisW_ Wednesday, October 21, 2009 8:40 AM
    •  

All Replies

  • Wednesday, October 21, 2009 8:40 AMChrisW_ Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    In order to use Windows Live ID Delegated Authentication (which is the authentication mechanism used by the Messenger Web Toolkit) in Azure, you have to setup an external domain to be a CNAME pointer to yourapp.cloudapp.net. You then have to use the external domain for the Domain and Return URL fields in the Live Services Developer Portal. Also don't forget to use that external domain in your code as well. As a consequence however, your website has to be accessed via that external domain.

    You can find a more detailed explanation and an example here (the article actually describes it for the Live Framework, but it goes the same for the Messenger Web Toolkit).

    • Marked As Answer byKeozII Thursday, October 22, 2009 10:06 PM
    • Proposed As Answer byChrisW_ Wednesday, October 21, 2009 8:40 AM
    •  
  • Thursday, October 22, 2009 10:06 PMKeozII Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    It worked! thanks! :)