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

  • Home
  • SEARCH
  • 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 6056845
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:25:21+00:00 2026-05-23T08:25:21+00:00

An exception occurs on line ModifyProfileResp resp = BFGlobal.modifyProfile(req); INTERNAL_ERROR, SoapHeaderException was unhandled Error:

  • 0

An exception occurs on line

ModifyProfileResp resp = BFGlobal.modifyProfile(req);

INTERNAL_ERROR, SoapHeaderException was unhandled

 Error: System.Exception._COMPlusExceptionCode -532462766,

This code basically updates the users information on a web service through a call I made.

    public ModifyProfileResp ModifyProfile(string n_homeTelephone)
    {
        try
        {
            // Get Login Resp
            LoginResp loginResp = LoginToBetfair("username", "password");

            // Make a BFGS instance
            BFGlobal = new BFGlobalService();

            // Set up the request in [req]
            ModifyProfileReq req = new ModifyProfileReq();
            req.header = new APIRequestHeader();
            req.header.sessionToken = loginResp.header.sessionToken;
            req.homeTelephone = n_homeTelephone;


            // Set up the response in [resp]
            // Here is where Im getting thrown an exception..
            ModifyProfileResp resp = BFGlobal.modifyProfile(req); // <-- Here Im getting thrown an exception

            // return [resp] - which is the response from the call
            // Just trying to print out errror codes
            string mec = resp.minorErrorCode.ToString();
            string ec = resp.errorCode.ToString();

            return resp;
        }
        catch (Exception)
        {

            throw;
        }

Pretty straightforward, make the request header, call the response, pass in the req and I should get some data back, but I keep getting thrown a exception on this line.

Any ideas on how to go about this?

  • 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-23T08:25:22+00:00Added an answer on May 23, 2026 at 8:25 am

    First,

    don’t do this:

    catch (Exception)
    {   
        throw;
    }
    

    It’s pointless. If you don’t have the catch the exception will automatically get thrown up a level, which is what you’re doing with throw. Further, if you can’t do something with the exception (like retry the request) you’re probably better off letting the exception bubble up.

    Second, try something like this:

    catch (SoapHeaderException ex)
    {
        Debug.WriteLine(ex.Message);
    }
    

    This will catch the specific exception that you’re dealing with. Further, set a breakpoint here on the Debug statement. You can then browse the details of the exception. You’ll be able to see the stacktrace, inner exceptions and any other data that the thrower of the SoapHeaderException might want you to see.

    This information can often be useful when you’re debugging, for example, it could say “You forgot to initialize the flux capacitor.”

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

Sidebar

Related Questions

Whenever an unhandled exception occurs on our site, I want to: Send a notification
It seems that this part of my code is where the exception occurs: c
any generic way to trace/log values of all local variables when an exception occurs
This is an intermittent exception that occurs intermittently in Umbraco 3.0.4 running in IIS
Exception Thrown: System.ComponentModel.ReflectPropertyDescriptor is not marked as Serializable Does this mean I missed marking
I'm running a command line application from within the perl script(using system()) that sometimes
When the twisted reactor is running and an exception occurs within a deferred that
I am creating a Windows service. When an exception occurrs, I handle it appropriately
Often, I found OutOfMemoryException on IBM Websphere Application Server. I think this exception occur
Exception is: 'Country' has a SelectedValue which is invalid because it does not exist

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.