6/7/2025 12:22:38 PM
|
|
slxdeveloper.com Community Forums |
|
|
|
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
Forum to discuss the use of .NET Extensions in SalesLogix version 7 and higher. View the code of conduct for posting guidelines.
|
|
|
| |
|
Re: Error: Could not load file or assembly 'Interop.SLXSystem, version=7.0.0.1264.............
Posted: 31 Jul 07 9:35 AM
|
I think I have run into this before - and I believe it has to do with using the wrong version of the Interop dll - This should be fixed though in Service Pack 1. I looked at my Interop dll (in the Program Files / SalesLogix folder), and the version I have is 7.0.0.1300. If you don't have Service Pack 1 installed, now might be a good time. If you do - you may want to contact SalesLogix tech support and find out why you have the wrong version in there. |
|
|
|
Re: Error: Could not load file or assembly 'Interop.SLXSystem, version=7.0.0.1264.............
Posted: 01 Aug 07 5:11 AM
|
Thanks Jeff. Now the problem that i specified above is solved when i install the Service Pack 1, but another problem is, i am not able see the results when i include the .Net assembly in the Sales Logix Architect. Basically i want to popup the .Net Windows form in the Sales Logix. For that i have written the code in .Net as, Imports System Imports System.Windows.Forms Imports Sage.SalesLogix.NetExtensions
Public Class Form1 Implements Sage.SalesLogix.NetExtensions.IRunnable
Private SlxApplication As SalesLogix.ISlxApplication Public Sub Initialize(ByVal SlxApplication As Sage.SalesLogix.NetExtensions.SalesLogix.ISlxApplication, ByVal LicenseKeyManager As Sage.SalesLogix.NetExtensions.Licensing.ILicenseKeyManager) Implements Sage.SalesLogix.NetExtensions.IRunnable.Initialize
End Sub
Public Function Run(ByVal Args() As Object) As Object Implements Sage.SalesLogix.NetExtensions.IRunnable.Run Dim msg As String = "Hello .NET-SalesLogix World!" & vbCrLf & vbCrLf & _ "Argument passed: " & IIf(Args.Length = 0, "None", Args(0)) & vbCrLf & _ "Current userid: " & SlxApplication.BasicFunctions.CurrentUserID() & vbCrLf & _ "Connection String: " & SlxApplication.ConnectionString
MessageBox.Show(msg, ".NET MessageBox") Return Nothing End Function End Class
and in the Sales Logix Architect, i have written the code as,
Sub Button1Click(Sender)
Dim Ext Ext = Application.Managed.Create ("WindowsApplication1","WindowsApplication1.Form1")
Application.Managed.Run Ext,"Hi"
Application.Managed.Destroy Ext
End Sub
When i run the Sales Logix Client and click the Button1, i didn't get any output, neither the messagebox nor the Form1 opened.
Please help me to solve this problem. |
|
|
|
Re: Error: Could not load file or assembly 'Interop.SLXSystem, version=7.0.0.1264.............
Posted: 01 Aug 07 10:04 AM
|
Before I get into looking at your code, there is one thing I would try first. After getting through the interop problem, I then encountered the same thing you did on all of my client machines. Apparently .Net extensions are not always set up on a machine during installation, especially if you install the client from a network install that you built. Try running C:\Program Files\SalesLogix\RegisterSLXNetExtentions.bat, and if everything was successful, you should see some output on the code you built. Also, remember that you need to run the batch file with elevated permissions. If you still don't see any results, post a reply and either I or one of the experts on this board can help you. |
|
|
|
Re: Error: Could not load file or assembly 'Interop.SLXSystem, version=7.0.0.1264.............
Posted: 02 Aug 07 12:42 AM
|
When i execute the above code, and display the Ext Value, it is giving some GUID value and NOT blank, that means .Net Extensions installed successfully, but don't know what is the problem, i am not able to show the .Net windows form in sales logix through which i want to perform some business logic which is written in .Net windows form Form1. Anyhow, i have run the C:\Program Files\SalesLogix\RegisterSLXNetExtentions.bat file also. But no use.
My requirement is to show the .Net windows form in sales logix to perform some business functionality through .Net windows Form. Any ideas please?
Thanks, Sam |
|
|
| |
|
You can
subscribe to receive a daily forum digest in your
user profile. View the site code
of conduct for posting guidelines.
Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
|
|
|
|
|
|
|
|