Now, I understand that i have that change in the XML:
<database name="erp" provider="CMaxDBDatabase">
but, this is incorrect. I get a mistake:
AToMSFramework.XMLMappingException: Error Initialising Database Provider CMaxDBDatabase. Error is: No se encuentra el archivo o el nombre del ensamblado CMaxDBDatabase o una de sus dependencias.
Inner Exception message : No se encuentra el archivo o el nombre del ensamblado CMaxDBDatabase o una de sus dependencias.
How I can solve this problem.
I view that isn't add in the project any class how CODBCdatabase, CMySqlDatabase.vb, etc
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
and you should ensure that the AF_MaxDB.dll file is located in the same directory as the application - or you can supply a path in the provider name (ie provider="c:\path\to\AF_MaxDB.dll").
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The use of providers works off a plug-in architecture now to reduce the number of dependencies in the framework itself.
If you are using the latest version of CVS, then you have the provider. If you look in the providers directory in the source code you will see a number of different subdirectories. One of those will be called AF_MaxDB and will have a project in it.
Compile it and copy the .dll to where you need it.
None of this is really documented yet, but it will be before 2.1 is properly released.
- Richard.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have a problem with new CVS. I have a following data:
<database name="erp" class="CMaxDBDatabase">
<parameter name="name" value="DRIVER={SAP DB};SERVER=192.168.33.166;DATABASE=ERP;UID=ERP;PWD=ERP" />
<parameter name="user" value="erp" />
<parameter name="password" value="erp" />
<parameter name="OIDTable" value="OID" />
<parameter name="ansinulls" value="true" />
</database>
Now, I understand that i have that change in the XML:
<database name="erp" provider="CMaxDBDatabase">
but, this is incorrect. I get a mistake:
AToMSFramework.XMLMappingException: Error Initialising Database Provider CMaxDBDatabase. Error is: No se encuentra el archivo o el nombre del ensamblado CMaxDBDatabase o una de sus dependencias.
Inner Exception message : No se encuentra el archivo o el nombre del ensamblado CMaxDBDatabase o una de sus dependencias.
How I can solve this problem.
I view that isn't add in the project any class how CODBCdatabase, CMySqlDatabase.vb, etc
<database name="erp" provider="CMaxDBDatabase">
should be
<database name="erp" provider="AF_MaxDB.dll">
and you should ensure that the AF_MaxDB.dll file is located in the same directory as the application - or you can supply a path in the provider name (ie provider="c:\path\to\AF_MaxDB.dll").
what!!!!!!!!!
I don't have AF_MaxDB.dll. I use the class CODBCDatabase.vb in framework project. How can generate the .dll file.
Hi Victor,
The use of providers works off a plug-in architecture now to reduce the number of dependencies in the framework itself.
If you are using the latest version of CVS, then you have the provider. If you look in the providers directory in the source code you will see a number of different subdirectories. One of those will be called AF_MaxDB and will have a project in it.
Compile it and copy the .dll to where you need it.
None of this is really documented yet, but it will be before 2.1 is properly released.
- Richard.
Thank you.