Knowledge Base

The leading provider of version control solutions and TWAIN SDKs

Error message: The server name or address could not be resolved

Symptoms:

When you upload a image using the HTTP Post method, you may receive the following error message returned by the ErrorString property:



Cause:

1. The address of the server is not available when using the HTTP Post method.
2. You are using a invalid proxy server or the value of the ProxyServer property is invalid.
3. The web server is protected from the password.

Resolutions:

1. Please make sure that the address of the server is available. To check this, you can ping the address from a client machine.

Note: Both the machine name and the IP address of the server can be used for the HTTP Post method.

2. Please check if the code is written correctly.

For example:

    Var strHostIP =  "www.dynamsoft.com";
    ObjectName. HTTPUploadThroughPost(strHostIP, 0, strActionPage, "test.jpg");

Note: The domain name in the code should be www.dynamsoft.com, not http://www.dynamsoft.com.

3. Please use the ProxyServer property if you are using a proxy server. Click here for more information about this property.

4. Enable anonymous access on your web server. Currently, Dynamic Web TWAIN only supports anonymous access.

5. Set the user name and password by using the HTTPUserName property and and HTTPPassword property. Click on the properties directly to get more information.
HTTPUserName  HTTPPassword




Article Details

Last Updated
23rd of October, 2008

Would you like to...

Print this page Print this page

Email this page Email this page

Post a comment Post a comment

Subscribe me

Add to favorites Add to favorites

Remove Highlighting Remove Highlighting

Edit this Article

Quick Edit

Export to PDF

User Opinions (1 vote)

100% thumbs up 0% thumbs down

How would you rate this answer?



Thank you for rating this answer.

Related Articles

No related articles were found.

Attachments

No attachments were found.

Continue