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 7674345
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T16:43:03+00:00 2026-05-31T16:43:03+00:00

The following line of code is causing me an Exception using (new INVU.API.CallContextStore()) {

  • 0

The following line of code is causing me an Exception

using (new INVU.API.CallContextStore())
{
plug.Instance.AddDocuments(new Int32[] { val_pid }, val_ptype, val_doccat, val_subcat, val_doctype, val_notes, val_summary, SummaryAppendOptions.None, val_docStatus, new String[] { PDFFile });
}

And this is the exception detail.

System.Exception was caught
 Message=Object reference not set to an instance of an object. - Error when trying to save    document
 Source=SimsBridge

 StackTrace:
   at SimsBridge.Bridge.AddDocuments(Int32[] personIds, Int32 PersonType, String docCatagory, Int32 subCatagory, String docType, String notes, String summary, SummaryAppendOptions summaryOptions, String documentStatusCode, String[] filePaths)
   at ManagedScanDesktop.Form1.SimsScanComplete(String[] files) in C:\Working\ManagedScanDesktop 1.8\v1.8\ManagedScanDesktop\ManagedScanDesktop\Form1.cs:line 2619
InnerException: 

I have been attempting to debug this for hours now, while I’ve learned a lot about how this particular program works I haven’t really gotten anywhere.

I got some responses to an question earlier regarding using debugging information, which seemed to confirm my initial thought on the Exception.

Correctly using stacktrace to debug

Now, at first I assumed the SimsBridge object was not being initialized but I have since found where in the code this happens (takes user/pass as parameters). I am successfully logged in at this point and details from the server are returned and displayed on my form.

Little screenshot to show what I mean...

(None of the parameters are null either)

A network error was my other suspicion, as I’ve seen the exe installer packaged of this program working. So it should work.
However the fact I can login goes against this…

I am feeling a bit lost on where to look next and there is literally no one working here I can ask.

Q: What would be your next step in attempting to tracking down the cause of this problem?

  • 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-31T16:43:04+00:00Added an answer on May 31, 2026 at 4:43 pm

    If none of the parameters are null (all of those val_ things) and neither plug or .Instance are null, then the fault may lie internally in the AddDocuments method. If you are not in control of this code (for example, it’s third party) then all you can do is make sure you are using the code correctly. Otherwise you are stuck posting a question to the authors of the library.

    All you know is, something somewhere is null. None of your stuff appears to be null (aside from potentially DatabaseName) so that only leaves the internal state of the method you are calling.

    For me, the next step would be to create a small application that does nothing other than what you are trying to do (AddDocuments in this case) to see if you can get it working, or replicate the issue again. If you can get it working, it’s then a case of code reviewing the original stuff to see if you have made a slight logical error anywhere. If you can replicate it, post that to the code authors as a question and see what they say.

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

Sidebar

Related Questions

The following line of code is causing me an Exception plug.Instance.AddDocuments(new Int32[] { val_pid
The following code is causing me some problems. The third line causes a program
I am currently calling the following line of code: java.net.URL connection_url = new java.net.URL(http://<ip
The following piece of code is causing an exception on a windows vista x64
This post concerns only IE. The last line of the following code is causing
The following line of code generates the compile time error (PE19) There is no
Consider the following line of code: private void DoThis() { int i = 5;
I have the following line of code in a link on my webpage: <a
I thought the following line of code should work fine: $(.1).attr('href', '#Home'); Right? But
I have the following line of code: public bool dcpl_radar() { if (radar ==

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.