Questions tagged [webrole]
86 questions
10
votes
3 answers
What's the difference between the webrole onStart() event and Application_Start() global.asax event?
I'm just starting to get my feet wet learning the technical details of Azure, so apologies if this is a silly question.
If I create a cloud service project in visual studio and add a webrole for an mvc application, within the mvc application I can…

Steviebob
- 1,705
- 2
- 23
- 36
7
votes
3 answers
Environment.GetEnvironmentVariable("RoleRoot") returning null when called in a WebRole
I have a method (in a separated class library) which is called by a WebRole and a WorkerRole. This method contains the path of a file, which is returned using Environment.GetEnvironmentVariable("RoleRoot"), as follows:
private string FooPath() …

Davidson Sousa
- 1,353
- 1
- 14
- 34
7
votes
0 answers
Azure webrole won't start, getting 500 Error, cannot read configuration file: applicationHost.config
I'm just sharing this in case anyone else runs across the same problem.
In updating my Azure references in response of the GuestOS forced updates on 12/09/2013 (that disabled our production cloud)
If you're diagnosing why the web-role didn't start…

user3101454
- 89
- 2
6
votes
3 answers
Force Application Start on Azure Web Role
I have a web role on azure and I would like to force a Application_Start without waiting for the first request.
I managed to set the "Start Automatically" property to true on my site
AutoStart a WCF on Azure WebRole
But the Application_Start is not…

Jordi
- 2,789
- 1
- 20
- 35
5
votes
3 answers
Azure - Extra small instance web role - ready for production?
I'm planning for a website running in Azure. I'm estimating max. 2000 users a day creating about 20.000 hits.
I know I'm kinda vague here, but is the extra small instance ready for this kind of site? I'm using MVC 3 to create the site. Thanks for…

kay.herzam
- 3,053
- 3
- 26
- 37
5
votes
3 answers
Azure - error on starting with multiple web role projects
If I have more than one webroles(projects, not instances) in my application, I get this error: (I only get it if I attach a web role. It works fine wit as many worker roles projects as I want)
Microsoft Visual Studio
Windows Azure Tools for…

Ryan
- 141
- 1
- 5
5
votes
2 answers
Hosting azure web role with virtual application sends entire project and doesn't process configuration transforms
This is a rather long winded question but it does explain it quite well.
I have a web role which has a root site that forwards to virtual applications beneath that site. My project works fine locally and almost works perfectly in the cloud. I am…
user1719776
4
votes
0 answers
Application.config "disappears" while debugging Azure WebRole if I pause at a breakpoint for too long
I've noticed this off and on. If I'm locally debugging my Azure WebRole, in Visual Studio 2013, and I pause at a break-point for too long, the current request, or the next one, and all subsequent requests, will result in a 500.19 - Internal Server…

Ian Sullivan
- 175
- 2
- 10
4
votes
1 answer
@Scripts.Render caused error after upgrade WebGrease.dll to 1.6.0 version and then deploy to azure web role
I uncounted a problem, after i upgraded the WebGrease.dll from 1.5.2 to 1.6.0, and deployed to azure web role, error occurred "Object reference not set to an instance of an object" , i have solved this problem by downgrade WebGrease.dll to previous…

Dragon
- 435
- 2
- 6
- 12
4
votes
2 answers
Asp.net MVC5 WebRole after deployed to Azure Cloud, breaks on @Scripts.Render
I have a cloud service with an Asp.Net MVC 5 Web Role and Azure SDK 2.3 targeting 4.5.1 framework; The website works perfectly in Local.
But when I deploy it to Azure Cloud service, I have the classic null reference error:
Object reference not set…

Francesco Cristallo
- 2,856
- 5
- 28
- 57
4
votes
3 answers
Web Role on Windows Azure and iisreset side effects
I noticed that when you RDP to a Web Role instance on Windows Azure to make an iisreset, the World Wide Web Publishing Service shuts down, and the only way to get your role up and running again is either by restarting the aforementioned service or…

gimlichael
- 1,365
- 1
- 15
- 28
3
votes
1 answer
How to run a F# app in Windows Azure?
I have a project that requires me to write a library management system in F# and using Windows Azure for the development. I am quite new to Cloud concept and I don't know what to do as a next step. Is there any way to implement it using Web Forms?…

opeliaa
- 105
- 2
- 7
3
votes
2 answers
Web role failing to start because dependent assembly cannot be loaded
I encountered a strange issue with the startup of web roles.
The full repro is quite complex, but I managed to find the root cause so I will put the simplified steps.
My webrole project depends on AssmeblyA which in turn depends on AssemblyB,…

dennis
- 562
- 6
- 21
3
votes
2 answers
Azure LoadBalancerProbe Responses being ignored
I have defined a custom LoadBalancerProbe for my webrole as follows

Paul Devenney
- 889
- 6
- 18
3
votes
3 answers
How do I debug my Azure web role in Visual Studio 2012?
I know this is probably something really stupid, but I've been searching google for 2 hours to figure this out.
I have a new test Azure app that I would like to debug in Visual Studio. If I set the startup project to the Web Role (MVC) project, I…

Scottie
- 11,050
- 19
- 68
- 109