Skip to main content
Announcements
Qlik Community Office Hours - Bring your Ideation questions- May 15th, 11 AM ET: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Huiying
Partner - Creator III
Partner - Creator III

Why we need the connection string to the default postgreSQL database?

In connection string to our independent postgreSQL server, there is this connection:

<add name="postgres" connectionString="User ID=postgres;Host=localhost;Port=4432;Database=postgres;Pooling=true;Min Pool Size=0;Max Pool Size=90;Connection Lifetime=3600;Unicode=true;" providerName="Devart.Data.PostgreSql" />

 

Originally I thought it is useless, as there is no password, the port is different from other 2 connection strings. But when I remove it, the repository service keeps failing. I see error from event viewer:

Unhandled exception: Object reference not set to an instance of an object.
Autofac.Core.DependencyResolutionException: An exception was thrown while invoking the constructor 'Void .ctor()' on type 'AdminDatabaseInformation'. ---> Object reference not set to an instance of an object. (See inner exception for details.) ---> System.NullReferenceException: Object reference not set to an instance of an object.

 

Question is, what does the connection string do?

 

Best regards,

Susan

0 Replies