Trouble Starting Computer Emulator when not on Live Internet connection RRS feed

  • Question

  • The only time I use my emulator is when I'm not connected to the internet (like when I'm flying and no gogoflight).  It seems that it takes a really long time to start and just gets stuck on the message below.  Sometimes, it eventually starts after 5 minutes or so, sometimes it never does.  Is there some trick I need to know to get it to start?  It seems to start right away when I have a live internet connection.

    [fabric] Role Instance: deployment(138).AzureProject.Web.0
    [fabric] Role state Busy

    Peter Kellner http://peterkellner.net Microsoft MVP • ASPInsider
    Thursday, December 23, 2010 7:01 PM

All replies

  • I don't think the compute emulator itself uses the network, but I wonder if any of your code does?  Maybe there's a diagnostics connection string or something else that points to cloud storage or another internet resource?
    Thursday, December 23, 2010 11:25 PM
  • hmm.  When I look at fiddler, I do see an attempt to access my blob storage but not sure where that is coming from.  I'm also not sure what I have in my configuration file below does (or stuff I don't need). I'm attaching below.


    <?xml version="1.0" encoding="utf-8"?>
    <ServiceConfiguration serviceName="AzureProject" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration" osFamily="1" osVersion="*">
     <Role name="Web">
     <Instances count="1" />
     <Setting name="Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString" value="DefaultEndpointsProtocol=https;AccountName=peters;AccountKey=<ACCOUNT KEY REMOVED BY SMARX>" />
     <Setting name="Microsoft.WindowsAzure.Plugins.RemoteAccess.Enabled" value="true" />
     <Setting name="Microsoft.WindowsAzure.Plugins.RemoteAccess.AccountUsername" value="pkellner" />
     <Setting name="Microsoft.WindowsAzure.Plugins.RemoteAccess.AccountEncryptedPassword" value="MIIBkgYJKoZIhvcNAQcDoIIBgzCC8CAQAxggFDMIIBPwIBADAnMBMxETAPBgNVBAMTCHBrZWxsbmVyAhBLAUdTs7a5i0kOj7Qu/OoxMA0GCSqGSIb3DQEBAQUABIIBAKHrDEZOAI8NuQt7SeM5uS2QAF8OTjRcLdFOOoJdp2Ksy0Qm78Z9egnCOA72WFcbG9C2n2Gvxqxj/a0FbDW6YLY9/8gKrlSEpf2tppmxHwOwc21O9Q7SGPQAwhiHRJR8wxolt+DCg9QGWGhAIzN3bYRa6DyCBJQVqlwfACto4Plc//wAkF4cLfL9ZFUng+Qz4EpN6XF0uznbrW3uEwOosPCiS7mHJzKTHbnPVbghEX9T09Ui8PQaAFEk/csnp76mD/gASvJs14dNG6+m5AO7DiJoTBrAoo2B9aiuSKdSEWoKiUyctBULvoQIf/lUAKTUmfT7fcwMwYJKoZIhvcNAQcBMBQGCCqGSIb3DQMHBAiyTLz386tpDIAQd7qv6K7Op/EHjQ8HV3XxlQ==" />
     <Setting name="Microsoft.WindowsAzure.Plugins.RemoteAccess.AccountExpiration" value="2011-03-18T23:59:59.0000000-07:00" />
     <Setting name="Microsoft.WindowsAzure.Plugins.RemoteForwarder.Enabled" value="true" />
     <Setting name="DiagnosticsConnectionString" value="DefaultEndpointsProtocol=https;AccountName=peterstest;AccountKey=<ACCOUNT KEY REMOVED BY SMARX>" />
     <Setting name="DataConnectionString" value="DefaultEndpointsProtocol=https;AccountName=peters;AccountKey=<ACCOUNT KEY REMOVED BY SMARX>" />
     <Setting name="Microsoft.WindowsAzure.Plugins.Data.ConnectionString" value="DefaultEndpointsProtocol=https;AccountName=peters;AccountKey=<ACCOUNT KEY REMOVED BY SMARX>" />
     <Certificate name="Microsoft.WindowsAzure.Plugins.RemoteAccess.PasswordEncryption" thumbprint="2047BAE532829573781BBE07" thumbprintAlgorithm="sha1" />

    Peter Kellner http://peterkellner.net Microsoft MVP • ASPInsider
    • Edited by Steve Marx Monday, December 27, 2010 12:30 AM hiding account keys
    Sunday, December 26, 2010 2:11 PM
  • Peter -

    The Diagnostics Agent is started automatically with the Azure SDK v1.3 pluggable diagnostics module. The diagnostics connection string you configured points to cloud storage and may be the source of the connection attempts.

    Sunday, December 26, 2010 7:25 PM
  • Peter, I edited your post to remove the account keys, but if those were the real keys for those accounts, you should really regenerate your keys immediately.  Anyone who saw this post before I edited it could go delete all your data now or store their own data and rack up a huge bill for you.

    Neil's probably right about the source of the network access.

    Monday, December 27, 2010 12:32 AM
  • Thanks Steve. I had chopped out the middle of all the keys (I'm, 99% sure). I should have done the entire key though just to be sure.
    Peter Kellner http://peterkellner.net Microsoft MVP • ASPInsider
    Monday, December 27, 2010 12:38 AM
  • Oh, then ignore me, just being overly paranoid. :)
    Monday, December 27, 2010 1:52 AM
  • I'm still a little baffled on the developer compute emulator. couple questions:

    1)  Now, I'm finding that when I Debug or Run my cloud project, the emulator will start and generate a long log of activity, but the browser never gets kicked off.  I'd run it by hand, but it seems that before, the localhost port kept changing each time I'd run it.  What I'd really like to do is treat the emulator the way I treat a live instance.  that is, be able to use web deploy and keep deploying to it over and over and not restart it each time.  My question is how do i find the port it is on?  And also, can I do deploys to it running so I rarely would need to restart it.

    2) Any good doc's someone can point me to on web deployment environment? that is, how to configure diagnostics, etc.


    Peter Kellner http://peterkellner.net Microsoft MVP • ASPInsider
    Monday, December 27, 2010 2:23 AM