none
Microsoft LightSwitch Deployment:: "<cannot connect to windows azure>" using "visual studio 2012":

    Question

  • Microsoft Windows 8.0 PC using Microsoft Visual Studio Ultimate 2012. (Version 11.0.61030.00 Update 4)

    ---

    * Wonderful LightSwitch examples from: Beth Massi (Microsoft Corporation)

    Contoso Construction LightSwitch Sample Application:

    http://code.msdn.microsoft.com/windowsdesktop/Contoso-Construction-338952fd

    * Code works well as a Desktop Application as well as a Web Browser Application.

    ---

    Tried to follow this article to deploy the Contoso Construction Application on Windows Azure web site:

    http://blogs.msdn.com/b/bethmassi/archive/2012/10/18/easily-deploy-your-lightswitch-apps-to-azure-websites-in-3-minutes.aspx

    Video that goes with the above link:

    http://msdn.microsoft.com/en-us/library/jj822935.aspx

    We have a 90 day "demo" signed up for on the Windows Azure Site with a couple of dummy sites to play with to test the project. At least one of these is setup to use a database. We are able to download the Azure Subscription File which contains the proper credentials which seems to work properly when imported.

    However at "Service Configuration" setup on the Publish Application section, we see:

    "<cannot connect to windows azure>" when attempting to select the web site to send the project files to on the Windows Azure Site. Refresh button seems to look but shows the same message every time.

    * Tried: (1) Direct Connect to the internet, no change; (2) turning off the Windows Firewall, no change.

    We are at a loss as to what to do next!

    Any ideas on what may be wrong and/or how to fix the issue?

    BillNew


    DirectShow Filter Graph Spy: http://alax.info/blog/777 Extremely helpful for finding deep details for DirectShow Graphs.

    Wednesday, May 07, 2014 11:53 PM

Answers

All replies

  • This is a known issue due to a service interface change by Azure Websites.  You can publish to Azure Web Sites using the IIS path of the publish wizard by following the steps in this blog post:

    http://blogs.msdn.com/b/david_kidder/archive/2013/07/19/publish-lightswitch-2013-preview-applications-to-windows-azure-web-sites-without-the-azure-sdk.aspx

    (Disregard that it refers to the 2013 preview, this will work for VS 2012)


    David Kidder | Senior SDET | Microsoft | LightSwitch

    Thursday, May 08, 2014 2:13 PM
    Moderator
  • Dave,

    Thank you for the quick response.

    That worked for us.

    We now have an issue of Username and Password on the Contoso Construction program on the created site. Any combination of Username and Password that we used on the stuff refuses to let us login and see the site.

    Do you have any idea why we would have this new issue?

    ---

    We are now going to look at a new project of our own doing the same type of things without UserName and Password on a new LightSwitch Test Project.

    Thank you for your assistance.

    BillNew


    DirectShow Filter Graph Spy: http://alax.info/blog/777 Extremely helpful for finding deep details for DirectShow Graphs.

    Thursday, May 08, 2014 8:46 PM
  • I would try re-publishing and making sure that you check the "Create the administrator user" (I can't recall the exact wording, but it's something like that).  Specifying credentials here and re-publishing should allow you to login with these creds.  If that doesn't work, something is definitely amiss.

    David Kidder | Senior SDET | Microsoft | LightSwitch

    Friday, May 09, 2014 3:03 AM
    Moderator
  • Dave,

    Looked at the downloaded "publish" data for the site and found the proper login password.

    Thank you!

    BillNew

    DirectShow Filter Graph Spy: http://alax.info/blog/777 Extremely helpful for finding deep details for DirectShow Graphs.

    Friday, May 09, 2014 8:56 PM