question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fluent SDK doesn't run under ASP.NET in .Net 4.5.2

See original GitHub issue

Guys, I might be doing something wrong, but I can’t get anything to work at all.

AzureCredentials azureCredentials = new AzureCredentials(servicePrincipalLoginInformation, TenantId, AzureEnvironment.AzureGlobalCloud);
            Azure azure = Azure.Authenticate(azureCredentials).WithSubscription(SubscriptionId) as Azure;

This is my auth code. Doesn’t return any error. After I am trying to provision a Resource group and its just stuck without any errors or anything. The same behavior for any api call. Any idea?

message.InnerText = "Resource Group Doesnt Exists " + DateTime.Now.ToShortDateString();

var groupName = SdkContext.RandomResourceName(dealerID + "_" +"rsGroup_", 24);
resourceGroup = azure.ResourceGroups
           .Define(groupName)
           .WithRegion(Region.AustraliaSouthEast)
           .Create();

message.InnerText = "Creating Resource Group " + DateTime.Now.ToShortDateString();

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:25 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
hovsepmcommented, Aug 2, 2017

@fredcicles Sync methods should also be fixed in the next release (shipping end of August)

1reaction
hovsepmcommented, Jul 20, 2017

@abhi1509 - FYI, just verified. CheckExistence hangs while CheckExistenceAsync works fine. here is the code:

public async Task<ActionResult> Index()
{
    var credentials = SdkContext.AzureCredentialsFactory.FromFile(Environment.GetEnvironmentVariable("AZURE_AUTH_LOCATION"));

    var azure = Azure
        .Configure()
        .WithLogLevel(HttpLoggingDelegatingHandler.Level.None)
        .Authenticate(credentials)
        .WithDefaultSubscription();

	var result = await azure.ResourceGroups.CheckExistenceAsync("somerandomnamegoeshere");
    ...
}

This issue is blocking Create scenarios where we create each dependent resource in parallel.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I add .NET framework 4.5.2 to Asp.Net Core
1 Answer 1 ... There are two versions of .NET Core, .NET Standard version (Portable version, which you use in your project) and...
Read more >
Known issues when you upgrade .NET Framework ...
This article helps you resolve the problem where Microsoft .NET Framework applications can't run when you upgrade .NET Framework 4.5.2 to .NET ......
Read more >
My First Experience Migrating a .NET App to Core
I recently migrated an old .NET Framework 4.5.2 app to .NET Core 2.0. This isn't a guide to that process and certainly isn't...
Read more >
Building Applications for Different .NET Framework Versions
NET framework 4 or newer will run on the preinstalled CLR 4 based .NET framework version. They might still fail to run properly...
Read more >
How to run Background Tasks in ASP.NET
NET application just needs one background task to runs an a basic scheduled ... NET 4.5.2 added QueueBackgroundWorkItem as a new API.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found