Home > Vb6 Error > Vb6 Error 40006

Vb6 Error 40006

that it is blocked by a firewall. Is it possible that a). Does anyone know what this means and how i should correct my code? Why? :( wd40bomber703-24-2008, 02:34 PMPost the code.

Also, check the Winsock_Error() event for a description of why the connection failed, if it did. But are you saying the the activex exe must be installed in the same path as C:\CamColada\UpdateWrapper? Register Help Remember Me? All Rights Reserved.

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 An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains… Visual Basic Classic VBS script to start Something like: '==================================== if winsock.state=9 ' error state winsock.close while winsock.state<>0 ' closed state doEvents wend ' you need a while loop, because it doesn't close Thanx for alll the replies..

Why? 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 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 Any other ideas?

I got this error when I was sending data to a close connection. However, there is one program I continually find myself reverting back to…R.   So … R Programming Programming Languages-Other Scripting Languages Getting Started With Go Programming Article by: Shweta Go is HTH JP Please remember to rate all postings. Do you need to have the following property set for the inital socket (i.e.

Find all posts by ChiefRedBull

« Previous Thread | Next Thread » Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) Thread Contact Us - Wrox - Privacy Statement - Top Powered by vBulletin Copyright ©2000 - 2016, Jelsoft Enterprises Ltd. 2013 John Wiley & Sons, Inc. Thanks. Is it possible that a).

Thanks. 0 Message Author Comment by:John Account2005-09-27 UGH. http://www.xi0n.com Reply With Quote Mar 1st, 2002,08:37 PM #4 JaCkFr0sT View Profile View Forum Posts New Member Join Date Mar 2002 Posts 1 40006 error Sending the data when the winsock Style Default Style Contact Us Help Home Top RSS Terms and Rules Copyright © TechGuy, Inc. Suggested Solutions Title # Comments Views Activity Adobe Customization Wizard XI issues 26 139 47d data scientists and AI 17 55 62d scoresSpecial challenge 13 35 52d MS Access Product Inventory

Timer1.Enabled = True Timer1.Interval = 1000 'Finally Connect to the ftp settings and Download the file. I get the following message: Run-time error '40006': Wrong protocol or connection state for the request transaction or request. In addition, we can call the functions that are part of the Windows operating system. you probably arnt connected.

I looked at what microsoft had to say about this problem and I found that this error mostly occurs when the server/client tried to send data without a connection being established. Well...there's a first time for everything! My VB app checks if there's an update, and if there is an update available, it uses winsock to download & run the exe. You may have to register before you can post: click the register link above to proceed.

This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. 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. UpdateCheck = MyUpdates.ReadNewsFile("http://www.geocities.com/egl1044/news.txt") Caption = UpdateCheck 'If they match then download the file.

This has been a great learning experience for me!! 0 LVL 29 Overall: Level 29 Visual Basic Classic 26 Programming Languages-Other 6 Message Expert Comment by:nffvrxqgrcfqvvc2005-09-27 There are only certain

If you're not already familiar with forums, watch our Welcome Guide to get started. 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 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, How can we fix this error?

Then when the client does winsock.connect, it fires off the connection request in your server program. Typically when you would run the executable on one user and then switch users it would throw out that error. 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 Click here to join today!

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! These functions are part of the Windows API (Application Programming Interface). Will test this out when I get back tonight. It just fires the Winsock_close event unexpectedly.

Run-time error '40006' : Wrong protocol or connection state for the requested transaction or request. Try the following code: Go to Solution 10 Comments LVL 17 Overall: Level 17 Visual Basic Classic 7 Visual C++.NET 2 Message Expert Comment by:Zhaolai2010-08-18 You have to wait for Last edited by aaronbromley; April 3rd, 2007 at 06:10 AM. However, if I remember correctly the server should be listening for the client, you use the property winsock.listen.

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 I have to compare it to another project I did. 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. Powered by vBulletin Version 3.8.9Copyright ©2000 - 2016, vBulletin Solutions, Inc. --> Dev Shed Forums Navigation Forums Tools Newsletter Signup Articles Help Devshed Network Developer Shed

end if ' now you reopen it, or do whatever else you need '==================================== Also, try downloading SP3 (the winsock control in the newest/latest Microsoft VB). I've tried this as well Code: Private intMax As Long Private Sub Form_Load() intMax = 0 tcpServer(0).LocalPort = 1001 tcpServer(0).Listen End Sub Private Sub tcpServer_DataArrival _ (Index As Integer, ByVal bytesTotal I think I followed your instructions to a T, but there's obviously something I'm missing. This message appears as the program is trying to send the first message.

Tweet Thread Tools Show Printable Version Email this Page… Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode August 18th, 2004,09:50 AM #1 HanneSThEGreaT View But unfortunately that's not the way it designed. Join and Comment By clicking you are agreeing to Experts Exchange's Terms of Use. Join our site today to ask your question.

Here's a compiled version of the standard.exe and activex.exe.