-
Apr 2nd, 2020, 12:12 PM
#1
Thread Starter
Fanatic Member
[RESOLVED] Strange behavior running progra,
I'm using VB6 on WIN 10 Home.
This happens with two programs
The program goes to the Internet to get some date. The problem occurs in getting the data (two different sites).
When I run the .exe, the program gets NO data, no err msg, but I don't know what to ask.
When I run the .vbp, the program works correctly.
I have directly accessed the websites and they are up and running.
Any help would be appreciated. Oh, I think the computer is running slow. When I save anything, the blue donut is visible for sever seconds, at least 5.
-
Apr 2nd, 2020, 12:27 PM
#2
Re: Strange behavior running progra,
Maybe post the code you are using to get the data?
-
Apr 2nd, 2020, 12:32 PM
#3
Thread Starter
Fanatic Member
Re: Strange behavior running progra,
This for one of the programs
Const HTTPREQUEST_PROXYSETTING_PROXY As Long = 2 #Const USE_PROXY = 1
Set HttpRequest = New WinHttp.WinHttpRequest
With HttpRequest
'.Open "GET", "http://money.cnn.com/data/us_markets/", True
.Open "GET", "http://bigcharts.marketwatch.com/markets/indexes.asp", True
'.Open "GET", "https://www.marketwatch.com/tools/quotes/intchart.asp", True
'.Option(WinHttpRequestOption_SecureProtocols) = SecureProtocol_ALL
'.Option(WinHttpRequestOption_EnableRedirects) = True
'.Option(WinHttpRequestOption_UserAgentString) = "IE11"
'.Option(WinHttpRequestOption_EnableHttpsToHttpRedirects) = True
'.Option(WinHttpRequestOption_SslErrorIgnoreFlags) = 13056
' 13056: ignore all err, 0: accept no err
.Send
If .WaitForResponse(5) Then
holdResponse = .ResponseText
Set HttpRequest = Nothing
End If
End With
-
Apr 2nd, 2020, 12:58 PM
#4
Fanatic Member
Re: Strange behavior running progra,
In the last few months, we had reports about issues with accessing HTTPS sites. Please search the forum using Google search box at the top of the page.
-
Apr 2nd, 2020, 01:02 PM
#5
Thread Starter
Fanatic Member
Re: Strange behavior running progra,
You read the wrong line. The line NOT commented out is
Open "GET", "http://bigcharts.marketwatch.com/markets/indexes.asp", True
-
Apr 2nd, 2020, 02:10 PM
#6
Fanatic Member
Re: Strange behavior running progra,
Originally Posted by AccessShell
You read the wrong line. The line NOT commented out is
Open "GET", "http://bigcharts.marketwatch.com/markets/indexes.asp", True
I put that URL in a web browser, and as I expected it redirected to a secure site. You need to tell the library that you are using to use TLC 1.2/1.3. It may require editing the registry to support it, but I could be wrong. Please see post #35 at this link. I don't have time to research for solutions, otherwise I would have more links.
-
Apr 2nd, 2020, 02:25 PM
#7
Re: Strange behavior running progra,
I wonder if this is a permissions issue. The IDE is probably run elevated but perhaps the exe is not. Make sure you run the exe as administrator.
-
Apr 2nd, 2020, 02:35 PM
#8
Thread Starter
Fanatic Member
Re: Strange behavior running progra,
I went to Internet options in the control panel and went to the advanced tab. Under security 'Use TLSL 1.0' was turned on, 'Use TLS 1.1' was turned on, 'Use TLS 1.2' was turned on. 'Use TLS 1.3(experimental)' was turned OFF. I turned it on. Without rebooting (The table did not require a reboot on this iten, I ran the 2 programs I have that exhibited this problem. They both are working just fine. I will watch for the rest of today and tomorrow. Then I will report the findings.
Thanks
-
Apr 2nd, 2020, 02:38 PM
#9
Thread Starter
Fanatic Member
Re: Strange behavior running progra,
I don't know if 'Use SSL 3.0' should be turned on. It is off now. I don't know what it is.
-
Apr 2nd, 2020, 04:31 PM
#10
Fanatic Member
Re: Strange behavior running progra,
-
Apr 2nd, 2020, 06:10 PM
#11
Thread Starter
Fanatic Member
Re: Strange behavior running progra,
Before I even try to run an executable, how would I know it needs to be run with Admin authority? One of the programs auto starts at 9:30 AM. How would I modify the auto start procedure to run as Admin?
-
Apr 2nd, 2020, 06:29 PM
#12
Re: Strange behavior running progra,
-
Apr 3rd, 2020, 12:22 AM
#13
Re: Strange behavior running progra,
Sorry if you have already 'answered' this.
Did it use to work, and it suddenly stopped working ?
Different question - If you run the .vbp file using 'run with full compile' does that run ?
-
Apr 3rd, 2020, 03:52 AM
#14
Hyperactive Member
Re: Strange behavior running progra,
Are you running the compiled program from the same user account as the IDE? If I remember correctly internet flags can be set up differently for different users in the registry local_machine vs current_user
-
Apr 3rd, 2020, 06:27 AM
#15
Thread Starter
Fanatic Member
Re: Strange behavior running progra,
I have been running these program for several months successfully.
If you run the .vbp file using 'run with full compile' does that run ? I have never done this. I have never heard of this. I don't even know what this means.
I have only one user account on this computer.
-
Apr 3rd, 2020, 03:06 PM
#16
Thread Starter
Fanatic Member
Re: Strange behavior running progra,
I have had no problem running the programs today with 'Use TLS 1.3(experimental)' turned on. I did not have an opportunity to try again with the switch off. I cannot try again until Monday. As before, I did not need Admin privileges to run the program.
-
Apr 3rd, 2020, 07:34 PM
#17
Re: Strange behavior running progra,
Originally Posted by AccessShell
I have been running these program for several months successfully.
If you run the .vbp file using 'run with full compile' does that run ? I have never done this. I have never heard of this. I don't even know what this means.
.
When you run your program in the IDE (You probably click the Arrow head icon) you will be alerted to some errors, if they exist.
However when you make the EXE, VB6 can jump on you with some other types of errors.
I hate that, as I may have made the errors days ago, and cannot recall what I was doing back then (I am 78).
So I always run my program with full compile.
If you look along the menu bar, there is a menu called 'Run'
If you click that, there is an option to 'Start with Full Compile'
Rob
PS For other elderly members who also want to be told about all errors immediately (instead of a week later), I use this keyboard combination every time i run the program - Alt FSRF
(Alt File Save Run with Full compile)
-
Apr 3rd, 2020, 09:11 PM
#18
Thread Starter
Fanatic Member
Re: Strange behavior running progra,
Bobbles, thanks for the tip. You have me beat by one year.
-
Apr 8th, 2020, 06:38 AM
#19
Thread Starter
Fanatic Member
Re: Strange behavior running progra,
When using TLS 1.3 (experimental), the programs work correctly. I tested the programs by turning that off. Both programs stopped working correctly. I will leave it on.
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|