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, 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.
Start the MobiLink server with the -sl dnet option.
If you used Visual Studio 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 c:\mldnet\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 c:\mldnet\cons1.txt -v+ -sl dnet(-MLAutoLoadPath=c:\mldnet) |
A message indicating that the server is ready to handle requests appears. The .NET method is now executed when the upload_insert events triggers during synchronization.
For more information, see -sl dnet option.
Discuss this page in DocCommentXchange. Send feedback about this page using email. |
Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1 |