DANSrv Reference
Visual Studio Project
Send comments on this topic.
DANSrv OPC DA .Net Server Toolkit > Server Development > Visual Studio Project

Glossary Item Box

The DANSrv customization project creates a .NET assembly with the name NSPlugin.dll or NSPluginNet4.dll.
This DLL is called from the generic server DANSrv.exe (or DANSrvNet4.exe) and must therefore match the interface expected by the generic server.
NSPlugin should be built for "ANY CPU" so that it can be used with either the 32bit or 64bit generic server executable.

Be careful to copy the correct DANSrv.exe into the project directory, not the project output directory. The PostBuild step copies the file to the output directory and overwrites the file the maybe there.

The customization assembly may not be signed. The DANSrv.exe generic server was compiled with an unsigned NSPlugin.dll and the .NET Framework will throw an exception if the assembly is signed.

 

Project Base:
A new DANSrv customization project can:

 


 

The project Assembly Name must always be NSPlugin and the output file NSPlugin.dll !

To debug the application the Visual Studio Debugging configuration properties must be set to:

 

© 2002-2017 Copyright Advosol Inc. All Rights Reserved.