Note that there are some explanatory texts on larger screens.

plurals
  1. PO Microsoft Azure MVC 3 web role not starting after adding TwilioController base class inheritance
    text
    copied!<p>Azure web role (MVC 3 project) wont' start with Twilio controller class</p> <ul> <li>I have an MVC 3 app that is hosted on MS Azure. It publishes to Azure Web role - No problems.</li> <li>I added the Nuget Twilio and Twilio.Mvc packages. It still published to Azure Web role - No problems.</li> <li>I added a class that inherits from the Mvc.TwilioController base class and subsequently the Azure web role no longer starts.</li> <li>If I remove the TwilioController class inheritance the web role starts.</li> </ul> <p>The projects publishes, runs and twilio functions fine in my local VS Azure emulator environment.</p> <p>The project References; Twilio.api, Twilio.mvc, Twilio.Twiml, RestSharp, and NewtonSoft.Json are all set to CopyLocal=True.</p> <p>All Azure Diagnostic logging/tracing is enabled and sending to table storage every 5 seconds but no log data is available when the web role fails to start. Note: If I comment out the twilioController I get an abundance of log data so Azure Diags are configured correctly.</p> <p>Because the web role continues to abort/cycle/abort, there is no opportunity to RDP to the vm for further troubleshooting.</p> <hr> <p>The following two errors are written to the failing web role's Windows System Event Log about every minute:</p> <blockquote> <p>The application '/' belonging to site '1273337584' has an invalid AppPoolId 'ca5c9ecb-e68d-4f3a-84c2-c0b4430373e9' set. Therefore, the application will be ignored.</p> </blockquote> <p>.</p> <blockquote> <p>Site 1273337584 was disabled because the root application defined for the site is invalid. See the previous event log message for information about why the root application is invalid.</p> </blockquote> <hr> <p>Steps to reproduce (exact steps):</p> <ol> <li><a href="http://www.windowsazure.com/en-us/develop/net/" rel="nofollow">Install Azure Sdk v 1.6</a></li> <li>Create a new project using the Azure template (visual studio 10 sp1)</li> <li>Choose the Asp.net MVC 3 Web Role</li> <li>Build and Publish to Azure</li> <li>Success - Web Role starts</li> <li>Add Nuget Package "Twilio" version 3.3.2</li> <li>Add Nuget Package "Twilio.Mvc" version 3.1.3</li> <li>Build and Publish To Azure</li> <li>Success - Web Role starts</li> <li>Create an empty controller (HelloController). See below code snippet.</li> <li>Add TwilioController base class (e.g. Public Class HelloController : TwilioController)</li> <li>Build and Publish to Azure</li> <li>Fail - the web role just cyles/aborts/cyles.</li> <li>Comment out TwilioController (e.g. Public Class HelloController // :TwilioController)</li> <li>Buld and Publish to Azure</li> <li><p>Success - web role starts</p> <pre><code>using System.Web.Mvc; using Twilio.TwiML.Mvc; namespace WindowsAzureProject857481.Controllers { public class HelloController : TwilioController { // // GET: /Hello/ public ActionResult Index() { return View(); } </code></pre></li> </ol> <p>Any ideas appreciated.</p> <p>Thanks, Jim</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload