something else is using port 1001, or b). I have to compare it to another project I did. I have some free time on my hands. make sure you have win.accept setup right if you are listening. http://forumyaren.com/visual-basic/visual-basic-runtime-error-365.php
Forum New Posts FAQ Calendar Forum Actions Mark Forums Read Quick Links Today's Posts View Site Leaders What's New? Forum New Posts FAQ Calendar Forum Actions Mark Forums Read Quick Links Today's Posts View Site Leaders What's New? EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum Powered by: vBulletin v3.8.9 Need to download code? It just fires the Winsock_close event unexpectedly. her latest blog
Join our community for more solutions or to ask questions. Does this happen when you install it on another machine? 0 LVL 29 Overall: Level 29 Visual Basic Classic 26 Programming Languages-Other 6 Message Expert Comment by:nffvrxqgrcfqvvc2005-09-28 I would be I never use End. Run-time error '40006' : Wrong protocol or connection state for the requested transaction or request.
I will get back to you. Or is there a better way of doing this: : Thanks: [red]Good luck![/red][blue]Hackman[/blue] 0 · Share on Facebook eternities_end Member Posts: 13 February 2005 Thanks for that reply.Now that I have All times are GMT -5. 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)
Code Code: Win.SendData "block" Error Code: Run-Time Error 40006 - Wrong protocol or connection state for the requested tranaction or request. Hello guys! What error is it about? http://forums.codeguru.com/showthread.php?306753-Error-40006-wrong-protocol-or-connection-state 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
I so how do i make it ask for the users permission to grant access for the required port? 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 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 you probably arnt connected.
VBA Visual Basic Classic MS Office Programming Introduction to VisualVM (Part 2) Video by: Amitkumar This tutorial explains how to use the VisualVM tool for the Java platform application. check over here Privacy statement Help us improve MSDN. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. You may have to register before you can post: click the register link above to proceed.
Join & Write a Comment Already a member? And set timer to run every 5 minute. 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. his comment is here Haven't been around lately been working on a large project. 0 LVL 17 Overall: Level 17 Visual Basic Classic 8 Programming Languages-Other 3 Message Expert Comment by:aiklamha2005-09-27 which protocol are
Reply With Quote 06-22-04,09:56 AM #5 Krieger View Profile View Forum Posts Member Join Date Jan 2002 Location North of Boston, MA Chris_F, can you upload your code or pm It's when I install it on another computer that there is that problem. 0 LVL 29 Overall: Level 29 Visual Basic Classic 26 Programming Languages-Other 6 Message Expert Comment by:nffvrxqgrcfqvvc2005-09-28 index 0): .Protocol = sckTCPProtocol What error are you getting?
Have you any code in the socket error event, and if so what is that telling you? You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. I got this error when I was sending data to a close connection. What do we need to do to prevent this from happening.
What he was doing for us was using a faster concatenation routine for assembling the data to send back. So your saying that you still get that error when you removed ReadNewsFile function from ActiveX.EXE and from the Test APP? Could it be because of a firewall? weblink To start viewing messages, select the forum that you want to visit from the selection below.
I would suggest that you either place a goto (err?) around the close code or you put a loop into the read of data from the port! Can't I just use it as [code] With Winsock1(intNext) .Accept(requestID) .SendData("Hello from server") End With[/Code]One more small doubt, I have read a few tutorials on winsock programing and all of them Thanks, egl1044. Welcome to OCF!
With the requests/results we tag on the length of the data sent. 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. 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 All you need to do in the client is change the remote host to have your computer's IP address.
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. Instructions To Fix (Visual Basic Runtime Error 40006) error you need to follow the steps below: Step 1: Download (Visual Basic Runtime Error 40006) Repair Tool Step 2: Posts: 1 Thanks: 0 Thanked 0 Times in 0 Posts Runtime error 40006 - After connection established Hi I have set up a client server application, where the client connects to But this error occurs unexpectially.
Reply With Quote August 18th, 2004,11:15 AM #3 HanneSThEGreaT View Profile View Forum Posts CG Bouncer Power Poster Join Date Jul 2001 Location Sunny South Africa Posts 11,224 Hi! Join & Ask a Question Need Help in Real-Time? then close that project Now you will be able to update the activeX.exe or compile it, then you can re-open the test project and re-add the reference. As of May 1, an ISP/EDU email is NO longer required to access the Classifieds.
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: : ------: this means you should stick tot he higher ports because these aren't really reserved Persay. My VB app checks if there's an update, and if there is an update available, it uses winsock to download & run the exe.