Questions tagged [azure-service-runtime]
14 questions
69
votes
9 answers
Where is the NuGet package for Microsoft.WindowsAzure.ServiceRuntime?
We had previously been referring to our Windows Azure libraries via the SDK and I noticed that they have NuGet packages for them now. This is obviously way better, so I'm swapping out all of those references for the NuGet packages.
However, I…

Allen Rice
- 19,068
- 14
- 83
- 115
13
votes
2 answers
Could not load file or assembly ServiceRuntime 2.4.0.0
After upgrading our project to use the Azure SDK 2.5, I get the following runtime exception when deployed to Azure (web role):
Could not load file or assembly
'Microsoft.WindowsAzure.ServiceRuntime, Version=2.4.0.0,
Culture=neutral,…

Dave New
- 38,496
- 59
- 215
- 394
12
votes
4 answers
Detecting if a .NET app is running in Azure or on a non-Azure environment
We are currently moving some instances of our application to Azure, but will still maintain backwards compatibility with existing instances which are not Azure hosted.
Is there a good way to detect the environment without installing the SDK on the…

Ross Vernal
- 483
- 1
- 5
- 20
9
votes
3 answers
How can I get the service name from code for a Azure Cloud Service?
I am looking for a way to get the deployment name for a cloud service from C# code using RoleEnviroment class or something similar so that if my service is deployed at myservice.cloudapp.net I get myservice.
How can I do that?

Poul K. Sørensen
- 16,950
- 21
- 126
- 283
4
votes
1 answer
Warning using Microsoft.WindowsAzure.SDK in .Net Core project
I have installed NuGet package Microsoft.WindowsAzure.SDK in a .Net Core 3.0 app. This results in the following warning:
Warning NU1701 Package 'Microsoft.WindowsAzure.SDK 2.9.0' was restored
using '.NETFramework,Version=v4.6.1' instead of the…

mbabramo
- 2,573
- 2
- 20
- 24
3
votes
1 answer
NuGet package GAC dependency
When running my .NET project I get the following run-time error:
Could not load file or assembly 'Microsoft.WindowsAzure.ServiceRuntime, Version=2.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot…

Dave New
- 38,496
- 59
- 215
- 394
2
votes
1 answer
How CloudConfigurationManager.GetSetting("") actually works?
I am using CloudConfigurationManager for getting my connection string.
I have created one *Azure Service Fabric Application.
storageAccount = CloudStorageAccount.Parse(CloudConfigurationManager.GetSetting("StorageConnectionString"));
It is working…

Pranay Deep
- 1,371
- 4
- 24
- 44
2
votes
0 answers
Unhandled exception in Microsoft.WindowsAzure.ServiceRuntime.dll
My project was working fine then I ran the debug after a break and I am getting the following error:
An unhandled exception of type 'System.IO.FileLoadException' occurred in Microsoft.WindowsAzure.ServiceRuntime.dll
Additional information: Could…

Jay
- 3,012
- 14
- 48
- 99
1
vote
0 answers
Microsoft.WindowsAzure.ServiceRuntime analog for netstandard
I'm migrate my project to netstandard. In one library I used Microsoft.WindowsAzure.ServiceRuntime library but I can't find analog for netstandard. I need RoleEnvironment.GetLocalResource("storage") data.
using…

Valery Yegorov
- 171
- 1
- 11
1
vote
2 answers
getting connection string name in azure worker role
I am currently injection the concrete ConfigFileSettings of the IConfigFileSettings into classes that require a name for the connection string. The simplified code looks as follows:
public interface IConfigFileSettings
{
string…

cs0815
- 16,751
- 45
- 136
- 299
1
vote
1 answer
Azure CloudStorageAccount.SetConfigurationSettingPublisher() invalid after upgrading to 2.0
Hi I am struggling to understand/find a solution to this problem. I have removed the reference to StorageClient 1.7 and the project now uses Storage (2.0). I have a web role like this:
public override bool OnStart()
{
…

Toby Holland
- 1,029
- 2
- 14
- 29
1
vote
0 answers
Azure web application can not find Microsoft.WindowsAzure.ServiceRuntime
The application was recently upgraded from Azure SDK 1.7 to 2.0 along with a bunch of other changes.
It spent a month in testing (hosted on Azure as it is on Live) and was all fine. We then released it Live where it was running for a few weeks with…

Toby Holland
- 1,029
- 2
- 14
- 29
1
vote
0 answers
How can I find the WCF error information in Azure?
We are getting this exception when I have hosted the WCF service in Azure for few operation contract methods. It is returning List of known object from server. If I return the string or bool instead of List then that is working…

Lingaraj S
- 58
- 1
- 4
0
votes
0 answers
Azure Functions Service to Service: Application is not assign to a role
I am trying to set up a service with azure functions so that other special app registrations can call it and have special access to read anything. I'm just starting, so I thought I would have my service simply authenticate against itself like…

Eric Jorgensen
- 1,682
- 2
- 14
- 23