Home > Vb Runtime > Vb Runtime Error 40006

Vb Runtime Error 40006

Welcome to OCF! In other words, my working folders are like this: C:\CamColada\UpdateWrapper --------- contains the activex exe C:\CamColada\UpdaterNew --------- the other stuff Then it installs to wherever. It looks like you're new here. I will post the code, hopefully some one can tell me what I am doing wrong.The code for the server is [code]Option ExplicitPrivate Sub cmdSend_Click() Winsock.SendData txtChat.Text DoEvents txtMain.Text = txtMain.Text his comment is here

However I have tried sending the API to the machine where the server program is hosted, via a string, then allowing the server to receive the incoming data and calling the So your saying that you still get that error when you removed ReadNewsFile function from ActiveX.EXE and from the Test APP? I got this error when I was sending data to a close connection. This is a only guess - I am to just starting with winsock.

Get 1:1 Help Now Advertise Here Enjoyed your answer? No problems here, it works fine. Well...so far so good. Hannes All my Articles Hannes Reply With Quote August 18th, 2004,11:08 AM #2 jp140768 View Profile View Forum Posts Member + Join Date Jun 2002 Location Clane, Ireland Posts 766

Run-time error '40006' : Wrong protocol or connection state for the requested transaction or request. Join Now For immediate help use Live now! Did you set up your test project like I have shown above? <<

By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. As a guest, you can read any forum posting. I would recommend implementing multiple connections or reset the localport to 0 Winsock1.LocalPort = 0 0 LVL 29 Overall: Level 29 Visual Basic Classic 26 Programming Languages-Other 6 Message Expert STEP 1.

Yes... The Connect method in Visual Basic is asynchronous and is more like a request to connect to the Winsock port. : : RESOLUTION: The code must wait until the Connect event Register Lost Password? But are you saying the the activex exe must be installed in the same path as C:\CamColada\UpdateWrapper?

Join and Comment By clicking you are agreeing to Experts Exchange's Terms of Use. You sure do know your stuff! 0 LVL 29 Overall: Level 29 Visual Basic Classic 26 Programming Languages-Other 6 Message Expert Comment by:nffvrxqgrcfqvvc2005-10-02 Hi, JohnLucio, You might want to consider Hopefully this turns out well. Why?

But unfortunately that's not the way it designed. http://wkstech.com/vb-runtime/vb-runtime-error-486.html Solved Run-time error '40006'; Wrong protocol or connection state for the requested transaction or request Posted on 2005-09-26 Programming Languages-Other Visual Basic Classic 1 Verified Solution 66 Comments 12,984 Views Last It looks like your cat" - Gary Larson...DW1: Data Walkthroughs 1.1...DW2: Data Walkthroughs 2.0...DDS: The DataSet Designer Surface...ANO: ADO.NET2 Orientation...DAN: Deeper ADO.NET...DNU...PQ Reply With Quote August 18th, 2004,07:23 PM #6 jp140768 Which side is giving you the error: Client or Server? 1) I have set the .Protocol Property to sckTCPProtocol 2) I still get Error 40006 3) I don't know if something

Forum New Posts FAQ Calendar Forum Actions Mark Forums Read Quick Links Today's Posts View Site Leaders What's New? It sometimes fixes some of the stupid winsock errors. 0 Message Author Comment by:John Account2005-09-26 Thanks, cool12399, but it didn't work. But unfortunately that's not the way it designed. weblink If UpdateCheck = "version 1.1.2" Then 'Connect and Download if news.txt = "version 1.1.2" 'Initiate timer if need be, lets you know when download is complete.

facebook google twitter rss Free Web Developer Tools Advanced Search  Forum Programming Languages - More Visual Basic Programming Winsock Connection Error - Runtime 40006 Thread: Winsock Connection Error - Runtime But this error occurs unexpectially. Find all posts by ChiefRedBull

« Previous Thread | Next Thread » Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) Thread

You need to remove the reference to the activex.exe in your test project, and then click File,Save Project as..

Does it download the file? 0 LVL 29 Overall: Level 29 Visual Basic Classic 26 Programming Languages-Other 6 Message Expert Comment by:nffvrxqgrcfqvvc2005-09-27 You can try : camcolada/updates/Camcolada.exe 0 Message Guess what it, works! Here is an easy way in VB6 using ADO to remove duplicate row… Visual Basic Classic Dynamically Resize Form Controls Article by: Martin When designing a form there are several BorderStyles The Connect event is a signal that the connect request has been accepted and the connection is established.

Button A - Winsock1.SendData "admin" & vbCrLf Button B - Winsock1.SendData "tx power" & vbCrLf Button C - Winsock1.SendData "help" & vbCrLf and so on So I need it to connect, Unless you are using a UDP protocol, in which case both computers have to bind the connection. Thank you very VERY much, egl1044. check over here Or is there a better way of doing thisThanks 0 · Share on Facebook Comments HackmanC Member Posts: 441 February 2005 If you call the SendData method in the WinSock control

However... when the program loads and then tried to send a command i get an error, now if i trap this process with a breakpoint and keep trying it will work. Forum New Posts FAQ Calendar Forum Actions Mark Forums Read Quick Links Today's Posts View Site Leaders What's New? So..

What a guy! 0 Message Author Comment by:John Account2005-09-27 whoah...you going to include the source code for that wrapper?-- http://www.geocities.com/egl1044/UpdaterActiveXexe.zip 0 LVL 29 Overall: Level 29 Visual Basic Classic you need to just add a temp Public Variable to the ActiveX.exe so open it up and add this public variable to DownloadUpdates.cls Public rDownloadUpdates As String OK. Covered by US Patent. Nonetheless, Of course this should not happen on any computer.