KeshHERE

WINHTTP ERROR : Requested service provider could not be loaded or initialized

6 posts in this topic

#include <IE.au3>

Func GetHeaders()
   $oHTTP = ObjCreate("WinHttp.WinHttpRequest.5.1")
   $oHTTP.Open("GET", "https://taxonline.tarrantcounty.com/taxweb/accountsearch.asp", False)
   $oHTTP.Send()
   $rh = $oHTTP.GetAllResponseHeaders()

EndFunc

When i use this code in my computer it is working okay.

But when i tried in other win 10 PC it throws an error. Check the pic with error handler.

I tried everything possible.

I turned off antiviruses, made sure that windows firewall is not blocking it but no luck so far. Internet is ON. To check it I made an little program for checking if internet is okay with my program or not like this.

$ping = Ping("www.google.com")
If $ping > 0 Then
    $AmIConnected = "True"
    MsgBox(0, "Test App", "Your Internet Is On!")
 Else
MsgBox(0, "Test App", "Your Internet Is OFF!")
EndIf

Please help.

What are the reasons for this happening? I understand that it will be related to PC itself but I can't find it :( HELP.

1.png

Share this post


Link to post
Share on other sites



Oh sorry for that.

Share this post


Link to post
Share on other sites

Hello. Seems to be object is not created. check isobject($oHTTP)

 

 

Saludos

Share this post


Link to post
Share on other sites

You are right that error was The requested action with this object has failed. So that is why i ran that error handler.

Share this post


Link to post
Share on other sites

FOUND THE PROBLEM AFTER HOURS OF WORKING AT LAST.

 

This could be an issue with third party winsock. You can reset winsock. Here's how you can do it.

1.Click the Windows Start button. 

2. Type Cmd in the Start Search text box and press Ctrl-Shift-Enter (keyboard shortcut to run Command Prompt as Administrator). Click Continue to allow elevation request. 

3. Type netsh winsock reset in the Command Prompt shell, and then press the Enter key. 

4. Type netsh int ipv4 reset in the Command Prompt shell, and then press the Enter key. 

5. If you use ipv6, type netsh int ipv6 reset in the Command Prompt shell, and then press the Enter key. 

Note: you may need to run Network Diagnostics afterwards to "repair" your connection after this.

 

http://www.sevenforums.com/windows-updates-activation/322297-windows-update-service-unable-start-error-0x8007277a.html

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now