Giter Site home page Giter Site logo

Comments (3)

matthchr avatar matthchr commented on July 18, 2024

Hi @shimail1 - thanks for the report.
I was able to reproduce the issue and fixed the FileLength 0 issue (see: #114), but I can't observe it happening on first BatchExplorer startup.

The old code was:

            if (!File.Exists(accountFileName))
            {
                using (var myFile = File.Create(accountFileName))
                {
                }
                await this.SaveAccountsAsync().ConfigureAwait(false);
            }

According to this though, it shouldn't be possible to get an empty accounts.xml if the file doesn't exist - since we do await this.SaveAccountsAsync().ConfigureAwait(false) which writes the default content. Do you by chance know how there got to be an empty accounts.xml file there in the first place? Possibly from an older version of BatchExplorer, or created manually?

In any case, the issue should be resolved now.

from azure-batch-samples.

ahmedgillanione avatar ahmedgillanione commented on July 18, 2024

empty accounts.xml file gets created when developer executes the code first time and because the code creates the file in the app data folder but due to exception quits the loop therefore the xml insert does not happen and file remains empty. and next time when the code runs it see the file exists but again generates exception.

from azure-batch-samples.

matthchr avatar matthchr commented on July 18, 2024

This issue resolved by #114

from azure-batch-samples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.