Home > Vb6 Runtime > Vb6 Runtime Error 40006

Vb6 Runtime Error 40006

Hello guys! Join our site today to ask your question. However... The problem that I have is as follows I ran the program on my machine and I did not have any problems, but when I tried to run it on a weblink

Results 1 to 4 of 4 Thread: Run-time error '40006' : Wrong protocol .... <== How this error occurs? Thanks. So, take it easy and let us all share your problem. :) pinster View Public Profile Find all posts by pinster #4 05-22-2002, 05:38 AM ChiefRedBull ISearchGoogle Retired Moderator* were you LISTENING or CONNECTING ?

They're both in my setup factory project coming from different directories but installing to the same directory. The program works fine when I test it on my local machine but when I try to connect to a remote machine I end up with a run time error 40006. Last edited by Chris_F; 06-13-04 at 12:50 AM. http://www.experts-exchange.com/Programming/Programming_Languages/Visual_Basic/Q_10315945.html?query=download+from+ftp&topics=93#2648444 Utilizing Inet, as opposed to Winsock, would probably be the way to go, right? 0 LVL 29 Overall: Level 29 Visual Basic Classic 26 Programming Languages-Other 6 Message Expert

Dave Logan #2 05-21-2002, 08:09 PM pinster Contributor Join Date: Jan 2002 Location: Penang, Malaysia Posts: 508 Did you established the connection successfully? All rights reserved. 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 Thanx for alll the replies..

Thanks, egl1044...for a most useful & educational experience. 0 Featured Post IT, Stop Being Called Into Every Meeting Promoted by Highfive Highfive is so simple that setting up every meeting room All browsers know that the HTTP port is 80.[size=5][italic][blue][RED]i[/RED]nfidel[/blue][/italic][/size][code]$ select * from users where clue > 0no rows returned[/code] 0 · Share on Facebook Sign In or Register to comment. Okay. make a msgbox or something under win_connect() Reply With Quote 06-21-04,07:18 PM #4 Chris_F View Profile View Forum Posts Member Join Date Jun 2003 Location Columbus, Ohio Ok, I'm still

The Connect event is a signal that the connect request has been accepted and the connection is established. : : STATUS: This behavior is by design. : : http://support.microsoft.com/default.aspx?scid=kb;en-us;183987: : ------: They work here on this computer where they were created, but not on any other: http://www.camcolada.com/Updater.zip 0 LVL 29 Overall: Level 29 Visual Basic Classic 26 Programming Languages-Other 6 Message Zauberis BOOK: Professional SQL Server 2005 Integration Services ISBN: 0-7645-8435-9 1 July 7th, 2006 09:40 AM Setting Runtime DB connection from JSP ssivakumar76 BOOK: Beginning Java 2, JDK 5 Edition 0 This may shed some light on your situation.

In your setup program have you made sure that MyDownloader.exe is in the same location as your main Executable that contains the reference to MyDownloader.exe? 0 Message Author Comment by:John To start viewing messages, select the forum that you want to visit from the selection below. Possibly 5.0 While latebinding is more version compatible if the machine is not up to date then you will get this error 0 Message Author Comment by:John Account2005-09-28 It started Looks like I might just have to come up with another way to skin this cat...unless one of you can help me figure out how to do this utilizing the established

Is there? 0 LVL 29 Overall: Level 29 Visual Basic Classic 26 Programming Languages-Other 6 Message Expert Comment by:nffvrxqgrcfqvvc2005-09-26 <<< Run-time error '40006' From my experience that error means that have a peek at these guys The Connect event is a signal that the connect request has been accepted and the connection is established. I have to compare it to another project I did. That's not the problem, navstar16--I checked it out, and the difference in internet connection speed isn't a factor--but thanks, anyway.

By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Client Code: Option Explicit Private Sub cmdAction_Click() Actions.Visible = True End Sub Private Sub cmdClose_Click() wsRat.Close cmdClose.Enabled = False cmdConnect.Enabled = True End Sub Private Sub cmdConnect_Click() If txtIP.Text = "" I could be mistaken, but that seems to be a likely culprit of the odd behavior.[size=5][italic][blue][RED]i[/RED]nfidel[/blue][/italic][/size][code]$ select * from users where clue > 0no rows returned[/code] 0 · Share on Facebook http://cloudindet.com/vb6-runtime/vb6-runtime-error-364.html Reply With Quote 06-14-04,05:56 PM #3 Nico3k View Profile View Forum Posts Member Join Date Jul 2002 Location CA mmmm VB my favorite.

You're a great guy. That would explain why you never get a Connect event - it appears that you're telling the server socket to close, which would make the .Accept meaningless (if not an outright JP Please remember to rate all postings.

STATUSThis behavior is by design.

If you want, you can take a look at: http://www.camcolada.com/UpdateWrapper.zip (of course, the FTP parameters have been changed) 0 LVL 29 Overall: Level 29 Visual Basic Classic 26 Programming Languages-Other So.. What port are you trying to connect on? Nonetheless, Of course this should not happen on any computer.

If you're not already familiar with forums, watch our Welcome Guide to get started. In my vb-application I used winsock and timer control. You need to remove the reference to the activex.exe in your test project, and then click File,Save Project as.. this content The time now is 05:26 PM.

Guess what it, works! Forgot your password? I so how do i make it ask for the users permission to grant access for the required port? This message appears as the program is trying to send the first message.

But are you saying the the activex exe must be installed in the same path as C:\CamColada\UpdateWrapper? Join our community for more solutions or to ask questions. Join the community of 500,000 technology professionals and ask your questions. However, if I remember correctly the server should be listening for the client, you use the property winsock.listen.

I created a small chat program using WinSock. In the little bit of research I've done pertaining to your situation, in .NET, the recommended solution is System.Net.Sockets . Code Code: Win.SendData "block" Error Code: Run-Time Error 40006 - Wrong protocol or connection state for the requested tranaction or request. Home Forum New Posts FAQ Calendar Community Groups Albums Member List Forum Rules & Guidelines Forum Actions Mark Forums Read Quick Links Today's Posts View Site Leaders Who's Online Reviews News

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. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. Open up your Main project and add the reference to your compiled ActiveX.exe 'Add the following code to Form_Load event Private Sub Form_Load() On Error GoTo ErrEXE The program works fine when I test it on my local machine but when I try to connect to a remote machine I end up with a run time error 40006.

something else is using port 1001, or b). Results 1 to 10 of 10 Thread: Error 40006 wrong protocol or connection state.... Password Home Register Calendar Today's Posts FAQ Free Publications Search Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > Communications > Winsock "Run Time Error 40006" Thread Tools 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