473,396 Members | 2,129 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,396 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 7443
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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.