Microsoft Dynamics SL7.0 Feautre Pack 1 - Business Essentials VB.NET
Im doing customized screen to automate SalesOrder Screen, but there's message popup "Object reference does not set to an instance of an object."
When i run this exe on another Solomon Server(but still using the same SL7 and EXE), it works just fine
this is the code for reference :
Imports Microsoft.Dynamics.SL.ObjectModel Public WithEvents ordscrn As SIVApplication Private Sub cmdProcess_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdProcess.Click Dim ISolErr As Integer Dim iOSErr As Long Dim ScrAct, startUser As Boolean On Error GoTo err_handler ordscrn = StartAppAndAutomate("4010000.exe", ISolErr, iOSErr) ordscrn.Visible = True ScrAct = True startUser = True Exit Sub err_handler: 'If OS Error loading app Select Case ISolErr Case 7506 'not logged in MsgBox("Can't run User Screen,Not logged in to Solomon.") Resume Next Case 7516 'Login context may not have rights MsgBox("Can't run User Screen,User may not have sufficient rights.") Resume Next Case 7517 'User Limit exceeded MsgBox("Can't run User Screen,Number of licensed users exceeded.") Resume Next Case 7521 'no user rights for Initialize mode MsgBox("Can't run User Screen.No user rights for Initialize mode.") Resume Next Case 7555 'not a VBTools application MsgBox("Can't run User Screen.Not recognized as a VBTools app.") Resume Next Case 7570 'App's Solomon Object Model is disabled MsgBox("Can't run User Screen.Application programmer has disabled the Solomon Object Model.") Resume Next Case Else MsgBox("Can't run User Screen.Unexpected error" & Err.Description) <---MESSAGE POPUP IS COMING FROM HERE Resume Next End Select startUser = False End Sub
*This post is locked for comments