I use the default installation options of PostgreSQLDirect .NET
I re-install PostgreSQLDirect .NET but does not help.
I created a new solution, a new dataset in VS2005. Then I created 2 new tables, table1 and table2 in PostgreSQL database. Table1 had a primary key and table2 had a foreign key reference to a column in table1. I found the following scenario:
1. If I dragged table1 from Server Explorer to the dataset, the table adapter for table1 was created without any errors. Then I put table2, the process failed and returned the error I mentioned.
2. Then I removed table1 table adapter from step 1 and dragged table2 first. It worked for table2. But when I dragged table1 to the dataset, it came up with the same error.
3. I removed table2 from step 2. Then I highlighted table1 and table2 from Server Explorer at same time and dragged them onto the dataset. It worked this time but no relationship was created. After I tried to drag a new table table3 on to the dataset which contained table1 and table2 table adapters, the same error displayed again. Note that table3 was an independent table.
4. At last, I installed PostgreSQL version 8.2.4 for Windows on my PC and repeat above steps, they all work well without any errors.
It looks like there is a bug in CoreLab PostgreSQLDirect for VS2005 when accessing the previous version of PostgreSQL database. I do not have this problem when I use VS2003 with CoreLab PostgreSQLDirect version 2.55.25.
I also tried your latest CoreLab PostgreSQLDirect version 3.0 trial, I got the same problem.
What version of PostgreSQL database do you use?
Any other ideas to resolve this problem?
