If you do not want to use the installer, follow these steps to enable portable usage of Aster .NET provider. This method does not need any pre-installed binaries, user profile, or privilege to update machine.config. You can check out project files from the repository and do a build on a clean machine because all the necessary files are stored in the project folder only.
- Add fragment "Assembly=AsterDataC#DSII" at the connection string.
-
Copy the following DLL files into your C# project output folder. The default is the bin/Debug folder.
- Aster.Net.dll
- AsterDataC#DSII.dll
- libmuleInterface.dll
- Simba.ADO.Net.DDEX.dll
- Simba.ADO.Net.dll
- Simba.DotNetDSI.dll
-
Add the application configuration file for your C# project using Visual Studio and update the configure files for the project (see the code fragment below). It is not necessary to update machine.config because privilege is needed for this action. Ensure that the Aster.Net version matches the Aster DLL version.
<system.data> <DbProviderFactories> <add name="Aster Data Provider" invariant="Aster.Net" description=".NET Framework Data Provider for Aster" type="Aster.net.AsterFactory, Aster.Net, Version=6.20.00.00"/> </DbProviderFactories> </system.data>