fiogf49gjkf0d Here is my .NET code:
namespace TSS<br />{ public class TSpUnlockUser : Sage.SalesLogix.NetExtensions.BaseRunnable { public override object Run(object[] Args) { object ReturnValue = string.Empty; MessageBox.Show("In TSpUnlockUser.Run() method", "TSpUnlockUser"); return true; } } }
Here is my SLX code:
<p>Dim namespace, title Dim objTS Dim result
title = "TSS" namespace = "TSS"
Function UnlockTSpLogin(UserID) Dim result Dim args(0) args(0) = UserID
On Error Resume Next
objTS = Application.Managed.Create(title, namespace & ".TSpUnlockUser") 'UnlockTSpLogin = Application.Managed.Run(objTS, args) result = Application.Managed.Run(objTS, args) if result is empty then result = "empty" MsgBox "Unlock User Result = " & CStr(result), vbOK, "DEBUG" Application.Managed.Destroy objTS
If Err.Number <> 0 Then MsgBox "Error = " & CStr(err.Number) & ": " & Err.Description, vbOK, "TitleSphere Error" End If On Error GoTo 0 UnlockTSpLogin = result End Function
There are several issues here:
- The MsgBox in the SLX code is always shows "Unlock User Result = empty" even though I'm returning true.
- The MessageBox in the .NET code never pops up.
- Tthe SLX code is showing "Error = 424: Object Required". I've pin-pointed this to happening after Application.Managed.Destroy objTS (though the code to do that is not shown here).
Steps I've done to resolve:
- Changed the version on the .NET dll.
- After updating the binary, I've closed SLX completely and removed the old binary from %AppData%\SalesLogix\NETPlugins\<ServerName>\SALESLOGIX\Admin
- Released the .NET dll to Everyone.
- Logged back in to SLX as Admin to test.
Environment:
- SLX 8.0 network client environment only.
- Windows 7 64-bit (my .NET dll is build as x86).
What am I missing? |