11/22/2024 6:50:14 PM
slxdeveloper.com
Now Live!
|
|
|
|
Jay Mehta (SalesLogix Business Partner) Conexio
abortion pill online philippines abortion manila extrageek.com buy abortion pill buy antidepressants uk amitriptyline online tonydyson.co.uk amitriptyline 25mg fjrigjwwe9r1SiteUser:UserBio fiogf49gjkf0d
|
|
Log in to send this member a
message! |
|
|
Jay Mehta's
Contributions |
Jay Mehta
has contributed
comments and
0
articles.
|
|
Select to view:
|
Comment: Re: Building a SalesLogix Login Screen
fiogf49gjkf0d Unfortunately executing the following code is still throwing the invalidcastexception on the conn.Open() call.
string connstring = "Provider=SLXOLEDB.1;Data Source=crm12server;Initial Catalog=SALESLOGIX_VSERVER;User ID=admin;Password=****;Persist Security Info=True;RWPASS=;Extended Properties=\"PORT=1706;Log=On\""; OleDbConnection conn = new OleDbConnection(connstring); conn.Open();
Author: Jay Mehta - 1/25/2005
|
|
Comment: Re: Building a SalesLogix Login Screen
fiogf49gjkf0d Ryan, thanks for the response. I see your point about using the right provider. I'm using this connection string - "Provider=SLXOLEDB.1;Data Source=crm12server;Initial Catalog=SALESLOGIX_VSERVER;User ID=admin;Password=****;Persist Security Info=True;RWPASS=;Extended Properties=\"PORT=1706;Log=On\"" I got this from the SLX LAN Developer's Reference. Does it look right to you?
I noticed you mentioned that the slxApp.getNewConnection() method returns an ADO Connection object. Which version of ADO does it use? Cause I tried casting it to an ADODB.Connection class. And that threw the same exception.
Author: Jay Mehta - 1/24/2005
|
|
Comment: Re: Building a SalesLogix Login Screen
fiogf49gjkf0d Great article. I downloaded the SLX Login Demo and ran it. However, I'm getting an error on the conn.Open(); statement. The exception is an "InvalidCastException - Specified cast is not valid". I'm also running into the same error in my own login app. Has anyone else seen this error? Could it be something in my dev environment? Any help would be greatly appreciated.
Also, I tried using the slxApplicationClass object to retrieve the connection object using GetNewConnection. I understand that it returns an object, but if I tried casting it as an oledbconnection. I get the same error mentioned above. Ditto if I try to cast to a adodb connection object.
Thanks for any suggestions.
Author: Jay Mehta - 1/24/2005
|
|
|
|
|
|
|
|