Encountered user-defined breakpoint

G

Guest

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(XmlString)
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top