File: test.asp
- Code: Select all
Dim objConn
Set objConn = Server.CreateObject("ADODB.Connection")
objConn.ConnectionString = "Provider=PGNP.1;Data Source=localhost;Initial Catalog=postgres;User ID=postgres;Password=admin;"
objConn.Open
Results in an infinite loop. The script never returns and I must kill the application pool. I turned on debugging, but nothing shows up.
I then decided to test a connection using the command line.
File: test.vbs
- Code: Select all
Set objConn = CreateObject("ADODB.Connection")
objConn.ConnectionString = "Provider=PGNP.1;Data Source=localhost;Initial Catalog=postgres;User ID=postgres;Password=admin;"
objConn.Open
Run: cscript /nologo test.vbs
This time I get a popup dialog asking if I agree to the license (trial), I select agree, and the script continues successfully.
My problem lies in the fact that "I agree" is not saved and therefor the dialog pops up every time the dll is loaded. This is a problem when trying to evaluate your product on IIS as it suppresses the dialog and enters an infinite loop waiting for me to select "i agree", which is simply not possible.
Is there any way to work around this problem? I am currently using the open source pgoledb, but would prefer a commercially supported product.
