Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6641881
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T23:51:47+00:00 2026-05-25T23:51:47+00:00

I am running an app C#, WPF and the manager is making some changes

  • 0

I am running an app C#, WPF and the manager is making some changes to some SP’s (not mine) but it causes the app to halt. He says i should be able to

‘get past this’. but when i try to continue in the Debug, it is stuck here.

here is the code: it gets halted here: “while (reader != null && reader.Read())”

Namespace OPTFDashboard.Common.Modules.AccountReceivables.DataAccess
{
    public static class BalancesRepository
    {
        public static void Summary(IEnumerable<Facility> facilities, DateTime date, Action<List<AmountDate>> completionHandler)
        {
            QueryBalances(facilities, date, true, completionHandler);
        }

        public static void Details(IEnumerable<Facility> facilities, DateTime date, Action<List<AmountDate>> completionHandler)
        {
            QueryBalances(facilities, date, false, completionHandler);
        }

        private static void QueryBalances(IEnumerable<Facility> facilities, DateTime date, Boolean isSummary, Action<List<AmountDate>> completionHandler)
        {
            DBHelper.Execute(
                DBHelper.StoredProcedure("OGEN.DBD_GET_AR_BALANCES",
                    new DBHelper.Parameter("@ASOFDATE", date),
                    new DBHelper.Parameter("@FACSTRING", DBHelper.GetFacilString(facilities)),
                    new DBHelper.Parameter("@FUNC", isSummary ? 1 : 0)),
                (reader) =>
                {
                    var balances = new List<AmountDate>();
                    while (reader != null && reader.Read())
                    {
                        balances.Add(AmountDate.CreateBalance(DBHelper.To(reader["FACILITY_KEY"], ""), DBHelper.To(reader["FACILITY_NAME"], ""), DBHelper.To(reader["GROUP_NAME"], ""), DBHelper.ToX(reader["VALUE"], 0m), date));
                    }
                    completionHandler(balances);
                });
        }

error: “The name ‘$exception’ does not exist in the current context”

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T23:51:48+00:00Added an answer on May 25, 2026 at 11:51 pm

    I assume if balances are not added, the rest of the program continues? I assume this due to your manager’s statement. If so, set a breakpoint at the beginning of the routine that grabs data and move past the routine when it hits the breakpoint. Manual, yes, but it will get you past this problem. If it blows up when balances are not added, then you will not just “get past it”.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am running a WPF app with a remote server setup but getting The
This code works in a WPF app but throws a NetworkException (server not found)
I have a WPF App which is grinding to a halt after running out
I have a small c# wpf app for doing some simple calculations running off
I made a 64-bit WPF test app. With my app running and with Task
Im a running my app on the logitech revue. The menu does not appear
I am trying to create my hello world windows app in WPF. What should
We have a working WPF app that we are looking into running in the
I have a WPF intranet app running in Trusted mode (local only). I would
I have several Threads running in a ThreadPool in my WPF App. I need

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.