Server.CreateObject problem

djmojo

New Member
I'm trying to create and use an instance of a component that acts like WinSock for ASP. I'm using c#, and when the code compiles, I get an error that "'object' does not contain a definition for 'connect'." Everything works fine if I try to do the same thing using VB. Can anyone tell me if I am missing something?<BR><BR>C# CODE:<BR>object s;<BR>s = Server.CreateObject("comSocket.SocketObj");<BR>s.connect(url,80);<BR><BR>VB CODE:<BR>Dim s<BR>s = Server.CreateObject("comSocket.SocketObj")<BR>s.connect(url,80)<BR><BR>Thanks,<BR>Julie
 
Back
Top