Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Weird error only on Win 2k3 server; Encountered User Breakpoint

Status
Not open for further replies.

mike2312

IS-IT--Management
Aug 27, 2003
38
0
0
US
Can someone please tell me why this code (it is a function that has a
parameter xmlstring):
Code:
Dim objWebRequest As HttpWebRequest
Dim oRequest As WebRequest
objWebRequest = CType(WebRequest.Create("[URL unfurl="true"]https://anon:6442"),[/URL] 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. Yet on a win2k box with iis 6 it causes this problem.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top