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

Encountered user-defined breakpoint

Can someone please tell me why this code (it is a function that has a
parameter xmlstring:

Dim objWebRequest As HttpWebRequest
Dim oRequest As WebRequest
objWebRequest = CType(WebRequest.Create("https://anon:6442"), HttpWebRequest)
objWebRequest.Method = "POST"
objWebRequest.ContentType = "text/xml"
Dim PostBuffer As Byte() =
System.Text.Encoding.GetEncoding(65001).GetBytes(X mlString)
objWebRequest.ContentLength = PostBuffer.Length
objWebRequest.ProtocolVersion = HttpVersion.Version10
Dim oStream As Stream = objWebRequest.GetRequestStream()
oStream.Write(PostBuffer, 0, PostBuffer.Length)
oStream.Close()
Dim objWebResponse As HttpWebResponse
objWebResponse = CType(objWebRequest.GetResponse, HttpWebResponse)
Dim Enc As Encoding
Enc = System.Text.Encoding.GetEncoding(65001)
Dim oStreamReader As New StreamReader(objWebResponse.GetResponseStream, Enc)

ResponseString = oStreamReader.ReadToEnd
oStreamReader.Close()

Return ResponseString
Causes this??:

The description for Event ID ( 0 ) in Source ( .NET Runtime ) cannot be
found. The local computer may not have the necessary registry information or
message DLL files to display messages from a remote computer. You may be able
to use the /AUXSOURCE= flag to retrieve this description; see Help and
Support for details. The following information is part of the event: .NET
Runtime version 1.1.4322.2032- w3wp.exe - Common Language Runtime Debugging
Services: Application has encountered a user-defined breakpoint.

Process id=0xfb8 (4024), Thread id=0x1198 (4504).

Click ABORT to terminate the application.
Click RETRY to debug the application.
Click IGNORE to ignore the breakpoint..
When I change the code above to use the old MSXML serverxmlHTTP COM object
things run great but when I tell it to use the above code i get the above
message in the application event log.

The most unusual issue about the whole thing is that it works perfectly on
my test machine which is windows xp with iis 5.1 and the same .net version.
Jul 21 '05 #1
1 7430
And to clarify some more. This is for an ASP.NET project. It was not running
on a windows 2003 server with iis 6. The remote URL that I am trying to
connect to is a Tomcat server.

"Mike" wrote:
Can someone please tell me why this code (it is a function that has a
parameter xmlstring:

Dim objWebRequest As HttpWebRequest
Dim oRequest As WebRequest
objWebRequest = CType(WebRequest.Create("https://anon:6442"), HttpWebRequest)
objWebRequest.Method = "POST"
objWebRequest.ContentType = "text/xml"
Dim PostBuffer As Byte() =
System.Text.Encoding.GetEncoding(65001).GetBytes(X mlString)
objWebRequest.ContentLength = PostBuffer.Length
objWebRequest.ProtocolVersion = HttpVersion.Version10
Dim oStream As Stream = objWebRequest.GetRequestStream()
oStream.Write(PostBuffer, 0, PostBuffer.Length)
oStream.Close()
Dim objWebResponse As HttpWebResponse
objWebResponse = CType(objWebRequest.GetResponse, HttpWebResponse)
Dim Enc As Encoding
Enc = System.Text.Encoding.GetEncoding(65001)
Dim oStreamReader As New StreamReader(objWebResponse.GetResponseStream, Enc)

ResponseString = oStreamReader.ReadToEnd
oStreamReader.Close()

Return ResponseString
Causes this??:

The description for Event ID ( 0 ) in Source ( .NET Runtime ) cannot be
found. The local computer may not have the necessary registry information or
message DLL files to display messages from a remote computer. You may be able
to use the /AUXSOURCE= flag to retrieve this description; see Help and
Support for details. The following information is part of the event: .NET
Runtime version 1.1.4322.2032- w3wp.exe - Common Language Runtime Debugging
Services: Application has encountered a user-defined breakpoint.

Process id=0xfb8 (4024), Thread id=0x1198 (4504).

Click ABORT to terminate the application.
Click RETRY to debug the application.
Click IGNORE to ignore the breakpoint..
When I change the code above to use the old MSXML serverxmlHTTP COM object
things run great but when I tell it to use the above code i get the above
message in the application event log.

The most unusual issue about the whole thing is that it works perfectly on
my test machine which is windows xp with iis 5.1 and the same .net version.

Jul 21 '05 #2

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

Similar topics

1
by: Durairaj Avasi | last post by:
#!/usr/bin/perl -w use Net::LDAP; use Net::LDAP::Util qw(ldap_error_name ldap_error_text); my $ldap = Net::LDAP->new('xy.webdurai.net', port=> 389) or die "$@"; $ldap->debug(15); my @args = (...
5
by: DraguVaso | last post by:
Hi, I tried to deploy an application written in VB.NET 2005, with the Release Candidate. Everything works fine on my pc which has the Visual Studio installed, but when I install the .NET...
1
by: Ray Stevens | last post by:
"Server encountered an internal error. For more information, turn off customErrors in the server's .config file." The above is not a particularly helpful error message. It is being thrown by a...
4
by: Josh Harris | last post by:
Here is my question: It is common to have many pieces of business logic encapsulated within asp.net user controls. This can be found in high visibility projects such as the iBuySpy portal from...
3
by: Funky | last post by:
Hi, I have developed an ASP.NET application which has been running in production for around 3 months without any major glitches. Recently, a user was attempting to upload a rather large CSV file...
2
by: Trevor Benedict R | last post by:
ASP.NET 1.1 Not sure if anyone else has encountered this. I just created a Web User Control with a name that starts with a Number. The class gets created with an underscore. So far so good. The...
1
by: GCeaser | last post by:
So here is the desired functionality: When an error occurs anywhere in my application, I want an error section on the page to display the error information while still showing the actual page...
0
by: Jim Coyne | last post by:
Is there a way to have the data controls re-populated with the previous data if an error was encountered during an insert? I currently have the following code to display the error message, but...
6
Frinavale
by: Frinavale | last post by:
Hi there, I'm not sure if anyone here can help me but I'm pretty desperate at this point. I've developed a web application that sends emails periodically. Everything works fine in the test...
1
by: bharathreddy | last post by:
hai all, I would like to share a small but yet valuable information about FAXCOM.dll to send fax. We can send FAX using either through modem or using mailserver. I have used modem to send...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

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.