cwbsy1006 - user id is invalid

  • Thread starter Thread starter Amaryllis
  • Start date Start date
A

Amaryllis

Hello,

I am writing an ASP.NET application and trying to connect to an as400
using an ADODB connection. I recently completed a Windows
application that connects to the 400. Mt code works in the Windows
worl, so theoretically, it should work for the ASP application as
well. But it doesn't. I keep getting the error CWBSY1006 - User ID
is Invalid. I'm using my Windows login information to automatically
log into the 400, so a userid and password is not required. Here is
my code. Any ideas would be greatly appreciated.

Thanks,
Amaryllis

AS400.Define("S1021446")
AS400.Connect(cwbx.cwbcoServiceEnum.cwbcoServiceDataQueues)
conn400 = New ADODB.Connection
conn400.ConnectionString = "Provider=IBMDA400.DataSource.1;" & _
"Data source=S1021446"
conn400.Open()
 
Thanks for your help, but that was one of the first things I checked
when I got the error. Usually, connections are fairly easy for me to
figure out, but I'm at a loss on this one.
 
Back
Top