Menu

Mistake with provider

2005-03-03
2013-03-07
  • victor Saquicela

    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

     
    • Richard Banks

      Richard Banks - 2005-03-03

      <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").

       
    • victor Saquicela

      what!!!!!!!!!

      I don't have AF_MaxDB.dll. I use the class CODBCDatabase.vb in framework project. How can generate the .dll file.

       
      • Richard Banks

        Richard Banks - 2005-03-03

        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.

         
    • Nobody/Anonymous

      Thank you.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.