Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

accountsettings null #289

Open
oshinjix3 opened this issue Apr 10, 2020 · 2 comments
Open

accountsettings null #289

oshinjix3 opened this issue Apr 10, 2020 · 2 comments
Assignees

Comments

@oshinjix3
Copy link

AccountSettings accountSettings = SampleHelpers.LoadAccountSettings();

I am not sure why the account is null when debugging when I have entered the correct settings from batch and storage in the accounts settttings.json.

I have copied the settings.json from the common file to HelloWorld file and it seems to not work as well.

When I run the c# helloworld solution it just timeouts.

@matthchr
Copy link
Contributor

Does it work when not in debug mode for you?

@oshinjix3
Copy link
Author

Does it work when not in debug mode for you?

No, it does not. It gives me this error below

System.AggregateException
  HResult=0x80131500
  Message=One or more errors occurred.
  Source=mscorlib
  StackTrace:
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at System.Threading.Tasks.Task.Wait()
   at Microsoft.Azure.Batch.Samples.HelloWorld.Program.Main(String[] args) in C:\Users\Admin\Desktop\azbatch\azure-batch-samples-master\CSharp\GettingStarted\01_HelloWorld\Program.cs:line 31

  This exception was originally thrown at this call stack:
    [External Code]

Inner Exception 1:
TimeoutException: Timed out waiting for resources after 00:10:00.

Inner Exception 2:
OperationCanceledException: The operation was canceled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants