Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7006215
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:26:57+00:00 2026-05-27T21:26:57+00:00

Azure web role (MVC 3 project) wont’ start with Twilio controller class I have

  • 0

Azure web role (MVC 3 project) wont’ start with Twilio controller class

  • I have an MVC 3 app that is hosted on MS Azure. It publishes to Azure Web role – No problems.
  • I added the Nuget Twilio and Twilio.Mvc packages. It still published to Azure Web role – No problems.
  • I added a class that inherits from the Mvc.TwilioController base class and subsequently the Azure web role no longer starts.
  • If I remove the TwilioController class inheritance the web role starts.

The projects publishes, runs and twilio functions fine in my local VS Azure emulator environment.

The project References; Twilio.api, Twilio.mvc, Twilio.Twiml, RestSharp, and NewtonSoft.Json are all set to CopyLocal=True.

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.

Because the web role continues to abort/cycle/abort, there is no opportunity to RDP to the vm for further troubleshooting.


The following two errors are written to the failing web role’s Windows System Event Log about every minute:

The application ‘/’ belonging to site ‘1273337584’ has an invalid AppPoolId ‘ca5c9ecb-e68d-4f3a-84c2-c0b4430373e9’ set. Therefore, the application will be ignored.

.

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.


Steps to reproduce (exact steps):

  1. Install Azure Sdk v 1.6
  2. Create a new project using the Azure template (visual studio 10 sp1)
  3. Choose the Asp.net MVC 3 Web Role
  4. Build and Publish to Azure
  5. Success – Web Role starts
  6. Add Nuget Package “Twilio” version 3.3.2
  7. Add Nuget Package “Twilio.Mvc” version 3.1.3
  8. Build and Publish To Azure
  9. Success – Web Role starts
  10. Create an empty controller (HelloController). See below code snippet.
  11. Add TwilioController base class (e.g. Public Class HelloController : TwilioController)
  12. Build and Publish to Azure
  13. Fail – the web role just cyles/aborts/cyles.
  14. Comment out TwilioController (e.g. Public Class HelloController // :TwilioController)
  15. Buld and Publish to Azure
  16. Success – web role starts

    using System.Web.Mvc;
    using Twilio.TwiML.Mvc;
      namespace WindowsAzureProject857481.Controllers
        {
            public class HelloController : TwilioController
            {
                //
                // GET: /Hello/
    
                public ActionResult Index()
                {
                    return View();
                }
    

Any ideas appreciated.

Thanks,
Jim

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T21:26:57+00:00Added an answer on May 27, 2026 at 9:26 pm

    Jim:

    I work for Twilio, and own the .NET helper library.

    Whats happening is that the Twilio.Mvc assembly is looking for 2.0 version the System.Web.Mvc assembly, since that’s what its built against. Its not finding it because its obviously not being packaged with your MVC 3 project.

    The fix if fairly easy. Get the Twilio.Mvc source, change the reference to the newer version of MVC and recompile the assembly. I believe our support team is going to contact you with a version I built for you if you don’t want to do it yourself.

    I think there is probably also a way to use assembly binding redirects to fix the problem as well, if you wanted to try that.

    Devin

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an MVC web app running in azure that serves up large files
We have a Web Role that we are hosting in Windows Azure that uses
I have a WCF Data service hosted in Azure as a Azure Web Role.
Is it possible to have one web role hosted on Windows Azure which respond
I have a WCF service that's deployed as a Windows Azure Web Role. I'm
I have an azure project in visual studio. It has a web role which
I have an MVC3 project I have migrated to an Azure Web Role and
We have a deployment on Azure with a Web Role that uses https. Since
I have created my first app for azure. It's has an MVC3 web role
I'm currently building an Azure Web Role. I am testing this project against a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.