473,656 Members | 2,983 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to debug a server program

I have a testing client program, the purpose is send a xml file to a server
program, and the server return another xml message. So I wrote a testing
server program the simple one and make sure the communication is fine. After
that I started to program more complicated server program, since there are
many compliation error. The client program keep displaying:
The remote server returned an invalid statuscode: #8221;500 Internal Server
Error

Is there any way to display a detailed error message about the server
program in the web browser? So I can quickly debugging it and fix it, not to
have to waiting for an email from the program?

Thanks.

<%
Set xmlDom=CreateOb ject("Microsoft .XMLDOM")

XMLDom.async =False
xmlDom.load Server.MapPath( "0925SelectTest .xml")
DataToSend = xmlDom.xml

dim xmlhttp
set xmlhttp = server.Createob ject("MSXML2.Se rverXMLHTTP")
xmlhttp.Open "POST","htt ps://xxxx.com/TestCompleteB2B .asp",false
xmlhttp.setRequ estHeader "Content-Type", "applicatio n/x-www-form-urlencoded"
xmlhttp.send xmlDom.xml
if(Err <0) then
Response.Write( "An error occured when retrieving data from an external
source.<br />")
Response.Write( Err.Description )
Response.End
end if
On error goto 0
'if request is not Ok then display detailed message about the request
problem
if(xmlHttp.stat us <200) then
Response.Write( "The remote server returned an invalid statuscode: #8221;"
& _
xmlHttp.status & " " & xmlHttp.statusT ext)
Response.End
end if

'
--
Betty
Oct 29 '07 #1
0 1590

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

Similar topics

4
3277
by: m11533 | last post by:
I am writing a fairly complex application in c# and Visual Studio .Net 2003. Right now I am working on a simple console application (to be launched in the future from a service) that receives messages sent via IP from an external device. I am also writing a simulator of that external device. My question: How do I setup the Visual Studio so that when I start debugging my c# application, both my message sink AND simulator are launched? I...
0
1063
by: Jeff | last post by:
I am writing a program that must be run on a specific server due to its dependancy on the application we are writing for. VS .NET is installed on my laptop and I installed the Remote Debugging components on the server. Now how do I debug my program while running it on the server? It is a Console program, so there is no interface, service, etc. to monitor.
4
1662
by: Kay Levein | last post by:
Hi All, I developed my program on win2000 using VC++7.0, it also works well on WinXp, but unfortunately it crashs on 98 or ME, since VS. Net can't run on Win98, I can't debug it. The program is very complicated and would be very difficult just by TRACE. Can anyone suggest a better way for debugging on Win 98? Thanks a lot. Kay Levein
10
4886
by: Scott | last post by:
I have a simple asp.net app which works fine in debug mode, but crashes on the following line when I run it on the production server: Dim dt As DataTable I have tried the following variations which produce the same result: Dim dt As System.Data.DataTable Dim dt As DataTable = New DataTable The error message reads: System.NullReferenceException: Object reference
3
1280
by: Meatball.Li | last post by:
A program can be debug by administrator, but when I run the program as a user, the vs.net 2003 tell me that I don't have the privilege to debug this web server process. I have modified machine.config and Temporary ASP.net Files directory as msdn said. Is there anything else I have to do to debug my program under user privilege?
1
1490
by: Dale | last post by:
Hi, I got an error when I debug a asp.net program on a windows 2003 server. It said, 'Error while trying to run project: Unable to start debugging on the web server. You do not have permissions to debug the server. Verify that you are a member of the 'Debugger Users' group on the server. ' Surely I added myself to that group and I have administration access to this
8
1915
by: | last post by:
I'm starting up the development server myself and using the "Startup Url" property of the web project. The problem is i cannot debug. The debug symbols are never loaded. I realize they are under the temporary internet files folder but I have even tried using the new depoloyment addin-in but that does not seem to work either. There is a /bin folder with the debug symboles in there but it still does not load them up How can i include the...
3
1762
by: fripper | last post by:
I am writing a simple web application using the .Net Framework 1.1 and VB ..Net. I have installed IIS on my development machine but when I try to run the program in debug mode I get an "Unable to start debugging on the web server" message. I have looked at the help articles that are referenced and have checked out the stuff they mention but I still cannot figure out why I can't run in debug mode. I suspect that this may have something...
10
1900
by: Brett | last post by:
For some reason when I step into the code below, it jumps out on the second iteration at the line I have marked below. Nothing else happens - no errors. Dim tcpClient As New System.Net.Sockets.TcpClient tcpClient.Connect("127.0.0.1", 9005) While True Dim networkStream As NetworkStream = tcpClient.GetStream()
46
24209
by: Ian Boyd | last post by:
IIS5, on a Windows 2000 Server machine. Debeg.WriteLine "Hello, world!" How can i view it?
0
8380
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8296
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8816
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8598
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7310
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6162
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5627
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4150
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
1598
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.