Forum Discussion

michaelshparber's avatar
michaelshparber
Advocate V
6 years ago
Solved

Gateway error connecting to PostgreSQL

I get this error when setting up a new datasource to PostgreSQL in my Gateway in the Service:

 

"Unable to connect: We encountered an error while trying to connect to . Details: "We could not register this data source for any gateway instances within this cluster. Please find more details below about specific errors for each gateway instance.
Status code: 400
Error Code: DMTS_PublishDatasourceToClusterErrorCode
p-gateway: Unable to connect to the data source undefined.
Underlying error message: Please install Npgsql version 4.0.10.0 or earlier."

 

I did install Npgsql 4.0.10.0, restarted everything but it doesn't work. 

Please help

  • OK

    I've solved the problem installing Npgsql 4.0.10 WITH GAC(!!!)

    When installing, make sure that you select NpgSQL GAC Installation.

    This GAC did the trick.

    Then reboot the machine.

    Good luck!

12 Replies

    • michaelshparber's avatar
      michaelshparber
      Advocate V

      OK

      I've solved the problem installing Npgsql 4.0.10 WITH GAC(!!!)

      When installing, make sure that you select NpgSQL GAC Installation.

      This GAC did the trick.

      Then reboot the machine.

      Good luck!

      • Anonymous's avatar
        Anonymous
        Not applicable

        Hi,

         

        Could you please explain more on how exactly is to install Npgsql 4.0.10 with GAC?

         

        I've tried to install using stack builder, I could find the npgsql part but I couldn't found the GAC part.

         

        really appreaciate your help!

         

        regards,