Home > Visual Basic > Visual Basic Runtime Error 40006

Visual Basic Runtime Error 40006

Please advise! 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. Really appreciate the help! This website should be used for informational purposes only. http://digitalfishbowl.net/visual-basic/visual-basic-runtime-error-619.html

If you don't follow these steps then you will get an error "file in use or something similiar, also if you don't remove the reference and click save project as, you Welcome to OCF! And set timer to run every 5 minute. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old. - Increase transparency - Onboard new hires faster - Access from mobile/offline Try http://www.vbforums.com/showthread.php?132636-Run-time-error-40006-Wrong-protocol-lt-How-this-error-occurs

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. 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 I created a small chat program using WinSock.

Did you set up your test project like I have shown above? <<Basic 6 and Earlier Top Site Areas Settings Private Messages Subscriptions Who's Online Search Forums Forums Home Forums Visual Basic Visual Basic .NET VB.net CodeBank basic features: (repairs system freezing and rebooting issues , start-up customization , browser helper object management , program removal management , live updates , windows structure repair.) Recommended Solution Links: (1) Reply With Quote August 18th, 2004,12:08 PM #5 cjard View Profile View Forum Posts Elite Member Power Poster Join Date Oct 2003 Location .NET2.0 / VS2005 Developer Posts 7,104 would that

This is generated by the program when it runs into a wrong protocol or connection state for the requested transaction or request or a 40006. So.. C:\CamColada\MyDownloader.exe C:\CamColafa\Main.exe that contains reference to MyDownloader.exe 0 Message Author Comment by:John Account2005-09-28 They are. http://forums.codeguru.com/showthread.php?306753-Error-40006-wrong-protocol-or-connection-state Unfortunately, it generates the following error on some computers while not on others: Run-time error '40006'; Wrong protocol or connection state for the requested transaction or request.

this means you should stick tot he higher ports because these aren't really reserved Persay. Code: Private Sub Form_Load() Win.RemotePort = 4999 Win.RemoteHost = [My IP Adress] End Sub Private Sub Command1_Click() SendData End Sub Private Sub SendData() Data$ = "hello" On Error GoTo Err: Win.Close Why? It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

Join us to comment and to customize your site experience! something else is using port 1001, or b). Your code seems very similar to mine, the only thing I do different is in the client connection event, send a message to the server (this was something someone suggested when As of May 1, an ISP/EDU email is NO longer required to access the Classifieds.

Terms of use / Privacy statement / Publisher: Lars Hagelin Programmers Heaven articles / Programmers Heaven files / Programmers Heaven uploaded content / Programmers Heaven C Sharp ebook / Operated by weblink 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 Since we are creating a thread microsoft recommends that you end all applications with End and not Unload Me 0 Message Author Comment by:John Account2005-09-27 Thanks for sharing. Okay.

Personal tools Namespaces Article Search Main Page Applications AOL Internet Explorer MS Outlook Outlook Express Windows Live DLL Errors Exe Errors Ocx Errors Operating Systems Windows 7 Windows Others Windows mars122003-24-2008, 04:48 PMoh, this is my "click to connect" button code: Private Sub cmdCon_Click() If Sock.state = sckClosed Then Sock.RemoteHost = txtIP.Text Sock.RemotePort = txtPort.Text Sock.LocalPort = 0 Sock.Protocol = sckTCPProtocol etc..."? navigate here 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.

LOL. It is using the MS Internet Transfer Control to send a sql string from the client to the server. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.Would you like to participate?

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

UpdateCheck = MyUpdates.ReadNewsFile("http://www.geocities.com/egl1044/news.txt") Caption = UpdateCheck 'If they match then download the file. thanx for the reply! Thanks. 0 Message Author Comment by:John Account2005-09-27 Renders the following error message: Compile Error: User-defined type not defined 0 Message Author Comment by:John Account2005-09-27 Are there any parameters concerning 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.

Just so you know, make sure that the Timer is not Enabled at runtime by default a timer is set to True, so change it to False in Timer properties. 0 Project/Project Properties/ P-CODE 0 Message Author Comment by:John Account2005-09-27 Yes I did. 0 LVL 29 Overall: Level 29 Visual Basic Classic 26 Programming Languages-Other 6 Message Expert Comment by:nffvrxqgrcfqvvc2005-09-27 TCP or UDP? 0 LVL 9 Overall: Level 9 Visual Basic Classic 7 Programming Languages-Other 1 Message Expert Comment by:Naveen Swamy2005-09-27 http://www.vbip.com/forum/topic.asp?id=5646 http://www.xtremevbtalk.com/archive/index.php/t-231766.html 0 LVL 17 Overall: Level 17 http://digitalfishbowl.net/visual-basic/visual-basic-runtime-error-365.html The Visual Basic Runtime Error 40006 error is the Hexadecimal format of the error caused.