473,395 Members | 1,521 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,395 software developers and data experts.

Differences between dunning in debug vs exe in VB.net

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 855

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
8
by: Peter van der Veen | last post by:
Hi I've something strange. There is a different when an error occurs in 2 differen project/solutions. In one project when a get an error the debugger stops at the line which causes the error...
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
0
by: ss137 | last post by:
Hi, I am unable to view the output of dunning letter in oracle apps. can any body help me regarding this.
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.