Issue with VS Tools ( May CTP)Hi,<br/><br/>I was able to debug and run my app pretty smoothly before. Morning i had a notification that new CTP is available, Do u want to update?<br/><br/>i just said Yes. Then onwards, if F5 i got this messaged. <br/><br/>In VS, Status:  waiting for service deployment  then messagebox with<br/><br/><strong>&quot;Role instances did not start with in the time allowed. Please try again. If you continue to encounter this problem try shutting down the Development Fabric.&quot;<br/></strong><br/>i tried shutting down fabric/machine, everytime I'm getting the same.<br/><br/>please help<br/><br/>Thanks,<br/>Venkat<br/><br/><br/>© 2009 Microsoft Corporation. All rights reserved.Fri, 21 Aug 2009 08:55:25 Z7872d95c-3e56-499c-af0b-ed996c51a0cahttp://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/7872d95c-3e56-499c-af0b-ed996c51a0ca#7872d95c-3e56-499c-af0b-ed996c51a0cahttp://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/7872d95c-3e56-499c-af0b-ed996c51a0ca#7872d95c-3e56-499c-af0b-ed996c51a0cavenkatMreddyhttp://social.msdn.microsoft.com/Profile/en-US/?user=venkatMreddyIssue with VS Tools ( May CTP)Hi,<br/><br/>I was able to debug and run my app pretty smoothly before. Morning i had a notification that new CTP is available, Do u want to update?<br/><br/>i just said Yes. Then onwards, if F5 i got this messaged. <br/><br/>In VS, Status:  waiting for service deployment  then messagebox with<br/><br/><strong>&quot;Role instances did not start with in the time allowed. Please try again. If you continue to encounter this problem try shutting down the Development Fabric.&quot;<br/></strong><br/>i tried shutting down fabric/machine, everytime I'm getting the same.<br/><br/>please help<br/><br/>Thanks,<br/>Venkat<br/><br/><br/>Mon, 01 Jun 2009 12:29:00 Z2009-06-01T12:29:00Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/7872d95c-3e56-499c-af0b-ed996c51a0ca#752d5f75-9f09-4afb-af60-00b7f7a30999http://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/7872d95c-3e56-499c-af0b-ed996c51a0ca#752d5f75-9f09-4afb-af60-00b7f7a30999BrentDaCodeMonkeyhttp://social.msdn.microsoft.com/Profile/en-US/?user=BrentDaCodeMonkeyIssue with VS Tools ( May CTP)<p>Double-check the solution's startup project. Make sure its still set to the cloud services project and not the individual web or worker roles.</p>Mon, 01 Jun 2009 12:47:34 Z2009-06-01T12:47:34Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/7872d95c-3e56-499c-af0b-ed996c51a0ca#9f867028-dca3-45f9-89fd-acb7af1dcad4http://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/7872d95c-3e56-499c-af0b-ed996c51a0ca#9f867028-dca3-45f9-89fd-acb7af1dcad4Michael Hart Hotmailhttp://social.msdn.microsoft.com/Profile/en-US/?user=Michael%20Hart%20HotmailIssue with VS Tools ( May CTP)I had exactly the same problem - it seems there's an issue with the development fabric only attaching to web roles after Application_Start has completed (or something like that). <div><br/></div> <div>In my case, I was getting exceptions during my app initialisation as I needed to be running in full trust - I hadn't had an issue with this previously. <strong>Adding </strong><span style="line-height:15px"><strong>enableNativeCodeExecution</strong></span><strong>=&quot;true&quot; to my web role fixed the problem for me.</strong></div> <div><br/></div> <div>More on this here: <a title="http://msdn.microsoft.com/en-us/library/dd573353.aspx" href="http://msdn.microsoft.com/en-us/library/dd573353.aspx">http://msdn.microsoft.com/en-us/library/dd573353.aspx</a></div> <div><br/></div> <div>If this isn't the problem you're having, I'd check the Windows Event Viewer for any exceptions you might be getting. And perhaps star this issue:</div> <div><br/></div> <div><a title="https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=462449" href="https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=462449">https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=462449</a></div> <div><br/></div> <div>Hope that helps,</div> <div><br/></div> <div>Michael</div>Tue, 02 Jun 2009 01:38:40 Z2009-06-02T06:20:30Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/7872d95c-3e56-499c-af0b-ed996c51a0ca#bebf46e8-daeb-48f3-8393-e2a89e9db607http://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/7872d95c-3e56-499c-af0b-ed996c51a0ca#bebf46e8-daeb-48f3-8393-e2a89e9db607Brian Howdenhttp://social.msdn.microsoft.com/Profile/en-US/?user=Brian%20HowdenIssue with VS Tools ( May CTP)Chalk me up as another &quot;I have the exact same problem&quot;.  My app worked in dev with the March build.  I upgraded to the May ctp and get the same issues as this thread.  enableNativeCodeExecution=&quot;true&quot; did not make any difference for me.  I have uninstalled and reinstalled VS 2008, sp1, the Azure toolkit and SDK, SQL Server, and SP1 of Vista but none of it makes any difference.  On the last reinstall I followed the script at:<br/><a href="http://blogs.msdn.com/edunhill/archive/2009/05/19/getting-started-with-azure-1.aspx">http://blogs.msdn.com/edunhill/archive/2009/05/19/getting-started-with-azure-1.aspx</a> as closely as I could.  The only difference was I was using Vista so the .NET framework shows up in the windows programs as .NET 3.0 and I am using the dev version of SQL server 2008 but the DSINIT worked fine.<br/><br/>If I hadn't seen it working under the March CTP I wouldn't have believed it ever worked!  Isn't anybody else having the same issue?<br/><br/>BrianThu, 04 Jun 2009 00:13:53 Z2009-06-04T00:13:53Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/7872d95c-3e56-499c-af0b-ed996c51a0ca#f34a5780-c56a-439d-9b99-1eb819642f52http://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/7872d95c-3e56-499c-af0b-ed996c51a0ca#f34a5780-c56a-439d-9b99-1eb819642f52Michael Hart Hotmailhttp://social.msdn.microsoft.com/Profile/en-US/?user=Michael%20Hart%20HotmailIssue with VS Tools ( May CTP)Hi Brian - do you see any possibly related exceptions in Visual Studio's Output console, or the Windows Event Viewer? <div><br/></div> <div>I still think this is an issue to do with Application_Start - if an exception is thrown, or a break point is set, etc - if Application_Start doesn't return, this alert is displayed (and the fabric will shutdown).</div>Thu, 04 Jun 2009 02:14:30 Z2009-06-04T02:14:30Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/7872d95c-3e56-499c-af0b-ed996c51a0ca#99eb1e6f-35da-462f-afd0-22a06507e8d5http://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/7872d95c-3e56-499c-af0b-ed996c51a0ca#99eb1e6f-35da-462f-afd0-22a06507e8d5Pita.Ohttp://social.msdn.microsoft.com/Profile/en-US/?user=Pita.OIssue with VS Tools ( May CTP)I made two installations last night, and both were flawless:<br/> <br/> In one case, I use 64-bit Vista SP2 and Visual Studio 2008 SP1. I successfully installed the MayCTP upgrade over the MarchCTP but before doing that, I first followed the process for applying those 3 hotfixes listed on the download page  <a title=here href="http://www.microsoft.com/downloads/details.aspx?FamilyID=11b451c4-7a7b-4537-a769-e1d157bad8c6&amp;displaylang=en" title=here>here</a> .<br/> <br/> In the second case, I use 32-bit Windows 7 RC and VS 2010 Beta. I successfully installed a clean copy of MayCTP<br/><hr class="sig">Pita.O: <a href="http://www.arizentax.com/" title="tax filing, canada, arizen corporation">http://www.arizentax.com/</a>Thu, 04 Jun 2009 16:30:40 Z2009-06-04T16:30:40Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/7872d95c-3e56-499c-af0b-ed996c51a0ca#6b31d075-9394-4edc-bb16-7398ddb3bea0http://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/7872d95c-3e56-499c-af0b-ed996c51a0ca#6b31d075-9394-4edc-bb16-7398ddb3bea0Brian Howdenhttp://social.msdn.microsoft.com/Profile/en-US/?user=Brian%20HowdenIssue with VS Tools ( May CTP)I was actually using Windows 7 with the March ctp and it ran fine locally but I was having trouble deploying to the cloud.  On the theory that I should be trying with supported products I did a clean Vista / VS 2008 install.  The May ctp came available the same day so I used it and that is when my problems started.  The output window in VS gives the following:<br/><span style="font-size:xx-small"> <p>CCT: Warning: enableNativeCodeExecution has been enabled for role 'WebRole' on a 32-bit workstation. The use of native code execution features such as P/Invoke may require migration to 64-bit to work correctly as Windows Azure Hosted Services run in a 64-bit environment. See http://go.microsoft.com/fwlink/?LinkId=145047 for details.</p> <p>CCT: Role instances did not start within the time allowed. Please try again. If you continue to encounter this behavior please try shutting down the Development Fabric.<br/><br/>The event viewer shows:<br/><br/><span style="font-size:xx-small"> <p>An unhandled exception occurred and the process was terminated.</p> <p>Application ID: /LM/W3SVC/1/ROOT</p> <p>Process ID: 2508</p> <p>Exception: Microsoft.ServiceHosting.ServiceRuntime.RoleException<br/><br/><br/>The details pane of the event viewer shows:<br/><br/>An unhandled exception occurred and the process was terminated. Application ID: /LM/W3SVC/1/ROOT Process ID: 2508 Exception: Microsoft.ServiceHosting.ServiceRuntime.RoleException Message: Role Start Failed StackTrace: at Microsoft.ServiceHosting.ServiceRuntime.RoleManager.StartRole() at Microsoft.ServiceHosting.ServiceRuntime.Implementation.Loader.RoleRuntimeBridge.StartRole() at Microsoft.ServiceHosting.ServiceRuntime.Implementation.Loader.RdRuntimeBootstrapper.StartRoleUnderRdRoleRuntime(Object o) at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart(Object obj) InnerException: System.Security.SecurityException Message: Request for the permission of type 'System.Security.Permissions.EnvironmentPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. StackTrace: at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark&amp; stackMark, Boolean isPermSet) at System.Security.CodeAccessPermission.Demand() at System.Environment.GetEnvironmentVariable(String variable) at Microsoft.ServiceHosting.ServiceRuntime.Internal.RuntimeCommon.GetRoleEntryPointProxyFactory(String&amp; data) at Microsoft.ServiceHosting.ServiceRuntime.Internal.RuntimeCommon.GetEntryPoint(Boolean isWebRole) at Microsoft.ServiceHosting.ServiceRuntime.Internal.WebRoleMain.RoleRoot.Initialize() at Microsoft.ServiceHosting.ServiceRuntime.RoleManager.StartRoleInternal() at Microsoft.ServiceHosting.ServiceRuntime.RoleManager.StartRole()<br/><br/><br/>This all backs up your theory but so far I don't have any ideas why it is throwing the exception.<br/><br/>Thanks for the thoughts.<br/><br/>Brian</p> </span></p> </span>Thu, 04 Jun 2009 16:48:32 Z2009-06-04T16:48:32Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/7872d95c-3e56-499c-af0b-ed996c51a0ca#310c9997-3756-4007-a3e7-5923b76449b8http://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/7872d95c-3e56-499c-af0b-ed996c51a0ca#310c9997-3756-4007-a3e7-5923b76449b8Michael Hart Hotmailhttp://social.msdn.microsoft.com/Profile/en-US/?user=Michael%20Hart%20HotmailIssue with VS Tools ( May CTP)Any way to narrow down which part of your Application_Start is throwing the exception (assuming it is in Application_Start)? <div><br/></div> <div>I ended up just commenting things out until it worked and then worked backwards.</div> <div><br/></div> <div>(Edit: Also, just in case you haven't yet - if you've got any worker roles, set enableNativeCodeExecution for them too - it may be that RoleEntryPoint.Start suffers from the same problem as Application_Start)</div>Thu, 04 Jun 2009 23:47:06 Z2009-06-04T23:52:20Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/7872d95c-3e56-499c-af0b-ed996c51a0ca#f4328c33-a765-48bb-a62a-1242aae708c1http://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/7872d95c-3e56-499c-af0b-ed996c51a0ca#f4328c33-a765-48bb-a62a-1242aae708c1Brian Howdenhttp://social.msdn.microsoft.com/Profile/en-US/?user=Brian%20HowdenIssue with VS Tools ( May CTP)At the moment, I created a new Azure project and selected the Web Cloud Service template, Inserted hello world between the div statements in the aspx file and hit F5.  When that failed, I edited the ServiceDefinition config file to set the native code exectution to true but it didn't make any difference.  Which file is the Application_Start in?  The only role at the moment is the one running the aspx file.<br/><br/>BrianFri, 05 Jun 2009 00:00:57 Z2009-06-05T00:00:57Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/7872d95c-3e56-499c-af0b-ed996c51a0ca#5b1ff347-f198-4f3a-9051-0982e8c6dbbahttp://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/7872d95c-3e56-499c-af0b-ed996c51a0ca#5b1ff347-f198-4f3a-9051-0982e8c6dbbaMichael Hart Hotmailhttp://social.msdn.microsoft.com/Profile/en-US/?user=Michael%20Hart%20HotmailIssue with VS Tools ( May CTP)Hmmm, right - I didn't realise it was happening for you with such a simple template. Application_Start is usually in Global.asax.cs, but you may not even have that file in such a simple app. <div><br/></div> <div>The only thing I can think of would be that it's a permissions problem somewhere, but I don't know enough about Azure to really speculate where. Are you running Visual Studio as Administrator? If not, that may help.</div>Fri, 05 Jun 2009 01:07:56 Z2009-06-05T01:07:56Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/7872d95c-3e56-499c-af0b-ed996c51a0ca#f08b4b4b-8c71-4b21-ba9e-d6d775fe8c97http://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/7872d95c-3e56-499c-af0b-ed996c51a0ca#f08b4b4b-8c71-4b21-ba9e-d6d775fe8c97Brian Howdenhttp://social.msdn.microsoft.com/Profile/en-US/?user=Brian%20HowdenIssue with VS Tools ( May CTP)Re Admin.  Yes.  It squwaks if you select an Azure project without admin rights.  I am assuming it is something pretty stupid but I am not sure what.  I guess the next step is to try one of the prebuilt virtual machines MS supplies with a trial license of VS.<br/><br/>BrianFri, 05 Jun 2009 16:06:58 Z2009-06-05T16:06:58Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/7872d95c-3e56-499c-af0b-ed996c51a0ca#59f1c2a2-8063-412c-b5b2-8bf168ba34ebhttp://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/7872d95c-3e56-499c-af0b-ed996c51a0ca#59f1c2a2-8063-412c-b5b2-8bf168ba34ebWally McClurehttp://social.msdn.microsoft.com/Profile/en-US/?user=Wally%20McClureIssue with VS Tools ( May CTP)I just started getting this error when I pointed my app to run against the local data store.  I've tried all of the suggestions.  any one have any other suggestions?<br/> <br/> I'm not even getting to my application_onstart event.  I've got a break point in my first executable line.<br/> <br/> FYI, I cleaned up my web.config file and removed a couple of unused sections that I had put in.  Once I did that, the problem went away.  I'm able to debug again.  Yippee.<br/> <br/> Wally<br/> <hr class=sig> MVP in ASP.NET - ASPInsider - Author - Otherwise I am a loser.Mon, 08 Jun 2009 00:13:04 Z2009-06-08T01:19:02Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/7872d95c-3e56-499c-af0b-ed996c51a0ca#45eb43bf-30c8-4d5d-a25e-0d54a76e8378http://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/7872d95c-3e56-499c-af0b-ed996c51a0ca#45eb43bf-30c8-4d5d-a25e-0d54a76e8378ijharkinhttp://social.msdn.microsoft.com/Profile/en-US/?user=ijharkinIssue with VS Tools ( May CTP)I have a work-around which may help some people with this error message, from studying the Cartrackr cloud app.<br/><a href="http://blog.maartenballiauw.be/post/2008/12/09/Track-your-car-expenses-in-the-cloud!-CarTrackr-on-Windows-Azure-Part-1-Introduction.aspx">http://blog.maartenballiauw.be/post/2008/12/09/Track-your-car-expenses-in-the-cloud!-CarTrackr-on-Windows-Azure-Part-1-Introduction.aspx</a><br/>which kept working when everything else broke in the May CTP<br/><br/>In global.asax remove all code from <br/><span style="font-size:x-small"><span style="font-size:x-small"> <p>Application_Start<br/><br/>and move your data store initialising code to <br/>Application_BeginRequest</p> </span></span> <p> </p> I tried this after all the suggestions above failed, but they were still applied to my codeTue, 09 Jun 2009 10:36:18 Z2009-06-09T10:38:58Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/7872d95c-3e56-499c-af0b-ed996c51a0ca#ab2c6c7f-d916-4c99-80ad-570549af4501http://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/7872d95c-3e56-499c-af0b-ed996c51a0ca#ab2c6c7f-d916-4c99-80ad-570549af4501John Ngohttp://social.msdn.microsoft.com/Profile/en-US/?user=John%20NgoIssue with VS Tools ( May CTP)You will get this error if Windows Communication Foundation HTTP Activation and ASP.NET are disabled.  Make sure these Windows Features are enabled.  It shows you how to do so here:<br/> <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=11b451c4-7a7b-4537-a769-e1d157bad8c6&amp;displaylang=en">http://www.microsoft.com/downloads/details.aspx?FamilyID=11b451c4-7a7b-4537-a769-e1d157bad8c6&amp;displaylang=en</a> <br/> <br/> <span style="font-size:11pt;font-family:'Calibri','sans-serif';color:#1f497d"><br/> </span>Thu, 18 Jun 2009 20:12:36 Z2009-06-18T20:14:32Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/7872d95c-3e56-499c-af0b-ed996c51a0ca#d82a21c0-48b8-4bd1-bb03-b17ded5813fdhttp://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/7872d95c-3e56-499c-af0b-ed996c51a0ca#d82a21c0-48b8-4bd1-bb03-b17ded5813fdRombhttp://social.msdn.microsoft.com/Profile/en-US/?user=RombIssue with VS Tools ( May CTP)<blockquote>You will get this error if Windows Communication Foundation HTTP Activation and ASP.NET are disabled.  Make sure these Windows Features are enabled.  It shows you how to do so here:<br/> <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=11b451c4-7a7b-4537-a769-e1d157bad8c6&amp;displaylang=en">http://www.microsoft.com/downloads/details.aspx?FamilyID=11b451c4-7a7b-4537-a769-e1d157bad8c6&amp;displaylang=en</a> <br/> <br/> <span style="font-size:11pt;font-family:'Calibri','sans-serif';color:#1f497d"><br/> </span></blockquote> It doesn't help. I installed May CTP keeping those instructions and checked them in Windows Vista features again - they're on.<br/> However the error persists.<br/>Fri, 19 Jun 2009 18:03:04 Z2009-06-19T18:03:04Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/7872d95c-3e56-499c-af0b-ed996c51a0ca#e01028e4-6a1c-4203-b3bc-1d10f44814fdhttp://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/7872d95c-3e56-499c-af0b-ed996c51a0ca#e01028e4-6a1c-4203-b3bc-1d10f44814fdSparkCodehttp://social.msdn.microsoft.com/Profile/en-US/?user=SparkCodeIssue with VS Tools ( May CTP)Is there any fix for this ? This is a highly annoying error that is significantly affecting our project ? <div><br/></div> <div>The startup build time on the project takes 4-5 minutes on local environment - if it starts at all - making it virtually impossible to work?</div> <div><br/></div> <div>This comment</div> <div><br/></div> <div><em>I was also getting the same problem - it seems it was to do with a linked DLL requiring full trust, and this DLL was being loaded during Application_Start - the only way I realised this was throwing an exception was by looking at the Event Viewer as there was no other output.<br/><br/>Adding enableNativeCodeExecution=&quot;true&quot; to my web role fixed the problem for me - but this was a totally non-obvious solution, so it would be good if this issue could be fixed.</em></div> <div><em><br/></em></div> <div>Makes absolutely no difference for me ?</div>Mon, 22 Jun 2009 02:45:23 Z2009-06-22T02:51:15Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/7872d95c-3e56-499c-af0b-ed996c51a0ca#1c4bd3b6-5afc-44ac-aebc-63b086e65c56http://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/7872d95c-3e56-499c-af0b-ed996c51a0ca#1c4bd3b6-5afc-44ac-aebc-63b086e65c56SparkCodehttp://social.msdn.microsoft.com/Profile/en-US/?user=SparkCodeIssue with VS Tools ( May CTP)Does anyone from MSFT have a answer to this ?  <div><br/></div> <div> Currently - project has this: </div> <div><br/></div> <div><ol> <li>When I start project without debugging I get errors (I get yellow screens of death) without details to identify the problem.</li> <li>When I start with debugging to break on line with error I get azure sdk exception:</li> </ol> <div><span style="white-space:pre"><em> </em></span><em>   Role instances did not start within the time allowed.  Please try again.  If you continue to encounter this behavior please try shutting down the Development Fabric.<br/></em></div> <div><br/></div> <div><strong>There must be a fix to this ? Really appreciate some help ?</strong></div> </div>Tue, 23 Jun 2009 02:09:02 Z2009-06-23T02:09:02Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/7872d95c-3e56-499c-af0b-ed996c51a0ca#a7331e3f-d7cb-483a-947c-fcff3f72cc46http://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/7872d95c-3e56-499c-af0b-ed996c51a0ca#a7331e3f-d7cb-483a-947c-fcff3f72cc46Jim Nakashimahttp://social.msdn.microsoft.com/Profile/en-US/?user=Jim%20NakashimaIssue with VS Tools ( May CTP)Very sorry for the inconvenience -- we are trying to isolate a repro and debug the issue.  More to come.<hr class="sig">Jim Nakashima, Microsoft. (This post is provided &quot;as-is&quot;)Wed, 24 Jun 2009 21:32:15 Z2009-06-24T21:32:15Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/7872d95c-3e56-499c-af0b-ed996c51a0ca#28f786cc-237f-48a9-8dbd-b99500e8c48dhttp://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/7872d95c-3e56-499c-af0b-ed996c51a0ca#28f786cc-237f-48a9-8dbd-b99500e8c48daggiebenhttp://social.msdn.microsoft.com/Profile/en-US/?user=aggiebenIssue with VS Tools ( May CTP)<blockquote>I had exactly the same problem - it seems there's an issue with the development fabric only attaching to web roles after Application_Start has completed (or something like that). <div><br/></div> <div>In my case, I was getting exceptions during my app initialisation as I needed to be running in full trust - I hadn't had an issue with this previously. <strong>Adding </strong><span style="line-height:15px"><strong>enableNativeCodeExecution</strong></span><strong>=&quot;true&quot; to my web role fixed the problem for me.</strong></div> <div><br/></div> <div>More on this here: <a title="http://msdn.microsoft.com/en-us/library/dd573353.aspx" href="http://msdn.microsoft.com/en-us/library/dd573353.aspx">http://msdn.microsoft.com/en-us/library/dd573353.aspx</a></div> <div><br/></div> <div>If this isn't the problem you're having, I'd check the Windows Event Viewer for any exceptions you might be getting. And perhaps star this issue:</div> <div><br/></div> <div><a title="https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=462449" href="https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=462449">https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=462449</a></div> <div><br/></div> <div>Hope that helps,</div> <div><br/></div> <div>Michael</div> </blockquote> <br/>I tried this, but to no avail.  Here's the full record from the event log:<br/><br/> <pre>Event code: 3005 Event message: An unhandled exception has occurred. Event time: 7/1/2009 4:57:50 PM Event time (UTC): 7/1/2009 9:57:50 PM Event ID: 66d143ee7f674eeb9ca97f0c3c69c723 Event sequence: 4 Event occurrence: 1 Event detail code: 0 Application information: Application domain: /LM/W3SVC/1/ROOT-1-128909590695579972 Trust level: RdTrust Application Virtual Path: / Application Path: C:\Users\Ben\Development\&lt;snip&gt;\Projects\WellDone\Azure WellDone\WellDoneCloudService\bin\Debug\WellDoneCloudService.csx\roles\Web\ Machine name: ANAKIN Process information: Process ID: 7952 Process name: RdRoleHost.exe Account name: Anakin\Ben Exception information: Exception type: HttpException Exception message: The underlying connection was closed: An unexpected error occurred on a send. Request information: Request URL: http://127.0.0.1:5100/do.__rd_runtime_init__?shutdownEvent=1B8FBE2B70-D19F-4050-A641-8273CB5666081D Request path: /do.__rd_runtime_init__ User host address: 127.0.0.1 User: Is authenticated: False Authentication Type: Thread account name: Anakin\Ben Thread information: Thread ID: 7 Thread account name: Anakin\Ben Is impersonating: False Stack trace: at System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) at System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) at System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) at System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) at System.Web.HttpApplicationFactory.GetPipelineApplicationInstance(IntPtr appContext, HttpContext context) at System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) Custom event details:<br/><br/><br/></pre> I've tried everything I can find.  The above suggestions didn't help anything.  I can open the fabric UI and see the Web Role trying to start, but it just goes from a start state to a stop state with no other information printed to the log.  I've double checked that the IIS7 components required by the fabric were installed, and I've explicitly started both the fabric, the storage service, and VS2008 as administrator.<br/><br/>I get nada.  If it's of any use to anyone, I'm trying to write a MVC web role project that hits the table storage as done in the chanel9 video of the PDC2008 deep dive on table storage.<hr class="sig">benWed, 01 Jul 2009 22:05:43 Z2009-07-01T22:05:43Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/7872d95c-3e56-499c-af0b-ed996c51a0ca#cade7520-ded1-424b-96dd-430db6860ba0http://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/7872d95c-3e56-499c-af0b-ed996c51a0ca#cade7520-ded1-424b-96dd-430db6860ba0aggiebenhttp://social.msdn.microsoft.com/Profile/en-US/?user=aggiebenIssue with VS Tools ( May CTP)<p>Finally discovered the issue.  In the PDC2008 video, it appeared at first to me that the demo web role was referencing a local storage service, when in fact it was hitting the real storage service.<br/><br/>I amended my web.config to refer to the storage service at 127.0.0.1 using the documented local storage account and key, and all worked as expected.</p><hr class="sig">benWed, 01 Jul 2009 22:30:45 Z2009-07-01T22:30:45Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/7872d95c-3e56-499c-af0b-ed996c51a0ca#f79be19f-fee3-4a44-90b8-4181de20bfcfhttp://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/7872d95c-3e56-499c-af0b-ed996c51a0ca#f79be19f-fee3-4a44-90b8-4181de20bfcfCheryl Simpsonhttp://social.msdn.microsoft.com/Profile/en-US/?user=Cheryl%20SimpsonIssue with VS Tools ( May CTP)Just thought I'd throw this one out.  I was having the same problem.  My app was working fine until one change, then it wouldn't get past the stupid 'Role Init' bug.  I realized that when I added a new event handler for handling JSON connections using AJAX, I copied and pasted the new entry.  While I did change the class it was pointing to, I forgot to update the NAME of the handler.  So, I ended up with two handlers with the same name.<br/><br/>As soon as I fixed this name issue, the bug went away.  <br/><br/>Just one more area to look into when you run across this bug! Thu, 16 Jul 2009 08:16:25 Z2009-07-16T08:16:25Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/7872d95c-3e56-499c-af0b-ed996c51a0ca#dbc09ed6-6d09-4abe-a2d6-cf6c5c50cb1ehttp://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/7872d95c-3e56-499c-af0b-ed996c51a0ca#dbc09ed6-6d09-4abe-a2d6-cf6c5c50cb1eJim Nakashimahttp://social.msdn.microsoft.com/Profile/en-US/?user=Jim%20NakashimaIssue with VS Tools ( May CTP)<p>Wanted to update this thread with the latest.  The <strong>&quot;Role instances did not start with in the time allowed.&quot; </strong>error message can actually be shown in multiple situations, it's a bit of a catch all -- it is shown when we timeout trying to get the roles running and the devfabric responds back that they are ready to go.<br/><br/>In the <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=8d75d4f7-77a4-4adf-bce8-1b10608574bb&amp;displaylang=en">July release of the Tools + SDK</a>, we know that we solved at least one of the issues in which people were seeing this problem.  Please uninstall, reinstall and try again.  (we have some reports of folks having to manually uninstall everything and reinstall before the problem went away so please give that a try)<br/><br/>If you continue to see issue with this, please let us know -- we want to isolate and fix any outstanding issues that may remain (hopefully there aren't any, fingers crossed).<br/><br/>Thank you.</p><hr class="sig">Jim Nakashima, Microsoft. (This post is provided &quot;as-is&quot;)Tue, 21 Jul 2009 17:49:05 Z2009-07-21T17:49:05Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/7872d95c-3e56-499c-af0b-ed996c51a0ca#864c8630-47cc-4bc6-8e2d-ac8778db1ee5http://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/7872d95c-3e56-499c-af0b-ed996c51a0ca#864c8630-47cc-4bc6-8e2d-ac8778db1ee5Chander Damodaranhttp://social.msdn.microsoft.com/Profile/en-US/?user=Chander%20DamodaranIssue with VS Tools ( May CTP)I had the exact same issue upgrading from Mar 2009 CTP, i just followed the pre-requisites section and then additionally installed .NET Services July 2009 CTP and then reinstalled Windows Azure SDK and Visual Studio tools of July 2009, the problems disappeared.<br/><br/>Hope this helps!<br/><br/>Chander<br/>Wed, 22 Jul 2009 09:06:21 Z2009-07-22T09:06:21Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/7872d95c-3e56-499c-af0b-ed996c51a0ca#33a3644c-1252-497b-8409-348b00fc932chttp://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/7872d95c-3e56-499c-af0b-ed996c51a0ca#33a3644c-1252-497b-8409-348b00fc932crevivingthewebhttp://social.msdn.microsoft.com/Profile/en-US/?user=revivingthewebIssue with VS Tools ( May CTP)So i am getting this issue with July 2009 CTP...   Here is the security event that keeps popping up when i try to run my Cloud Service.  This is only occurring with the CGI Web Role...<br/> <br/> BODY{font:x-small 'Verdana';margin-right:1.5em} .c{cursor:hand} .b{color:red;font-family:'Courier New';font-weight:bold;text-decoration:none} .e{margin-left:1em;text-indent:-1em;margin-right:1em} .k{margin-left:1em;text-indent:-1em;margin-right:1em} .t{color:#990000} .xt{color:#990099} .ns{color:red} .dt{color:green} .m{color:blue} .tx{font-weight:bold} .db{text-indent:0px;margin-left:1em;margin-top:0px;margin-bottom:0px;padding-left:.3em;border-left:1px solid #CCCCCC;font:small Courier} .di{font:small Courier} .d{color:blue} .pi{color:blue} .cb{text-indent:0px;margin-left:1em;margin-top:0px;margin-bottom:0px;padding-left:.3em;font:small Courier;color:#888888} .ci{font:small Courier;color:#888888} PRE{margin:0px;display:inline} <div class=e> <div class=c style="margin-left:1em;text-indent:-2em"><a class=b href="#" class=b>-</a> <span class=m>&lt;</span> <span class=t>Event</span> <span class=ns> xmlns</span> <span class=m>=&quot;</span> <strong class=ns>http://schemas.microsoft.com/win/2004/08/events/event</strong> <span class=m>&quot;</span> <span class=m>&gt;</span></div> <div> <div class=e> <div class=c style="margin-left:1em;text-indent:-2em"><a class=b href="#" class=b>-</a> <span class=m>&lt;</span> <span class=t>System</span> <span class=m>&gt;</span></div> <div> <div class=e> <div style="margin-left:1em;text-indent:-2em"><span class=b> </span> <span class=m>&lt;</span> <span class=t>Provider</span> <span class=t>Name</span> <span class=m>=&quot;</span> <strong>Microsoft-Windows-Security-Auditing</strong> <span class=m>&quot;</span> <span class=t> Guid</span> <span class=m>=&quot;</span> <strong>{54849625-5478-4994-a5ba-3e3b0328c30d}</strong> <span class=m>&quot;</span> <span class=m> /&gt;</span></div> </div> <div class=e> <div style="margin-left:1em;text-indent:-2em"><span class=b> </span> <span class=m>&lt;</span> <span class=t>EventID</span> <span class=m>&gt;</span> <span class=tx>5032</span> <span class=m>&lt;/</span> <span class=t>EventID</span> <span class=m>&gt;</span></div> </div> <div class=e> <div style="margin-left:1em;text-indent:-2em"><span class=b> </span> <span class=m>&lt;</span> <span class=t>Version</span> <span class=m>&gt;</span> <span class=tx>0</span> <span class=m>&lt;/</span> <span class=t>Version</span> <span class=m>&gt;</span></div> </div> <div class=e> <div style="margin-left:1em;text-indent:-2em"><span class=b> </span> <span class=m>&lt;</span> <span class=t>Level</span> <span class=m>&gt;</span> <span class=tx>0</span> <span class=m>&lt;/</span> <span class=t>Level</span> <span class=m>&gt;</span></div> </div> <div class=e> <div style="margin-left:1em;text-indent:-2em"><span class=b> </span> <span class=m>&lt;</span> <span class=t>Task</span> <span class=m>&gt;</span> <span class=tx>12292</span> <span class=m>&lt;/</span> <span class=t>Task</span> <span class=m>&gt;</span></div> </div> <div class=e> <div style="margin-left:1em;text-indent:-2em"><span class=b> </span> <span class=m>&lt;</span> <span class=t>Opcode</span> <span class=m>&gt;</span> <span class=tx>0</span> <span class=m>&lt;/</span> <span class=t>Opcode</span> <span class=m>&gt;</span></div> </div> <div class=e> <div style="margin-left:1em;text-indent:-2em"><span class=b> </span> <span class=m>&lt;</span> <span class=t>Keywords</span> <span class=m>&gt;</span> <span class=tx>0x8010000000000000</span> <span class=m>&lt;/</span> <span class=t>Keywords</span> <span class=m>&gt;</span></div> </div> <div class=e> <div style="margin-left:1em;text-indent:-2em"><span class=b> </span> <span class=m>&lt;</span> <span class=t>TimeCreated</span> <span class=t>SystemTime</span> <span class=m>=&quot;</span> <strong>2009-07-28T23:31:17.787Z</strong> <span class=m>&quot;</span> <span class=m> /&gt;</span></div> </div> <div class=e> <div style="margin-left:1em;text-indent:-2em"><span class=b> </span> <span class=m>&lt;</span> <span class=t>EventRecordID</span> <span class=m>&gt;</span> <span class=tx>66710</span> <span class=m>&lt;/</span> <span class=t>EventRecordID</span> <span class=m>&gt;</span></div> </div> <div class=e> <div style="margin-left:1em;text-indent:-2em"><span class=b> </span> <span class=m>&lt;</span> <span class=t>Correlation</span> <span class=m>/&gt;</span></div> </div> <div class=e> <div style="margin-left:1em;text-indent:-2em"><span class=b> </span> <span class=m>&lt;</span> <span class=t>Execution</span> <span class=t>ProcessID</span> <span class=m>=&quot;</span> <strong>648</strong> <span class=m>&quot;</span> <span class=t> ThreadID</span> <span class=m>=&quot;</span> <strong>7536</strong> <span class=m>&quot;</span> <span class=m> /&gt;</span></div> </div> <div class=e> <div style="margin-left:1em;text-indent:-2em"><span class=b> </span> <span class=m>&lt;</span> <span class=t>Channel</span> <span class=m>&gt;</span> <span class=tx>Security</span> <span class=m>&lt;/</span> <span class=t>Channel</span> <span class=m>&gt;</span></div> </div> <div class=e> <div style="margin-left:1em;text-indent:-2em"><span class=b> </span> <span class=m>&lt;</span> <span class=t>Computer</span> <span class=m>&gt;</span> <span class=tx>Mike-Lap-Gate</span> <span class=m>&lt;/</span> <span class=t>Computer</span> <span class=m>&gt;</span></div> </div> <div class=e> <div style="margin-left:1em;text-indent:-2em"><span class=b> </span> <span class=m>&lt;</span> <span class=t>Security</span> <span class=m>/&gt;</span></div> </div> <div><span class=b> </span> <span class=m>&lt;/</span> <span class=t>System</span> <span class=m>&gt;</span></div> </div> </div> <div class=e> <div class=c style="margin-left:1em;text-indent:-2em"><a class=b href="#" class=b>-</a> <span class=m>&lt;</span> <span class=t>EventData</span> <span class=m>&gt;</span></div> <div> <div class=e> <div style="margin-left:1em;text-indent:-2em"><span class=b> </span> <span class=m>&lt;</span> <span class=t>Data</span> <span class=t> Name</span> <span class=m>=&quot;</span> <strong>ErrorCode</strong> <span class=m>&quot;</span> <span class=m>&gt;</span> <span class=tx>2</span> <span class=m>&lt;/</span> <span class=t>Data</span> <span class=m>&gt;</span></div> </div> <div><span class=b> </span> <span class=m>&lt;/</span> <span class=t>EventData</span> <span class=m>&gt;</span></div> </div> </div> <div><span class=b> </span> <span class=m>&lt;/</span> <span class=t>Event</span> <span class=m>&gt;<br/> <br/> THis is the message:<br/> Windows Firewall was unable to notify the user that it blocked an application from accepting incoming connections on the network.<br/> <br/> Error Code:    2<br/> <br/> <br/> What should i do to resolve this?<br/>  <br/> Regards,<br/> Michael</span></div> </div> </div>Tue, 28 Jul 2009 23:35:53 Z2009-07-28T23:35:53Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/7872d95c-3e56-499c-af0b-ed996c51a0ca#922bad92-354a-4cea-b534-ee120f3b6215http://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/7872d95c-3e56-499c-af0b-ed996c51a0ca#922bad92-354a-4cea-b534-ee120f3b6215revivingthewebhttp://social.msdn.microsoft.com/Profile/en-US/?user=revivingthewebIssue with VS Tools ( May CTP)To add...  enableNativeCodeExecution is set to true...<br/> <br/> If i look through Windows Firewall, i cannot see where anything was blocked...<br/> <br/> Michael<br/>Wed, 29 Jul 2009 00:02:25 Z2009-07-29T00:02:25Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/7872d95c-3e56-499c-af0b-ed996c51a0ca#0992ea73-3682-49ff-9ec4-0fe8e6870e46http://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/7872d95c-3e56-499c-af0b-ed996c51a0ca#0992ea73-3682-49ff-9ec4-0fe8e6870e46revivingthewebhttp://social.msdn.microsoft.com/Profile/en-US/?user=revivingthewebIssue with VS Tools ( May CTP)Anybody got any ideas on this?<br/> <br/> Regards,<br/> MichaelTue, 04 Aug 2009 15:31:33 Z2009-08-04T15:31:33Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/7872d95c-3e56-499c-af0b-ed996c51a0ca#8eacdecd-ad00-49bd-a8e0-a53c0bd2f109http://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/7872d95c-3e56-499c-af0b-ed996c51a0ca#8eacdecd-ad00-49bd-a8e0-a53c0bd2f109sp$http://social.msdn.microsoft.com/Profile/en-US/?user=sp%24Issue with VS Tools ( May CTP)Hi jim,<br/>I am also having the same problem in july CTP.<br/>This is the error message that i m getting in Visual studio.<br/><span style="font-size:xx-small"> <p>CCT: Role instances did not start within the time allowed. Please try again. If you continue to encounter this behavior please try shutting down the Development Fabric.<br/><br/>When i check the event Viewer This is the error i am getting.<br/><br/>+ System</p> <p>  - Provider</p> <p>   [ Name]  ASP.NET 2.0.50727.0 <br/> <br/>  - EventID 1310</p> <p>   [ Qualifiers]  32768 <br/> <br/>   Level 3 <br/> <br/>   Task 3 <br/> <br/>   Keywords 0x80000000000000 <br/> <br/>  - TimeCreated</p> <p>   [ SystemTime]  2009-08-21T03:37:13.000Z <br/> <br/>   EventRecordID 36095 <br/> <br/>   Channel Application <br/> <br/>   Computer ComputerName <br/> <br/>   Security <br/> </p> <p>- EventData</p> <p>   3008 <br/>   A configuration error has occurred. <br/>   8/21/2009 9:07:13 AM <br/>   8/21/2009 3:37:13 AM <br/>   b549675291374fd2b9eebdb49b823b78 <br/>   1 <br/>   1 <br/>   0 <br/>   /LM/W3SVC/1/ROOT-1-128952994303775416 <br/>   Full <br/>   / <br/>   Path<br/>    <br/>   4516 <br/>   RdRoleHost.exe <br/>   Domain Name<br/>   HttpException <br/>   The path is too long after being fully qualified. Make sure the full path is less than 260 characters and the directory name is less than 248 characters. <br/>   <a href="http://127.0.0.1:5100/do.__rd_runtime_init__?shutdownEvent={33F08E55-5BC8-453F-932E-2D1E9E3F0468}">http://127.0.0.1:5100/do.__rd_runtime_init__?shutdownEvent=%7B33F08E55-5BC8-453F-932E-2D1E9E3F0468%7D</a> <br/>   /do.__rd_runtime_init__ <br/>   127.0.0.1 <br/>    <br/>   False <br/>     Domain Name <br/>   6 <br/>    Domain Name <br/>   False <br/>   at System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() at System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters)  <br/><br/><br/>Any Help on this error.</p> </span> <hr class=sig> spsFri, 21 Aug 2009 04:50:57 Z2009-08-21T04:51:40Zhttp://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/7872d95c-3e56-499c-af0b-ed996c51a0ca#f342bb24-007d-4a4c-91bd-a78ad192357bhttp://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/7872d95c-3e56-499c-af0b-ed996c51a0ca#f342bb24-007d-4a4c-91bd-a78ad192357bNeil Mackenziehttp://social.msdn.microsoft.com/Profile/en-US/?user=Neil%20MackenzieIssue with VS Tools ( May CTP)sp$ -<br/><br/>Uninstall Azure SDK &amp; Visual Studio Tools for Azure<br/>Reboot<br/>Reinstall Azure SDK&amp; Visual Studio Tools for Azure.<br/><br/>This seems to have worked in the past for people with the &quot;Role instances did not start within the time allowed&quot; error.Fri, 21 Aug 2009 08:55:25 Z2009-08-21T08:55:25Z