System.String Sage.Simply.Work.Repository.get_Func19() Error

I upgraded our sage .Net SDK to 2018.0. But now when I run our application and try to access sage data I get an exception: System.String Sage.Simply.Work.Repository.get_Func19()

on this line of code: 

SDKInstanceManager.Instance.SetAlertImplementation(new SageAutoAlertHandler());
var result = SDKInstanceManager.Instance.OpenDatabase(file,user,password,true,"Our App","OA",1);

The data file seems to open find in Sage 2017.2. Do I need to upgrade the file to 2018.0 before it will work?

  • 0

    I'm not sure if the SDK installs the SACM on the system because I always have the program installed before the SDK, but if it has been updated to version 7, then your issue is likely with the targeted .NET Framework version in your application.

    Likely you are still using 4.5.2 in your application and you need to update it to target 4.6.2.  You might have to install the .NET 4.6.2 development kit from MS as well to get the correct targeting available in VS.

  • 0 in reply to Richard S. Ridings

    I am not sure what SACM is. 

    I was not able to compile until I changed my targeting to 4.6.2, so I am definitely on 4.6.2.

    On .Net 4.5.2 with the 2017.2 SDK I could communicate fine with Sage 2017.2.

    With .Net 4.6.2 and the 2018.0 SDK I can no long communicate with Sage 2017.2 due to this error. I was hoping that Sage would monitor these forums. But I guess I will have to open a support ticket.

  • 0 in reply to FieldCapSam

    Sorry,

    SACM = Simply Accounting Connection Manager now the Sage 50 Connection Manager

    When directly using the SDK it is my understanding you need to a compile specific to the version and references of the Sage 50 version you are using.

    You are correct, it is likely Sage will not respond to this directly.  These are user forums and they generally do not do answer many questions here, especially on third-party development.  However, if you wanted more specific help from third-party developers who may monitor the Third-party Development forum, you should probably post there instead of the General Discussion forum for end-users of the product.  The Mayor doesn't moderate these forums in that manner to move posts to the proper forums.

  • 0 in reply to Richard S. Ridings

    Hi Richard,

    I did want to point out that the last sentence in your reply above is not entirely true.  We do move posts that are posted in the incorrect support group, although we do not necessarily move posts from forum to forum within a support group, due to volume and the fact in some larger support groups, such as for Sage 50 Canada, the content of a post could really be relevant to a number of specific forums.  Such is the nature of a support group with many forums and products.  The general discussion forum is a good catch-all, but if your question is specific to an area or topic, it is best to post in that forum to hopefully get the most relevant and accurate reply from another community member.

    Hope that clears things up.

    Thanks,

    Derek (Online Community Manager, aka Sage City Mayor).

  • 0 in reply to Derek Vink

    Hi Derek

    Thanks for the clarification.  I did not intend to mean anything was wrong with the way the forums were monitored, just that I have seen posts are not moved to different topic forums within this community.  I was telling FieldCapSam that s/he may have missed a forum that someone might subscribe to and could answer the question more definitively than me.  Since that person may not subscribe to the General Discussion forum they would have missed this thread and FieldCapSam may miss the opportunity for a better answer.

    I participate in other forums and if you post to a General Discussion forum about a Report issue, if it is not moved, someone emails a moderator to get it moved to the Reporting forum to keep the topics organised per their requirements, terms of service or as one forum describes it, "terms of engagement".  This way the people who monitor and answer questions for those topics can see the posts.

    I have definitely seen threads here moved to the Sage 50 US forums, Education forums and to the French language forums as applicable so the OP will get better help on those topics.  Then again, I don't track everything per forum, nor read all posts either, so I very well could be missing things.

  • 0

    So is there is any solution for this issue, please?

  • 0 in reply to FieldCapSam

    Thanks for reply.

    I have confirmed on your question, may be that help to get faster response.