Skip to content Skip to sidebar Skip to footer

Target Host Must Not Be Null, Or Set In Parameters

I get this error 'Target host must not be null, or set in parameters'. My manifest file has internet permission set, and I have put 'http://' before my Url. It still gives the same

Solution 1:

It should be

HttpPostpost=newHttpPost("http://www.infocreation.something.xml");

Solution 2:

So I replaced the URL, with almost the same URL, except without the underscore and that worked. I realized from further searches (for example here) that URLs with _(underscore) are not valid, although that particular URL may work. Thanks for all your help.

Solution 3:

Are you putting a real and working url inot the HttpPost constructor?

Anyway this is your solution:

If you have the following code failing:

HttpGethttpget=newHttpGet("www.host.com");

Then the error is pretty easy to solve: The problem is that you have not added a protocol to the URL, so change it to:

HttpGethttpget=newHttpGet("http://www.host.com");

And then it will work as wanted.

Source: h3x.no

Post a Comment for "Target Host Must Not Be Null, Or Set In Parameters"