473,387 Members | 1,724 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Differences running debug vs exe??

I am using VB.net to make XML calls to the Amazon webservice, code snippet as
follows:

sContactURL =
"https://secure.amazon.de/exec/panama/seller-admin/catalog-upload/add-modify-delete"

' Save Login and Password - Colon (:) seperated
csUserNamePassword = "xx*@xx.co.uk:xxxxxxxxx"
'Open the a new request
Call xmlHTTP.open(bstrmethod:="POST", bstrurl:=sContactURL,
varAsync:=False)
'Set up required headers
xmlHTTP.setRequestHeader("HTTP_USER_AGENT", "Mozilla/4.0
(compatible; MSIE 5.5; Windows 98)")
xmlHTTP.setRequestHeader("Content-Type", "text/xml")
xmlHTTP.setRequestHeader("Authorization", "Basic " &
bBase64.Encode(csUserNamePassword))
xmlHTTP.setRequestHeader("dev-t", "token")
xmlHTTP.setRequestHeader("UploadFor", "Marketplace")
xmlHTTP.setRequestHeader("FileFormat", "TabDelimited")
xmlHTTP.setRequestHeader("Cookie",
"x-main=YvjPkwfntqDKun0QEmVRPcTTZDMe?Tn?;ubid-main=002-8989859-9917520;ubid-tacbus=019-5423258-4241018;x-tacbus=vtm4d53DvX@Sc9LxTnAnxsFL3DorwxJa;
ubid-tcmacb=087-8055947-0795529;ubid-ty2kacbus=161-5477122-2773524;
session-id=087-178254-5924832; session-id-time=950660664")
'Send the file as the *only* thing in the body of the message
Try
Call xmlHTTP.send(varbody:=sUploadContents)
'Get the server's response
sResponse = xmlHTTP.responseText
sResponse = Trim(sResponse)
If sResponse = "<Success>SUCCESS</Success>" Then 'It worked
mWriteMessage("Upload of " & vsFileLocation & " Was
successful")
bOK = True
Else
mWriteMessage("Upload of " & vsFileLocation & " Failed" &
sResponse)
'MsgBox("Error Uploading to Amazon")
bOK = False
End If
Catch err As Exception ' Error has occured in the call
mWriteMessage("Upload Call has failed : Run Number " &
Parameters.RunNumber)
bOK = False
End Try

sUploadContents is the text from a file which can be anything between a few
hundred and a few thousand KB in size.
When running in debug, the upload happens perfectly, taking beween a few,
and a few tens of seconds depending on the size of file.

However, when running from the executable on the same machine, it gets to
the line:
Call xmlHTTP.send(varbody:=sUploadContents)

and hangs. I have left it alone for 3-4 hours, yet it never completes.

Anyone got any ideas??

Gambo
Nov 21 '05 #1
0 756

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Martin Meyer im Hagen | last post by:
Hello, I've got installed Win 2003 SBS Premium with the SQL Server 2000 on a server machine. It works almost fine, except the application which uses the SQL Server. The main part of the...
2
by: Daniel | last post by:
Hi, Are there any differences between C# and VB.Net besides syntax? Performance-wise, how do they compare? Thanks, Dan
4
by: MS | last post by:
Just a general question here re VBA. Can anyone explain the differences between "!" and "." when refering to a control? eg Me!TxtBox and Me.TxtBox. What is difference between "+" and "&"...
4
by: | last post by:
Hi, does anyone know what would be the (most common) reasons to get difference answers in VC++.net between running in release and debug ? Thanks, JC
7
by: Wysiwyg | last post by:
Is there any way besides adding a specific debug command line argument for the project to tell if an application is running in debug mode? Thanks! Bill
0
by: Gambo | last post by:
I am using VB.net to make XML calls to the Amazon webservice, code snippet as follows: sContactURL = "https://secure.amazon.de/exec/panama/seller-admin/catalog-upload/add-modify-delete" '...
1
by: TheSteph | last post by:
Hi, Does anybody know what's the difference between the "Debug build" of a C# application and the "Release build" ? In my case, both are 774.144 bytes, and both seems to have the same
9
by: Michael.Suarez | last post by:
Suppose I have a program that prompts you with a dialogbox to enter a password. If you get the password correct, it allows you into the program, else it kills the program. Suppose that when I...
0
by: =?Utf-8?B?SmVmLnB0Yw==?= | last post by:
Hi, I am currently facing exactly the same issue with Visual Studio 2005. Did you find a way to solve this problem ? "AntonioSACE" wrote:
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.