Running the MobiLink server with the -sl dnet option specifies the location of .NET assemblies and forces the CLR to load on server startup.
If you compiled using Visual Studio .NET, the location of CustdbScripts.dll is c:\mldnet\CustdbScripts\CustdbScripts\bin\Debug. If you compiled at a command prompt, the location of CustdbScripts.dll is c:\mldnet.
To start the MobiLink server (mlsrv11) and load .NET assemblies
Start the MobiLink server with the -sl dnet option.
If you used Visual Studio .NET to compile your assembly:
At a command prompt, type the following command on a single line:
mlsrv11 -c "dsn=SQL Anywhere 11 CustDB" -dl -o cons1.txt -v+ -sl dnet(-MLAutoLoadPath=c:\mldnet\CustdbScripts\CustdbScripts\bin\Debug) |
If you compiled your assembly at a command prompt:
At a command prompt, type the following command on a single line:
mlsrv11 -c "dsn=SQL Anywhere 11 CustDB" -dl -o cons1.txt -v+ -sl dnet(-MLAutoLoadPath=c:\mldnet) |
A message window appears indicating that the server is ready to handle requests. Now the .NET method is executed when the upload_insert events triggers during synchronization.
For more information, see -sl dnet option.
Send feedback about this page via email or DocCommentXchange | Copyright © 2008, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.0 |