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

Home Posts Topics Members FAQ

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(WebReques t.Create("https ://anon:6442"), HttpWebRequest)
objWebRequest.M ethod = "POST"
objWebRequest.C ontentType = "text/xml"
Dim PostBuffer As Byte() =
System.Text.Enc oding.GetEncodi ng(65001).GetBy tes(XmlString)
objWebRequest.C ontentLength = PostBuffer.Leng th
objWebRequest.P rotocolVersion = HttpVersion.Ver sion10
Dim oStream As Stream = objWebRequest.G etRequestStream ()
oStream.Write(P ostBuffer, 0, PostBuffer.Leng th)
oStream.Close()
Dim objWebResponse As HttpWebResponse
objWebResponse = CType(objWebReq uest.GetRespons e, HttpWebResponse )
Dim Enc As Encoding
Enc = System.Text.Enc oding.GetEncodi ng(65001)
Dim oStreamReader As New StreamReader(ob jWebResponse.Ge tResponseStream , Enc)

ResponseString = oStreamReader.R eadToEnd
oStreamReader.C lose()

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 7456
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(WebReques t.Create("https ://anon:6442"), HttpWebRequest)
objWebRequest.M ethod = "POST"
objWebRequest.C ontentType = "text/xml"
Dim PostBuffer As Byte() =
System.Text.Enc oding.GetEncodi ng(65001).GetBy tes(XmlString)
objWebRequest.C ontentLength = PostBuffer.Leng th
objWebRequest.P rotocolVersion = HttpVersion.Ver sion10
Dim oStream As Stream = objWebRequest.G etRequestStream ()
oStream.Write(P ostBuffer, 0, PostBuffer.Leng th)
oStream.Close()
Dim objWebResponse As HttpWebResponse
objWebResponse = CType(objWebReq uest.GetRespons e, HttpWebResponse )
Dim Enc As Encoding
Enc = System.Text.Enc oding.GetEncodi ng(65001)
Dim oStreamReader As New StreamReader(ob jWebResponse.Ge tResponseStream , Enc)

ResponseString = oStreamReader.R eadToEnd
oStreamReader.C lose()

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
5344
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 = ( base => 'DC=xy', scope => "subtree", filter => '(&(objectClass=user)(objectCategory=Person))',
5
2324
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 Framework (v2.0.50727) and the Setup of my prject, I get some nasty error: "MyApplication has encountered a problem and needs to close. We are sorry for the inconvenience" with the well-known "Send Error Report" and "Don't Send"-buttons. I tried it on...
1
14859
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 remoting C# application server accessing the bll/dal layers from a web server. I turned off customErrors in the remote config file, but still get this nearly useless error message. Worse, everything works fine if the layers are all run on the same...
4
2439
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 MS. Virtually every bit of the site is encapsulated within user controls. The problem begins when you try to have user controls pass information to one another as well as to their parent form. This can be accomplished by creating public...
3
1777
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 and ran into a strange problem. After roughly 3 minutes of processing, the application reprompted the user for their user name and password (NT authentication). At this point, the ASP.NET page re-fired the last event that it was processing.
2
1258
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 project gets compiled. When I drop this control onto a Web Form, VS.NET crashes. Has anyone else encountered this. I am not sure if this is the reason, but as soon as I renamed the control to start with a text, everything works fine. The...
1
2435
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 that the user encountered the error on. Here is what I have tried: I have an ASP.Net 2.0 web application. It uses a master page that has information on it as well as a Web User Control for displaying
0
1076
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 would like to re-populate the data: Protected Sub DetailsView1_ItemInserted(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DetailsViewInsertedEventArgs) If (Not e.Exception Is Nothing) Then lblStatus.Text = "ERROR: Data not saved."
6
27266
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 environment (Visual Studio 2005's server emulator) but not when I publish it to the real IIS server. The IIS server is on the same machine that I am developing on. After reviewing the Windows Event log I discovered that our WinSock firewall is...
1
6498
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 fax. I have encountered a number of errors while doing this. I would like to share them with u all, because I havent seen much information about this application on the net nor in any forum. Requirements for sending FAX using FAXCOM.dll (system32...
0
8427
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
8746
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8627
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
7356
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
6179
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
4335
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2750
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1975
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1737
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.