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

  • SEARCH
  • Home
  • 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 8538195
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T11:05:18+00:00 2026-06-11T11:05:18+00:00

I am trying to deploy an ASP .NET MVC4 application to Windows Azure, I

  • 0

I am trying to deploy an ASP .NET MVC4 application to Windows Azure, I have a startup task which installs
MVC4. But my role is not coming online, the deployment status is:

Wating for Role to start…System start up tasks are running

Sites were deployed…

Recovering…

Wating for Role to start…System start up tasks are running

Sites were deployed…

Recovering…

Wating for Role to start…System start up tasks are running

Sites were deployed…

Recovering…

This is keep on happening.

Another intersting thing i noticed is if i RDP into the Role instance then the role become ready state..

Any one has an idea, whats going wrong here?

Thanks
Anu

  • 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-06-11T11:05:18+00:00Added an answer on June 11, 2026 at 11:05 am

    I got the solution, the issue was the permission of the user ( i think its ‘system’) who runs the start-up task to install MVC4. I have updated my start-up script (installmvc4-main.cmd) to do the following:

    1. Creates another script ‘installmvc4-impl.cmd’ which invokes the a power shell script ‘installmvc4.ps1’ with execution policy set to unrestricted.

    2. Creates a powershell script ‘installmvc4.ps1’ to install mvc4 using the installer included in the package (I downloaded it from http://www.microsoft.com/en-us/download/details.aspx?id=30683)

    3. Creates a user, add it to administrator group and schedule a task to run ‘installmvc4-impl.cmd’ using this user.

    Here the script ‘installmvc4-main.cmd’:

    REM Create dos script installmvc4-impl.cmd to invoke the powershell script to install MVC4
    
    echo if "%%EMULATED%%"=="true" goto :EOF > %~dp0installmvc4-impl.cmd
    echo powershell -ExecutionPolicy Unrestricted %~dp0installmvc4.ps1 ^> installmvc4.ps1.log 2^>^&1 >> %~dp0\installmvc4-impl.cmd
    echo exit ^/B 0 >> %~dp0installmvc4-impl.cmd
    
    REM Create the powershell script installmvc4.ps1 to install MVC4
    
    echo Invoke-Expression "%~dp0AspNetMVC4Setup.exe /q /norestart" > %~dp0installmvc4.ps1
    
    REM Create an admin user and schedule task using this user to run the script that install MVC4
    
    net user anuchandy Admin!@#123 /add
    net localgroup Administrators aunchandy /add
    schtasks /CREATE /TN "install-mvc4-task" /SC ONCE /SD 01/01/2020 /ST 00:00:00 /RL HIGHEST /RU anuchandy /RP Admin!@#123 /TR "%~dp0\installmvc4-impl.cmd" /F
    schtasks /RUN /TN "install-mvc4-task"
    

    Note: Make sure the character encoding of the srartup task installmvc4-main.cmd is ANSI.

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

Sidebar

Related Questions

I am trying to deploy my ASP.NET MVC 3 RC to Windows Azure.I've added
I am trying to deploy an ASP.NET application. I have deployed the site to
I am trying to deploy an ASP.NET 3.5 Web Application to my production server
I'm trying to deploy my new ASP.NET MVC 2.0 website to our Windows Server
I'm trying to deploy an asp.net application. I really suck at it. Anyway, parts
Can anyone help. I have an ASP.NET application which has a web.config file so
I'm building an ASP.NET MVC application and I'm trying to deploy it on a
I am trying to deploy an ASP.NET MVC 4 application with Entity Framework 4.4
I am trying deploy my asp.net mvc3 application, here it is what i done
I am trying to deploy a .NET 2.0 ASP.NET application with AJAX 1.0 on

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.