Page 1 of 1

Proxy Settings

Posted: Wed Jun 30, 2010 9:16 am
by dmitri_blinov

I'm trying to use version of VintaSoftTwain.NET and I wonder if HttpUpload.ProxyPort and HttpUpload.ProxyHost properties are really used by HttpUpload module? The thing is I am setting the values of ProxyPort and ProxyHost to point to any nonexistent proxy and yet the image gets uploaded successfully even without any delay. Does this means that ProxyPort and ProxyHost properties are simply ignored?

(for example "" in our network
Pinging with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.

PS. VintaSoftTwain.NET is hosted by IE 7 if that plays any difference.

Re: Proxy Settings

Posted: Thu Jul 01, 2010 8:21 am
by Alex
Helo Dmitri,

No, proxy settings can not be ignored. What code do you use?

Best regards, Alexander

Re: Proxy Settings

Posted: Thu Jul 01, 2010 12:02 pm
by dmitri_blinov
The code is actually very close to the one of in the examples. Here the code snippet for function that actually uploads the image.

function UploadToHttpServer()
document.CustomerDocumentImageCreate2.btnScanUpload.disabled = 1;
document.CustomerDocumentImageCreate2.btnScanRecognize.disabled = 1;

if (HttpUpload1.ProxyPort == null)
alert("Your .NET Framework Security settings must be configured to run the components in your browser.");

HttpUpload1.Url = httpUrl;
HttpUpload1.CookieHeader = "JSESSIONID=" + httpSessionCookie;
HttpUpload1.ProxyHost = "";
HttpUpload1.ProxyPort = 8080;

var httpFileField = "CustomerDocumentImageCreate_DocumentImage";
var httpFileFieldValue = ImagePath;
HttpUpload1.AddTextField("CustomerDocumentImageCreate_ImageType", "image/jpeg");
var imageStream = VSTwain1.GetImageAsStream(0,1);

if (imageStream == null)
alert("Изображение не может быть сохранено");


if (HttpUpload1.PostData() == 0)
alert("Загрузка документа закончилась неуспешно: " + HttpUpload1.errorString);
document.CustomerDocumentImageCreate2.btnScanUpload.disabled = 0;
document.CustomerDocumentImageCreate2.btnScanRecognize.disabled = 0;
} else {

Re: Proxy Settings

Posted: Wed Jul 07, 2010 7:40 am
by dmitri_blinov
Alex, the problem is real show stopper for us, should I better fill in official support request ?